Edit this page

categoryAxis.minorTicks Object

The configuration of the category axis minor ticks.

Example - configure the category axis minor ticks

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  categoryAxis: [{
    minorTicks: {
      size: 6,
      color: "green",
      width: 5
    },
    categories: ["2011", "2012", "2013"]
  }],
  series: [{
    data: [1, 2, 3]
  }]
});
</script>

categoryAxis.minorTicks.color String (default: "black")

The color of the category axis minor ticks lines. Accepts a valid CSS color string, including hex and rgb.

Example - set the category axis minor ticks color as a hex string

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

Example - set the category axis minor ticks color as a RGB value

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  categoryAxis: {
    minorTicks {
      color: "rgb(128, 0, 255)"
    },
    categories: ["2011", "2012", "2013"]
  }],
  series: [{
    data: [1, 2, 3]
  }]
});
</script>

Example - set the category axis minor ticks color by name

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

categoryAxis.minorTicks.size Number (default: 4)

The length of the tick line in pixels.

Example - set the category axis minor ticks size

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

categoryAxis.minorTicks.visible Boolean (default: true)

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

Example - hide the category axis minor ticks

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

categoryAxis.minorTicks.width Number (default: 1)

The width of the minor ticks in pixels.

Example - set the category axis minor ticks width

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

categoryAxis.minorTicks.step Number (default: 1)

The step of the category axis minor ticks.

Example - set the category axis minor ticks step

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

categoryAxis.minorTicks.skip Number (default: 0)

The skip of the category axis minor ticks.

Example - set the category axis minor ticks

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  categoryAxis: [{
    minorTicks: {
      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