Nevron Forum

Add a long data to to a series's Values.

https://www.nevron.com/Forum/Topic3998.aspx

By inhyuk son - Wednesday, August 18, 2010

Hi~

I added a long data to a series's XValues.
But the chart is no response.
Only integer is available?

Sample code is here.

NPointSeries m_Point;
NChart m_Chart;

m_Chart = nChartControl1.Charts[0];
m_Point = (NPointSeries)m_Chart.Series.Add(SeriesType.Point);
m_Point.UseXValues = true;

m_Point.XValues.Add(10000000000);
m_Point.Values.Add(10000000000);
By Nevron Support - Thursday, August 19, 2010

Hi Inhyuk,

Thank you for pointing out this problem - it is caused by the ordinal scale on the x axis, which currently cannot handle long values as it is usually used in categorical charts that typically have values in the range 0-1000. To work around the problem you can switch the X axis in linear mode:

m_Chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = new NLinearScaleConfigurator();

We have fixed the issue in the upcoming SP of the component.

By inhyuk son - Friday, September 10, 2010

Hi~ Nevron.
Could you tell me when can I get the SP of the component?

Thank you.
By Nevron Support - Friday, September 10, 2010

Hi Inhyuk,

You just need to download the install again and reisntall the software. This should take care of the problem.

By inhyuk son - Monday, October 4, 2010

Hi Nevron~
I installed the latest version(10.9.24.12).
But It doesn't work perfectly.

I'll wait for your answer.
Thank you.


//Sample code
NPointSeries m_Point;
NChart m_Chart;

m_Chart = nChartControl1.Charts[0];
m_Point = (NPointSeries)m_Chart.Series.Add(SeriesType.Point);
m_Point.UseXValues = true;

//It does work
m_Point.XValues.Add(10000000000);
m_Point.Values.Add(10000000000);

//no response
m_Point.XValues.Add(10000000000);
m_Point.Values.Add(10000000000);
m_Point.XValues.Add(20000000000);
m_Point.Values.Add(20000000000);

//It doesn't work
m_Point.XValues.Add(200000000000000);
m_Point.Values.Add(200000000000000);
By Nevron Support - Tuesday, October 5, 2010

Hi Inhyuk,

Just switch the X scale configurator in linear mode:

m_Chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = new NLinearScaleConfigurator();

That will take care of the problem - otherwise you're correct the fix is not present in the ordinal scale yet.