Articles in this section
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.

The Chart with primary X- axis labels rounded to 3 digits

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment