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

radchart with multiples y axis

2 Answers 79 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
appdev
Top achievements
Rank 1
appdev asked on 12 May 2009, 08:17 PM
if i was doing xml it how do i add more y and x axis. like this one has only one y axis and one x axis

<?xml version="1.0" encoding="utf-8" ?>
<
Products>
<
Product Name="Parka L" QuantityInStock="123"></Product>
<
Product Name="Parka M" QuantityInStock="56"></Product>
<
Product Name="Parka S" QuantityInStock="92"></Product>
<
Product Name="Mittens" QuantityInStock="12"></Product>
</
Products>

and where is the legend or how do i specify chart type in here? Can you explain this for me? thanks guys

2 Answers, 1 is accepted

Sort by
0
appdev
Top achievements
Rank 1
answered on 12 May 2009, 09:21 PM
what i mean is to have multiple seires.
0
Dessy
Telerik team
answered on 13 May 2009, 08:14 AM
Hi Duy,

In order to create multiple  series, you will need to add more numeric columns to your xml file. Then you can set any of the series to be displayed according to secondary YAxis. At present we support only secondary YAxis but a single XAxis.
You can access Legend properties by using RadChart.Legend property. Another property through which you can manipulate the items in legend is LegendDisplayMode property. You can find more information about Legend properties and LegendDisplayMode property here and here.
As for the type of RadChart series, you could use ChartSeries.Type property  and set it to the desirable value.Here is an example:
RadChart.Series[0].Type = ChartSeriesType.Bar;
You can find an attached sample project  to this message illustrating all these functionalities, by using your xml file and also adding one additional numeric column 'Num' in order to display chart with two series and two Y axes.
Additionally you can find useful information about  databinding to an xml file in this online example.

Hope this information helps.

Greetings,
Dessy
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
appdev
Top achievements
Rank 1
Answers by
appdev
Top achievements
Rank 1
Dessy
Telerik team
Share this question
or