Marks Visible

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
UserLS
Advanced
Posts: 247
Joined: Wed May 23, 2007 12:00 am

Marks Visible

Post by UserLS » Mon Nov 02, 2009 11:02 pm

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 3128 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)

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Marks Visible

Post by Yeray » Tue Nov 03, 2009 3:21 pm

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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply