IE 10 : I can not get the last "stroke" in line chart, if I do the same thing in pie chart, it reders as expected.
Firefox : Both are working as expected.
Screen shot : IE 10& fifrefox 23.0.1
Below is the code snippet :
aspx
<div id="chart"><ajaxToolkit:ToolkitScriptManager runat="server"></ajaxToolkit:ToolkitScriptManager><ajaxToolkit:LineChart ID="LineChart1" runat="server" ChartHeight="300" ChartWidth="900" ChartType="Stacked" ChartTitleColor="#0E426C" CategoryAxisLineColor="#D08AD9" ValueAxisLineColor="#D08AD9" BaseLineColor="#A156AB"></ajaxToolkit:LineChart><ajaxToolkit:PieChart ID="PieChart1" runat="server" ChartHeight="300" ChartWidth="300" ChartType="Column" ChartTitleColor="#0E426C"></ajaxToolkit:PieChart></div>
C#
private void PlotCustomerGraph(List<Customer> allCustomers) { DataTable tblCustomers = new DataTable(); using (var reader = ObjectReader.Create(allCustomers)) { tblCustomers.Load(reader); } string[] x = new string[tblCustomers.Rows.Count]; decimal[] y = new decimal[tblCustomers.Rows.Count]; for (int i = 0; i < tblCustomers.Rows.Count; i++) { x[i] = tblCustomers.Rows[i][0].ToString(); y[i] = decimal.Parse(tblCustomers.Rows[i][2].ToString()); if (clrStack.Count <= 1) clrStack = new Stack<string>(clr); PieChart1.PieChartValues.Add(new PieChartValue { Category = x[i], Data = y[i], PieChartValueColor = clrStack.Pop() }); } LineChartSeries series1 = new LineChartSeries { Data = y }; series1.Name = "Displaying : Customer Orders"; LineChart1.Series.Add(series1); LineChart1.CategoriesAxis = string.Join(",", x); LineChart1.ChartTitle = "Title : Customers Vs. No of Orders"; }