Edit this page

yAxis.majorTicks Object

The configuration of the scatter chart y axis major ticks.

Example - configure the scatter chart y axis major ticks

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "scatter",
    data: [[1, 1],[2, 2]]
  }],
  yAxis: {
    majorTicks: {
      size: 6,
      color: "green",
      width: 5
    }
  }
});
</script>

yAxis.majorTicks.color String (default: "black")

The color of the scatter chart y axis major ticks lines. Accepts a valid CSS color string, including hex and rgb.

Example - set the scatter chart y axis major ticks color as a hex string

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "scatter",
    data: [[1, 1],[2, 2]]
  }],
  yAxis: {
    majorTicks: {
      color: "#aa00bb"
    }
  }
});
</script>

Example - set the scatter chart y axis major ticks color as a RGB value

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "scatter",
    data: [[1, 1],[2, 2]]
  }],
  yAxis: {
    majorTicks: {
      color: "rgb(128, 0, 255)"
    }
  }
});
</script>

Example - set the scatter chart y axis major ticks color by name

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "scatter",
    data: [[1, 1],[2, 2]]
  }],
  yAxis: {
    majorTicks: {
      color: "green"
    }
  }
});
</script>

yAxis.majorTicks.size Number (default: 4)

The length of the tick line in pixels.

Example - set the scatter chart y axis major ticks size

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "scatter",
    data: [[1, 1],[2, 2]]
  }],
  yAxis: {
    majorTicks: {
      size: 6
    }
  }
});
</script>

yAxis.majorTicks.visible Boolean (default: true)

If set to true the chart will display the scatter chart y axis major ticks. By default the category axis major ticks are visible.

Example - hide the scatter chart y axis major ticks

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "scatter",
    data: [[1, 1],[2, 2]]
  }],
  yAxis: {
    majorTicks: {
      visible: false
    }
  }
});
</script>

yAxis.majorTicks.width Number (default: 1)

The width of the major ticks in pixels.

Example - set the scatter chart y axis major ticks width

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [{
    type: "scatter",
    data: [[1, 1],[2, 2]]
  }],
  yAxis: {
    majorTicks: {
      width: 3
    }
  }
});
</script>

yAxis.majorTicks.step Number (default: 1)

The step of the y axis major ticks.

Example - set the y axis major ticks step

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  yAxis: [{
    majorTicks: {
      step: 2
    },
    categories: ["2011", "2012", "2013"]
  }],
  series: [{
    data: [1, 2, 3]
  }]
});
</script>

yAxis.majorTicks.skip Number (default: 0)

The skip of the y axis major ticks.

Example - set the y axis major ticks

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  xAxis: [{
    majorTicks: {
      skip: 2
    },
    categories: ["2011", "2012", "2013"]
  }],
  series: [{
    data: [1, 2, 3]
  }]
});
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy