Profile Picture

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

Posted By inhyuk son 14 Years Ago
Author
Message
inhyuk son
Posted 14 Years Ago
View Quick Profile
Junior Member

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
Last Active: 12 Years Ago
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
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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
Posted 14 Years Ago
View Quick Profile
Junior Member

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
Last Active: 12 Years Ago
Posts: 21, Visits: 1
Hi~ Nevron.
Could you tell me when can I get the SP of the component?

Thank you.

Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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
Posted 14 Years Ago
View Quick Profile
Junior Member

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
Last Active: 12 Years Ago
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
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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





Similar Topics


Reading This Topic