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


Author
Message
inhyuk son
inhyuk son
Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)
Group: Forum Members
Posts: 21, Visits: 1
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);
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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.



Best Regards,
Nevron Support Team


inhyuk son
inhyuk son
Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)
Group: Forum Members
Posts: 21, Visits: 1
Hi~ Nevron.
Could you tell me when can I get the SP of the component?

Thank you.
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Inhyuk,

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



Best Regards,
Nevron Support Team


inhyuk son
inhyuk son
Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)
Group: Forum Members
Posts: 21, Visits: 1
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);

Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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.



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search