radchart with multiples y axis

Thread is closed for posting
3 posts, 0 answers
  1. appdev
    appdev avatar
    223 posts
    Member since:
    Sep 2008

    Posted 12 May 2009 Link to this post

    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. appdev
    appdev avatar
    223 posts
    Member since:
    Sep 2008

    Posted 12 May 2009 Link to this post

    what i mean is to have multiple seires.
  3. Dessy
    Admin
    Dessy avatar
    73 posts

    Posted 13 May 2009 Link to this post

    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.
Back to Top