React Chart - Axis Ticks

Axis ticks divide an axis into parts, and thus the readability of visualized data is improved. There are major and minor ticks. They differ in appearance.

DevExtreme HTML5 JavaScript Charts AxisTicks

To configure major or minor ticks, use the tick or minorTick object respectively. Properties in these objects change the color, length, width, and opacity of ticks. But before specifying them, make sure that you have made ticks visible.

App.js
  • import React from 'react';
  • import Chart, {
  • ArgumentAxis,
  • Tick,
  • MinorTick
  • } from 'devextreme-react/chart';
  •  
  • class App extends React.Component {
  • render() {
  • return (
  • <Chart ... >
  • <ArgumentAxis> {/* or ValueAxis, or CommonAxisSettings */}
  • <Tick visible={true} />
  • <MinorTick visible={true} />
  • </ArgumentAxis>
  • </Chart>
  • );
  • }
  • }
  •  
  • export default App;
See Also