Here in this example , I have formatted both X and Y axis labels of chartview. The datetime value in X axis shows the correct formatting result. But the Y axis label not shows any formatted output ( for Eg, if I have a value 1000, it should have to be displayed as 1,000).

Please help me.

-Praveen.

Answer

Ivan Petrov

I can confirm that there is an issue with the formatting of the labels in Linear axes. I have logged this issue in our Public Issue Tracking System - PITS. You can track the progress of the issue, subscribe for status changes and add your vote/comment to it on the following link - PITS Issue.

Until the issue is resolved you can workaround it by creating a custom format provider and assigning it to the linear axis of your chart:

Mark

I still have a similar problem, even after upgrading to your latest version.

I have a stacked bar chart in horizontal form, so the x-axis is linear. The linear input are ticks, so of type long, and i would like to format this to hours, or datetimes; ideally i would set a datetime at the origin and then the labels should count on from there.

At the moment my Format function returns the ToString of (value/TimeSpan.TickPerHour). My value variable is of type long.
Any ideas how I can get this to work?

Thanks,

Mark

Ivan Petrov

Please, find attached an example project where I have tried to implement what I understand is your case. If this is not what you want to achieve or if this does not replicate your setup, I would kindly ask you to send me a more detailed explanation. Any additional materials like screenshots or sketches would also be helpful.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.