Edit this page

xAxis.minorTicks Object

The configuration of the x axis minor ticks.

Example - configure the x axis minor ticks

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

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

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

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

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  xAxis: {
    minorTicks {
      color: "#aa00bb",
      visible: true
    }
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>

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

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

Example - set the x axis minor ticks color by name

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  xAxis: {
    minorTicks {
      color: "green",
      visible: true
    }
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>

xAxis.minorTicks.size Number (default: 4)

The length of the tick line in pixels.

Example - set the x axis minor ticks size

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  xAxis: [{
    minorTicks: {
      size: 6,
      visible: true
    }
  }],
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>

xAxis.minorTicks.visible Boolean (default: false)

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

Example - hide the x axis minor ticks

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

xAxis.minorTicks.width Number (default: 1)

The width of the minor ticks in pixels.

Example - set the x axis minor ticks width

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

xAxis.minorTicks.step Number (default: 1)

The step of the x axis minor ticks.

Example - set the x axis minor ticks step

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

xAxis.minorTicks.skip Number (default: 0)

The skip of the x axis minor ticks.

Example - set the x axis minor ticks

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