Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to use AjaxControlToolkit line chart but when i browse my page i see only a stroke I did think my code is wrong, so i use sample of that but i see stroke again please help me frinds.

this is sample code of that:

ASP.NET
<pre>            <ajaxToolkit:LineChart ID="LineChart1" runat="server" ChartHeight="300" ChartWidth="450"
                ChartTitle="United States versus European Widget Production" CategoriesAxis="2007,2008,2009,2010,2011,2012"
                ChartType="Basic" ChartTitleColor="#0E426C" CategoryAxisLineColor="#D08AD9" ValueAxisLineColor="#D08AD9"
                BaseLineColor="#A156AB" AreaDataLabel=" thousands">
                <Series>
                    <ajaxToolkit:LineChartSeries Name="United States" LineColor="#6C1E83" Data="110, 189, 255, 95, 107, 140" />
                    <ajaxToolkit:LineChartSeries Name="Europe" LineColor="#D08AD9" Data="49, 77, 95, 68, 70, 79" />
                    <ajaxToolkit:LineChartSeries Name="United States" LineColor="#6C1E83" Data="150, 209, 255, 115, 127, 160" />
                    <ajaxToolkit:LineChartSeries Name="Europe" LineColor="#D08AD9" Data="130, 137, 155, 128, 130, 139" />
                    <ajaxToolkit:LineChartSeries Name="Australia" LineColor="green" Data="10, 18, 16, 9, 5, 11" />
                    <ajaxToolkit:LineChartSeries Name="China" LineColor="brown" Data="95, 106, 109, 103, 100, 106" />
                    <ajaxToolkit:LineChartSeries Name="India" LineColor="red" Data="82, 75, 88, 74, 85, 89" />
                    <ajaxToolkit:LineChartSeries Name="England" LineColor="blue" Data="40, 48, 46, 39, 35, 41" />
                    <ajaxToolkit:LineChartSeries Name="Japan" LineColor="black" Data="115, 112, 116, 113, 115, 126" />
                    <ajaxToolkit:LineChartSeries Name="Canada" LineColor="gray" Data="65, 62, 69, 63, 61, 66" />
                </Series>
            </ajaxToolkit:LineChart>



What I have tried:

Result of code
Posted
Comments
Vincent Maverick Durano 15-Jan-17 17:30pm    
We can't see your whole code and actual data. I would suggest you to use a debugger and check the data you fed into your Chart.
Roozbeh Amiressami 16-Jan-17 3:02am    
this code is in a blank aspx page with out any css or script
AndyFr 25-Oct-21 5:46am    
Just wondered, did you find the cause of this problem? I've got the same issue. The line graph displays on my developer machine but when deployed to a hosting site (GoDaddy) the graph just renders as a single horizontal black line.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900