Profile Picture

show 0 in stead of 5,57843E-17

Posted By Willie-Jan Bons 14 Years Ago
Author
Message
bob milanov
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)

Group: Forum Members
Last Active: 6 Months Ago
Posts: 153, Visits: 11

That's becuase you don't provide an X value to the data point and the control automatically assigns 0 to the first one, 1 to the second etc. The data point p must be initialized with an x value - for example:

NDataPoint p = new NDataPoint(2.54, 2.0);

Best regards,
Bob



Willie-Jan Bons
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 6, Visits: 1

the

b1.UseXValues = True

 

is causing problems..



Willie-Jan Bons
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 6, Visits: 1

If you run the following code i would like to show 0 in stead of a small value...
What am i doing wrong here?

 

NDSChart.Settings.EnableJittering = False

NDSChart.Settings.RenderSurface = Nevron.GraphicsCore.RenderSurface.Bitmap

NDSChart.Settings.ShapeRenderingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality

NDSChart.Settings.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit

NDSChart.Settings.JitteringSteps = 3

NDSChart.Settings.JitteringDeviation = 1

Dim Chart As NChart

Chart = NDSChart.Charts.Item(0)

NDSChart.Legends.Clear()

NDSChart.Settings.RenderDevice = Nevron.GraphicsCore.RenderDevice.GDI

Chart.Projection.ViewerRotation = 0

Dim Ax As NAxis = Nothing

Ax = Chart.Axis(StandardAxis.PrimaryY)

Chart.Axis(Nevron.Chart.StandardAxis.PrimaryX).Visible = True

Chart.Axis(Nevron.Chart.StandardAxis.PrimaryY).Visible = True

Dim NumScaley As NLinearScaleConfigurator = Chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator

NumScaley.MajorTickMode = MajorTickMode.AutoMaxCount

NumScaley.RoundToTickMax = False

NumScaley.RoundToTickMin = False

Dim b1 As NLineSeries = Chart.Series.Add(SeriesType.Line)

b1.MarkerStyle.Visible = True

b1.MarkerStyle.PointShape = PointShape.Cross

b1.UseXValues = True

Chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = New NLinearScaleConfigurator

Dim P As New NDataPoint(2.54)

b1.AddDataPoint(P)





Similar Topics


Reading This Topic