Series Event Marker symbol Issue

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
PKS
Posts: 7
Joined: Fri Jan 09, 2015 11:55 am

Series Event Marker symbol Issue

Post by PKS » Mon Feb 02, 2015 2:02 pm

Hi,

I draw a series event marker but its symbol is not smooth.
Please check the attached screen shot and provide some help.

Thanks,
Attachments
SeriesEventMarker.JPG
SeriesEventMarker.JPG (7.76 KiB) Viewed 15482 times

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Series Event Marker symbol Issue

Post by ArctionPasi » Mon Feb 02, 2015 4:24 pm

Please set chart.RenderOptions.AntiAliaslevel = 4. You might have 0 or 1 there, which disables AA.

Or you ary maybe running with an old Intel GPU that doesn't support anti-aliasing in hardware at all.
LightningChart Support Team, PT

PKS
Posts: 7
Joined: Fri Jan 09, 2015 11:55 am

Re: Series Event Marker symbol Issue

Post by PKS » Mon Feb 02, 2015 5:22 pm

Also,please confirm do we need to manually remove the series event marker from sampledataseries when it goes out side the visible chart area or is it do automatically?

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Series Event Marker symbol Issue

Post by ArctionPasi » Mon Feb 02, 2015 6:08 pm

By setting ViewXY.DropOldEventMarkers = true, the outscrolled markers are destroyed by the chart.
LightningChart Support Team, PT

PKS
Posts: 7
Joined: Fri Jan 09, 2015 11:55 am

Re: Series Event Marker symbol Issue

Post by PKS » Mon Feb 02, 2015 7:19 pm

ViewXY.DropOldSeriesData does this property clear series data(plotting) and series event markers both ?

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Series Event Marker symbol Issue

Post by ArctionPasi » Mon Feb 02, 2015 8:10 pm

DropOldSeries data destroys old series data, but not markers.

DropOldEventMarkers destroys the markers, but not data.

To destroy both, enable both these properties.

When markers are set to track the data values, and series data is destroyed from marker's location the marker will disappear because there's no data to track on that position anymore. But the marker stays in the markers list.
LightningChart Support Team, PT

PKS
Posts: 7
Joined: Fri Jan 09, 2015 11:55 am

Re: Series Event Marker symbol Issue

Post by PKS » Tue Feb 03, 2015 4:31 pm

DropOldEventMarkers is this property drop both (SeriesEventMarkers & ChartEventMarkers) ?

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Series Event Marker symbol Issue

Post by ArctionPasi » Tue Feb 03, 2015 5:38 pm

Yes.
LightningChart Support Team, PT

PKS
Posts: 7
Joined: Fri Jan 09, 2015 11:55 am

Re: Series Event Marker symbol Issue

Post by PKS » Fri Feb 06, 2015 8:39 pm

We need to display a huge amount of markers on the chart, so instead of initializing new marker object every time can we reuse these markers ? as soon as the marker go beyond the visible chart area we reuse it by placing it in upcoming time stamp ?

i think it would definitely boost up the performance of my application.

Would you like to suggest something on this?

Happy Coding !! 8-)

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Series Event Marker symbol Issue

Post by ArctionPasi » Fri Feb 06, 2015 8:55 pm

It's definitely a good idea to recycle markers. You can set marker.Visible = false when it goes out of the chart, and then recycle that marker to new position and set Visible = true.

It is the optimal approach, and I definitely recommend using it :D
LightningChart Support Team, PT

Post Reply