Hi Telerik
I have till now done 3 bar charts using your new HTML5 charts. All is going well and i have been following your examples which have helped me lots. Though i am currently at a dead stop.
Till now, the bar charts always had a series databound item (coming from a stored procedure) and also the x-axis. They both have a column from the table that the SP is calling and it simply picks up the data and plots.
Now, i am trying to do a pie chart and it only asks for the y (one column). And i cant understand or find an example whereby i need 2 columns in this chart (sort of like x/y axis). Right now, it binds and it fills the pie chart but with just one column. I need to put another value in that same chart (from another column coming from a Stored procedure) that will also render both values on the same chart.
Thanks.
Kyle
Update.
I have eliminated the use of Stored Procedure and DataSourceID in the chart. Im now loading the data manually from the behind and created the object. In the DataFieldY, i placed the property. So i basically have something like this:
Now the data is being loaded as is in the database. Though the problem is that it is showing one color. And its not even taking the first color, its just always staying Olive. (Please see attached). Now, if i hard code values and change the color, all works. Its only on dynamic values.
Can someone please explain to me how this works? I have thought myself and managed to work with bar charts and line charts. Managed from that point of view. Though for a simple pie chart, i cant understand what i am doing wrong.
thanks.
Kyle
I have till now done 3 bar charts using your new HTML5 charts. All is going well and i have been following your examples which have helped me lots. Though i am currently at a dead stop.
Till now, the bar charts always had a series databound item (coming from a stored procedure) and also the x-axis. They both have a column from the table that the SP is calling and it simply picks up the data and plots.
Now, i am trying to do a pie chart and it only asks for the y (one column). And i cant understand or find an example whereby i need 2 columns in this chart (sort of like x/y axis). Right now, it binds and it fills the pie chart but with just one column. I need to put another value in that same chart (from another column coming from a Stored procedure) that will also render both values on the same chart.
Thanks.
Kyle
Update.
I have eliminated the use of Stored Procedure and DataSourceID in the chart. Im now loading the data manually from the behind and created the object. In the DataFieldY, i placed the property. So i basically have something like this:
<
Series
>
<
telerik:PieSeries
StartAngle
=
"0"
DataFieldY
=
"NotPA"
>
<
LabelsAppearance
DataFormatString
=
"no tPA {0}%"
Position
=
"Circle"
/>
<
TooltipsAppearance
BackgroundColor
=
"Red"
DataFormatString
=
"no tPA {0}%"
/>
<
Appearance
FillStyle-BackgroundColor
=
"Red"
/>
</
telerik:PieSeries
>
<
telerik:PieSeries
StartAngle
=
"190"
DataFieldY
=
"TPA"
>
<
LabelsAppearance
DataFormatString
=
"tPA {0}%"
Position
=
"Circle"
/>
<
TooltipsAppearance
BackgroundColor
=
"Yellow"
DataFormatString
=
"tPA {0}%"
/>
<
Appearance
FillStyle-BackgroundColor
=
"Yellow"
/>
</
telerik:PieSeries
>
</
Series
>
Now the data is being loaded as is in the database. Though the problem is that it is showing one color. And its not even taking the first color, its just always staying Olive. (Please see attached). Now, if i hard code values and change the color, all works. Its only on dynamic values.
Can someone please explain to me how this works? I have thought myself and managed to work with bar charts and line charts. Managed from that point of view. Though for a simple pie chart, i cant understand what i am doing wrong.
thanks.
Kyle