Application dynamic text outside of charting area

Need help in implementing some specific function to your LightningChart Ultimate powered application? Post a question and get code snippets from other LightningChart Ultimate community members.

Moderator: Queue Moderators

Post Reply
benzp
Posts: 6
Joined: Mon May 06, 2013 10:00 am

Application dynamic text outside of charting area

Post by benzp » Fri May 10, 2013 11:39 am

I wish to add a header line within a chart that consists of multiple text fields and also other text fields (again outside of charting area on chart border) and wish then to be saved when a chart.SaveToFile() is called.
I have looked at Annotation etc, but they seem limited to the charting area.
What is the best way to add dynamic text to a chart outside of the charting area?

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

Re: Application dynamic text outside of charting area

Post by ArctionPasi » Fri May 10, 2013 3:05 pm

The annotations really are limited in the graph area by default.

Set annotation.LimitInsideGraphMargins = False to enable it rendering also outside the graph. (stupid property name in fact...) :roll:
LightningChart Support Team, PT

benzp
Posts: 6
Joined: Mon May 06, 2013 10:00 am

Re: Application dynamic text outside of charting area

Post by benzp » Wed May 15, 2013 12:21 pm

Could I use AnnotationXY to write dynamic text values to fixed positions (outside of the charting area) that are not tied to X or Y axis and do not get blanked every time the chart updates (chart in sweeping mode).
ie Similar to way the chart title works (but I need 8 instances).

What AnnotationXY property settings are required to implement as described above?.

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

Re: Application dynamic text outside of charting area

Post by ArctionPasi » Wed May 15, 2013 2:08 pm

Annotations can be tied to screen coordinates too. Set Style = Rectangle, LocationCoordinateSystem = ScreenCoordinates, LocationScreenCoords = Xcoord ,Ycoord.

When X-axis is set to sweeping monitoring mode, the Sweeping Gap also clips the annotation. To minimize the problem, you can set xAxis.SweepingGap = 0. It still shows 1 px thin gap on annotation. Please let me know if you can use it this way, we can definitely add a new property to prevent it from clipping in sweeping mode.
LightningChart Support Team, PT

benzp
Posts: 6
Joined: Mon May 06, 2013 10:00 am

Re: Application dynamic text outside of charting area

Post by benzp » Thu May 16, 2013 9:17 am

I tried this and:

1. When Annotation is placed within chart area it behaves as you suggest - only blanked when sweeping gap passes.
2. When plotted outside of chart area the annotation is blanked on sweeping gap passing and is not redrawn until the start of the plot. So the annotation is blanked for potentially a long time.

So in it's current state this is not a usable solution, if it behaved just like the chart title then is would be great ;-)

benzp
Posts: 6
Joined: Mon May 06, 2013 10:00 am

Re: Application dynamic text outside of charting area

Post by benzp » Fri May 17, 2013 7:43 am

When in sweeping mode an annotation placed below X-axis and to left of Y-axis (so bottom left corner) never gets displayed (probably connected with the same issue as previous message), but in scrolling mode it works fine.

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

Re: Application dynamic text outside of charting area

Post by ArctionPasi » Fri May 31, 2013 10:46 am

We've just added ClipWhenSweeping property for AnnotationXY objects. Set it to False, to prevent the sweeping gap from affecting it. The new property is in v.5.1.5 and newer :? .
LightningChart Support Team, PT

Post Reply