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?
Application dynamic text outside of charting area
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Application dynamic text outside of charting area
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...)![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
Set annotation.LimitInsideGraphMargins = False to enable it rendering also outside the graph. (stupid property name in fact...)
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
LightningChart Support Team, PT
Re: Application dynamic text outside of charting area
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?.
ie Similar to way the chart title works (but I need 8 instances).
What AnnotationXY property settings are required to implement as described above?.
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Application dynamic text outside of charting area
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.
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
Re: Application dynamic text outside of charting area
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![Wink ;-)](./images/smilies/icon_e_wink.gif)
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
![Wink ;-)](./images/smilies/icon_e_wink.gif)
Re: Application dynamic text outside of charting area
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.
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Application dynamic text outside of charting area
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
.
![Confused :?](./images/smilies/icon_e_confused.gif)
LightningChart Support Team, PT