How to change or fix the chart type from AreaChart to LineChart

2 posts, 0 answers
  1. Ravi
    Ravi avatar
    5 posts
    Member since:
    May 2016

    Posted 26 May 2016 Link to this post



    I have coded the ASPX page for LineChart (same as in the demo code) as below. But the chart is displayed as an AreaChart, not a LineChart.

    Is the any way or dynamic code that i can force the chart from Area Chart to Line Chart?

     <telerik:RadHtmlChart runat="server" ID="LineChart" Width="800" Height="500" Transitions="true" Skin="Silk"> ........

    <Series><telerik:LineSeries Name="Week 1">


  2. Vessy
    Vessy avatar
    2410 posts

    Posted 26 May 2016 Link to this post

    Hi Ravi,

    I assume that you are referring this RadHtmlChart's demo:

    I tested it but it is rendering Line chart properly on my side. Can you, please, elaborate a bit on the exact scenario in which the Line chart is rendered as Area one on your side? Can you give us the whole configuration leading to this behavior?

    Can you test whether you are experiencing the same problem with the chart below?
        <telerik:RadHtmlChart runat="server" ID="LineChart" Width="800" Height="500" Transitions="true">
                <telerik:LineSeries Name="Week 15" >
                        <telerik:CategorySeriesItem Y="15" />
                        <telerik:CategorySeriesItem Y="23" />
                        <telerik:CategorySeriesItem />
                        <telerik:CategorySeriesItem Y="71" />
                        <telerik:CategorySeriesItem Y="93" />
                <telerik:LineSeries Name="Week 16">
                        <telerik:CategorySeriesItem Y="35" />
                        <telerik:CategorySeriesItem Y="42" />
                        <telerik:CategorySeriesItem Y="18" />
                        <telerik:CategorySeriesItem Y="39" />
                        <telerik:CategorySeriesItem Y="9" />
        <ChartTitle Text="Server CPU Load By Days">
            <Appearance Position="Bottom" />

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top