Category / Section
How to round the decimal values in the Chart axis?
1 min read
The decimal values displayed in axis labels can be rounded by using the RoundingPlaces property of axis. The following code example illustrates this.
ASP
<ej:Chart ID="container" OnClientTrackAxisToolTip="crosshairLabel" runat="server"> <PrimaryXAxis RoundingPlaces="3"></PrimaryXAxis> . . . . . . . . . . . . . . . . </ej:Chart>
The following screenshot displays the Chart with labels rounded to 3 digits in primary X- axis.