Profile Picture

Legend, Header, Axis disappear when adding data point to point series

Posted By CHANGMIN KIM 5 Years Ago

Legend, Header, Axis disappear when adding data point to point series

Author
Message
CHANGMIN KIM
Problem Posted 5 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 4 Years Ago
Posts: 10, Visits: 25
I have a NChart with a NChartControl.
I added three series to this NChart : two PointSeries, one GraphicsPathSeries.

After adding some line segments to GraphicsPathSeries, I tried to add some datapoints to PointSeries.
But View of legend, header and axis which has been originally viewed good just disappeared.

Is it impossible to hold different type of chart series in one chart ?

Here is my Code :


NChart nChart = nChartControl1.Charts[0];
nChart.Axis(StandardAxis.Depth).Visible = false;

NPointSeries SeriesA = nChart.Series.Add(SeriesType.Point) as NPointSeries;
SeriesA.Size = new NLength(2, NRelativeUnit.ParentPercentage);
SeriesA.Name = "Series A";
SeriesA.PointShape = PointShape.Asterisk;
SeriesA.UseXValues = true;
SeriesA.DataLabelStyle.Visible = false;
SeriesA.FillStyle = new NColorFillStyle(Color.DarkKhaki);
SeriesA.InflateMargins = true;

NPointSeries SeriesB = nChart.Series.Add(SeriesType.Point) as NPointSeries;
SeriesB.Size = new NLength(2, NRelativeUnit.ParentPercentage);
SeriesB.Name = "Series B"
SeriesB.PointShape = PointShape.Diamond;
SeriesB.UseXValues = true;
SeriesB.DataLabelStyle.Visible = false;
SeriesB.FillStyle = new NColorFillStyle(Color.Red);
SeriesB.InflageMargins = true;

NGraphicsPathSeries SeriesC = nChart.Series.Add(SeriesType.GraphicsPath) as NGraphicsPathSeries;
SeriesC.Name = "Series C";
SeriesC.FillStyle = new NColorFillStyle(Color.DarkGray);
SeriesC.InflageMargins = true;

NAxis axisX = nChart.Axis(StandardAxis.PrimaryX);
NAxis axisY = nChart.Axis(StandardAxis.PrimaryY);
axisX.ScaleConfigurator.Title.Text = "X Axis";
axisY.ScaleConfigurator.Title.Text = "Y Axis";
axisX.ScaleConfigurator.Invert = true;
axisX.View = new NRangeAxisView(new NRange1DD(-1000.0, 1000.0), true, true);
axisY.View = new NRangeAxisView(new NRange1DD(-500, 500), true, true);

NGraphicsPath graphicsPath = new NGraphicsPath();
graphicsPath.AddLineSegment(new NPointD(2.0, 0.0), new NPointD(1.0, 1.0));
graphicsPath.AddLineSegment(new NPointD(1.0, 1.0), new NPointD(-1.5, 1.0));
graphicsPath.AddLineSegment(new NPointD(-1.5, 1.0), new NPointD(-1.5, -1.0));
graphicsPath.AddLineSegment(new NPointD(-1.5, -1.0), new NPointD(1.0, -1.0));
graphicsPath.AddLineSegment(new NPointD(1.0, -1.0), new NPointD(2.0, 0.0));
SeriesC.GraphicsPath = graphicsPath;

SeriesA.ClearDataPoints();
SeriesA.AddDataPoint(new NDataPoint(10, 10)); // This is when everything go disappear
SeriesA.AddDataPoint(new NDataPoint(20, 20));
...
...



Nevron Support
Posted 5 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: 6 hours ago
Posts: 3,054, Visits: 4,009
Hi Kim,
Thank you for reporting this issue - we just published a SP fixing on the website. You need to download and reinstall .NET Vision in order to use the fixed dlls. Hope we helped - let us know if you meet any problems or have any questions.

Best Regards,
Nevron Support Team



CHANGMIN KIM
Posted 5 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 4 Years Ago
Posts: 10, Visits: 25
It does not seem to be fixed.

Can you check it one more ?

https://www.nevron.com/forum/uploads/images/5c1eb1a1-e46a-4082-a3a1-6962.png
I let my VS to refer to latest version of Nevron Vision dll.

but same problem occurs.https://www.nevron.com/forum/uploads/images/bdc598b1-6652-4de3-a679-a5ba.png
When I add datapoints to series A,
https://www.nevron.com/forum/uploads/images/ed3ce545-7dbe-4a0b-ab17-8a5b.png


Nevron Support
Posted 5 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: 6 hours ago
Posts: 3,054, Visits: 4,009
Hi Kim,
Can you send us the application you're testing it to support@nevron.com for further review.

Best Regards,
Nevron Support Team



CHANGMIN KIM
Posted 5 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 4 Years Ago
Posts: 10, Visits: 25
This problem is fixed after updating to Nevron Vision For .NET version 19.11.7.12.
Thanks ;-)



Similar Topics


Reading This Topic