Page 1 of 1

Marks Visible

Posted: Mon Nov 02, 2009 11:02 pm
by 14045174
I have an area graph. Really, nothing special about it. No null points, about 20 points total.
Area graph.jpg
Area graph.jpg (27.33 KiB) Viewed 3104 times
But if I make marks visible, I am getting "Object reference not set to an instance of an object" error with the following stack:

Code: Select all

   at Steema.TeeChart.Styles.SeriesMarks.InternalDraw(Int32 index, Color aColor, String st, Position aPos)
   at Steema.TeeChart.Styles.Series.DrawMark(Int32 valueIndex, String st, Position aPosition)
   at Steema.TeeChart.Styles.CustomPoint.DrawMark(Int32 valueIndex, String s, Position position)
   at Steema.TeeChart.Styles.Series.DrawMarks()
   at Steema.TeeChart.Styles.Series.DrawMarksSeries(Series s, Boolean& ActiveRegion)
   at Steema.TeeChart.Styles.Series.DrawSeries()
   at Steema.TeeChart.Chart.InternalDraw(Graphics g, Boolean noTools)
   at Steema.TeeChart.Chart.InternalDraw(Graphics g)
   at Steema.TeeChart.TChart.Draw(Graphics g)
   at Steema.TeeChart.TChart.OnPaint(PaintEventArgs pe)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Re: Marks Visible

Posted: Tue Nov 03, 2009 3:21 pm
by yeray
Hi UserLS,

Please, could you send us a simple example project we can run "as-is" to reproduce the problem here? I've tried with the following code but I'm probably missing to set some important property.

Code: Select all

            Steema.TeeChart.Styles.Area area1 = new Steema.TeeChart.Styles.Area(tChart1.Chart);
            area1.FillSampleValues(20);
            area1.Marks.Visible = true;