This is a migrated thread and some comments may be shown as answers.

floating data issue

3 Answers 58 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Maxime
Top achievements
Rank 1
Maxime asked on 06 Jul 2012, 09:29 AM
Hello everyone,

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 :(

3 Answers, 1 is accepted

Sort by
0
Maxime
Top achievements
Rank 1
answered on 10 Jul 2012, 12:52 PM
It seems to happen when i change my firefox culture setting to fr-FR. with en-US, works fine ...
My application will use several ressources files, how can we handle this situation ?
0
Slav
Telerik team
answered on 11 Jul 2012, 07:33 AM
Hello Maxime,

There is a problem in the data serialization under certain cultures that have a comma for the decimal sign. The issue is currently being investigated, although I cannot provide a firm estimate when a fix will be available. You can use the PITS item of this issue to track its status.

For the time being you can avoid this behavior if you force a particular culture that uses an appropriate decimal sign, for example en-US.

Feel free to contact us again if you run into more difficulties.

Regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Accepted
Slav
Telerik team
answered on 11 Jul 2012, 03:37 PM
Hi Maxime,

Excuse me for misleading you, the problem that I described in the previous post is fixed and the solution is included in the latest internal build of RadControls for ASP.NET AJAX. You can download it via this link and you can use it to resolve the issue.

Regards,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (HTML5)
Asked by
Maxime
Top achievements
Rank 1
Answers by
Maxime
Top achievements
Rank 1
Slav
Telerik team
Share this question
or