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

Gantt Chart - YAxis date formatting

1 Answer 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 27 Aug 2012, 06:46 PM
Hi.

I am using the latest reports web viewer to render a gantt chart and the Yaxis is rendering the double value e.g. 41130  rather than a date.

The bound data source is simple -
Title - String
Start - double < created using DateTime.ToOADate()
End - double

I have set the series properties with valueformat and customformat as below.

this.chart1.PlotArea.YAxis.Appearance.ValueFormat = Telerik.Reporting.Charting.Styles.ChartValueFormat.LongDate;

this.chart1.PlotArea.YAxis.Appearance.CustomFormat = "dd-MMM-yy";


The design time view shows the correct layout/format however when i switch to preview it renders the double value.

Any help appreciated. Thanks

1 Answer, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 30 Aug 2012, 03:11 PM
Hi Dan,

Check if you are using chart skin. When you use the predefined skins, they override some of the properties that you set design-time. If that is the case, setting the properties that get overridden programmatically in the constructor after the InitializeComponent() call, should fix this issue.   
 
All the best,
Elian
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Dan
Top achievements
Rank 1
Answers by
Elian
Telerik team
Share this question
or