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

couple of problems

2 Answers 42 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Conrad
Top achievements
Rank 1
Conrad asked on 05 Jun 2009, 02:05 PM
Hi,

So far I've implemented most of the controls without much hassle, except the chart control...

Databinding overwrites pre-defined series
If a series is created in the aspx and a datasourseid is specified, the series created in aspx will not show

Find all x label values, but not series values
It defines the x label values from the complete data set, however it only displays the data for the x labels found in the first series.  So if the datatable doesn't have values for each x-point then it doesn't show.  I've checked my sql query and flipped the order by (eg. year first, month first) and depending on the order by, some bars will show and some not.  Will now write some dodge sql to ensure data at each x-point.

Formatting text x values (text color specifically)
No idea where this is set and have been searching for an hour.


Any ideas or suggestions would really be appreciated.







2 Answers, 1 is accepted

Sort by
0
Conrad
Top achievements
Rank 1
answered on 05 Jun 2009, 02:12 PM
X-axis labels overwritten by databind

When databind occurs these are "deleted" and created according to the datasource values.

<

 

XAxis DataLabelsColumn="Month">

 

 

<Items>

 

 

<telerik:ChartAxisItem Value="1"></telerik:ChartAxisItem>

 

 

<telerik:ChartAxisItem Value="2"></telerik:ChartAxisItem>

 

 

<telerik:ChartAxisItem Value="3"></telerik:ChartAxisItem>

 

 

<telerik:ChartAxisItem Value="4"></telerik:ChartAxisItem>

 

 

<telerik:ChartAxisItem Value="5"></telerik:ChartAxisItem>

 

 

<telerik:ChartAxisItem Value="6"></telerik:ChartAxisItem>

 

 

<telerik:ChartAxisItem Value="7"></telerik:ChartAxisItem>

 

 

<telerik:ChartAxisItem Value="8"></telerik:ChartAxisItem>

 

 

<telerik:ChartAxisItem Value="9"></telerik:ChartAxisItem>

 

 

<telerik:ChartAxisItem Value="10"></telerik:ChartAxisItem>

 

 

<telerik:ChartAxisItem Value="11"></telerik:ChartAxisItem>

 

 

<telerik:ChartAxisItem Value="12"></telerik:ChartAxisItem>

 

 

</Items>

 

 

<Appearance>

 

 

<MajorGridLines Color="Gray" />

 

 

</Appearance>

 

 

</XAxis>

 



0
Vladimir Milev
Telerik team
answered on 11 Jun 2009, 10:35 AM
Hi Conrad,

We suggest you use the PrePaint event to edit your axis items text as a work-around. We apologize for the inconvenience this causes.

All the best,
Vladimir Milev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Chart (Obsolete)
Asked by
Conrad
Top achievements
Rank 1
Answers by
Conrad
Top achievements
Rank 1
Vladimir Milev
Telerik team
Share this question
or