Hello everyone,
I want to partially generate an HTMLchart in codebehind.
Here is what i got :
ASPX :
in my .CS file :
This is working perfectly, i get the labels on my chart.
But when i create a serie and decide to add data ...
I get 2 points on my chart : one for "16" and the other for "85".
Is this a bug or am i doing it wrong ? Or both ? :p
Many thanks.
Framework 4.0 - WS2008R2 - VS2010
EDIT : http://demos.telerik.com/aspnet-ajax/htmlchart/examples/databinding/staticitems/defaultcs.aspx
This is the same when i try to reproduce your static example :(
I want to partially generate an HTMLchart in codebehind.
Here is what i got :
ASPX :
<telerik:RadHtmlChart ID="CHT_samples" runat="server"></telerik:RadHtmlChart>in my .CS file :
AxisItem o_xItem = new AxisItem();i_gridLines =9;for (i_incrementA = 0; i_incrementA < i_gridLines; i_incrementA++){ // Add the mold number as the X label o_xItem = new AxisItem(); o_xItem.LabelText = "#" + o_sampling.LST_MOLDS[i_incrementA].NUM; CHT_SAMPLESCHART.PlotArea.XAxis.Items.Add(o_xItem);}This is working perfectly, i get the labels on my chart.
But when i create a serie and decide to add data ...
LineSeries o_xMax = new LineSeries(); o_xMax.Name = "Max";CHT_SAMPLESCHART.PlotArea.Series.Add(o_xMax);CHT_SAMPLESCHART.PlotArea.Series[0].Items.Add(16.85m);I get 2 points on my chart : one for "16" and the other for "85".
Is this a bug or am i doing it wrong ? Or both ? :p
Many thanks.
Framework 4.0 - WS2008R2 - VS2010
EDIT : http://demos.telerik.com/aspnet-ajax/htmlchart/examples/databinding/staticitems/defaultcs.aspx
This is the same when i try to reproduce your static example :(