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

Problem with changing charts format

1 Answer 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sofy
Top achievements
Rank 1
Sofy asked on 13 Dec 2010, 02:19 PM
Hello,

I am using telerik reporting in order to make a chart on my web page and i seem to have a problem i cannot solve. I am using the StackedSplineArea chart with the Inox skin. Now I have changed the YAxis letters and numbering color to black that was easy by changing their color in appearance. I am facing a problem trying to change the labels' color. It is gray and i want it black.. I change it through the series apearance properties.. It is correctly changed on the design mode but as soon as I run it.. in preview mode or html it is still grey. I close it I re-open it and the color change I had done is gone.. I cannot change the label color.


Appart from that.. I want to make a chart with a time line... i have found how can i put dates to the xAxis but i want months...
I also want xAxis to show categories... that is not numeric.. I think it is not possible with the current charts.. is it??

Thank you in advance!
Sofia Sidirokastriti

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 14 Dec 2010, 05:23 PM
Hello Sofy,

Please, make sure the ChartSeries you have created have their DataYColumn property set with the name of the property / column providing the values for YValue. This way the chart will re-use them and their settings (label text color) will be respected. If DataYColumn is not set the chart will actually create new ChartSeries for each numeric property in the underlying datasource, but you will not be able to control them.

RadChart supports DateTime values through their OLEAutomation equivalent -- you have already found this. This functionality is shown in this online example -- it demonstrates RadChart for ASP.NET AJAX, but the chart item in Telerik reporting shares the same engine and API (having in mind that for reporting you need to use the Telerik.Reporting.Charting namespace). In addition to the details demonstrated in this example, you will have to set the RadChart1.PlotArea.XAxis.Appearance.CustomFormat property. You can use any valid DateTime formatting string (like "MMMM-yy").

You can find an example of a categorical chart in this help topic.

Regards,
Ves
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
Tags
General Discussions
Asked by
Sofy
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or