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

Graph : Y - Axis label numbering in thousands and millions

9 Answers 254 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mahesh Babu
Top achievements
Rank 1
Mahesh Babu asked on 30 Dec 2015, 03:11 PM

Hello

I am using Graph component to display a bar series chart. Y-axis is using numerical scale to display the labels. I am struggling to find a way to display those numbers in thousands and millions.

 

Ex:   100 -  100

         1000 - 1K

         10000 - 10K

    100000 - 100K

     1000000 - 1M

 

Is there a way to do this?

Please let me know.

 Thanks

Mahesh

9 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 30 Dec 2015, 03:54 PM
Hello Mahesh,

You can use the GraphAxis.LabelFormat property to apply a specific format to the axis labels.
How to display a number in thousands or millions is described in this thread.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Mahesh Babu
Top achievements
Rank 1
answered on 30 Dec 2015, 04:01 PM

Thanks Nasko for the response!!

 The y-axis could have numbers in thousands and millions. I don't think I can use LabelFormat to have two different formats based on its value.

 Msahesh

0
Nasko
Telerik team
answered on 31 Dec 2015, 06:17 AM
Hello Mahesh,

You are correct. The LabelFormat property does not support expressions, which means that you can apply only a single format to the labels.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jans
Top achievements
Rank 1
answered on 13 May 2016, 01:43 PM
I'm facing the same issue. Is there a workaround solution?
0
Stef
Telerik team
answered on 14 May 2016, 12:04 PM
Hello Francis,

Axes labels can have only one format (LabelFormat).

In case you have CategoryScale for an axis, labels are treated like strings and you can apply custom formatting via expression through the Graph.CategoryGroups.Label property. With CategoryScale there is no discrete step, there will be rendered a slot per label.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Mano
Top achievements
Rank 1
answered on 23 Dec 2016, 11:19 AM

Hi, Even am facing the same Issue. Is there any solution in the updated version???

 

Thanks & Regards,

       Mano

0
Stef
Telerik team
answered on 23 Dec 2016, 02:50 PM
Hello Mano,

The information in my previous post is still valid. Please use the suggested custom expression in case of a CategoryScale.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Mano
Top achievements
Rank 1
answered on 27 Dec 2016, 12:15 PM

Hello,

                 Thanks for the response. But am not using CategoryScale, am using NumericalScale as YAxis, so how i can make customized in NumericalScale?

0
Stef
Telerik team
answered on 27 Dec 2016, 12:46 PM
Hello Mano,

The LabelFormat for a numeric scale will be one for all labels. Please use the feedback portal to log a feature request for having a label format per label and to include details about the use case.

Regards,
Stef
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Mahesh Babu
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Mahesh Babu
Top achievements
Rank 1
Jans
Top achievements
Rank 1
Stef
Telerik team
Mano
Top achievements
Rank 1
Share this question
or