The decimal values displayed in axis labels can be rounded by using the roundingPlaces property of axis. The following code example illustrates this JS $("#container").ejChart({ primaryXAxis: { roundingPlaces: 3 }, series: [{ points: [{ x: 2.25345, y: 26 }, { x: 2.2567, y: 56 }, . . . . . . . . . . . . . . . . . . ] }] }); The following screenshot displays the Chart with labels rounded to 3 digits in primary X-axis. Figure: Chart with X-axis labels rounded to 3 digits
JS Playground sample link: Rounding labels |
This page will automatically be redirected to the sign-in page in 10 seconds.