This is a migrated thread and some comments may be shown as answers.

[Solved] Column Chart yaxis values

1 Answer 153 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Abdalla
Top achievements
Rank 1
Abdalla asked on 24 Apr 2012, 11:14 AM
Hello Telerik Team,

I want the y axis values to be integers only not double, see the screenshot below. 

Thanks 

1 Answer, 1 is accepted

Sort by
0
Jim
Top achievements
Rank 1
answered on 01 May 2012, 02:31 PM
Abdalla - 

If you post a code example of your graph we could get a closer answer.  I will make a presumption about the style of graph you have.

You can add the following:

.ValueAxis(x => x.Numeric().Labels(l => l.Format("{0:#,##0}"))) 

This won't convert your data to integer but the Y Axis will be displayed as integer.

If that doesn't work post a copy of your view code.
Tags
Chart
Asked by
Abdalla
Top achievements
Rank 1
Answers by
Jim
Top achievements
Rank 1
Share this question
or