Hello,
I would like to ask if it is possible to have in annotations more complex elements than just text - e.g., images or checkboxes. Or is there some other type of overlay components which supports it?
Example of what I need to achieve:
Overlay (Annotation) with images and textboxes
Moderator: Queue Moderators
-
- Posts: 1
- Joined: Wed Oct 25, 2017 12:51 pm
-
- Posts: 555
- Joined: Mon Mar 14, 2016 9:22 am
Re: Overlay (Annotation) with images and textboxes
Hello Rudolf,
Yes, annotation class is probably best option to achieve complex table-image. LightningChart's Annotation is very flexible object. You can have multiple lines of text in Annotation as shown in our Demo App example "Multi-channel cursor tracking" You can have Annnotation's background filled with bitmap image. For that just set corresponding Fill properties:
Our example "Custom rendering" illustrates how it can be used
The checkbox image could be added this way.
Finally you could add several Annotations together by building table like object. This could be found in example "Annotations table" However, LightningChart's Annotation is not the only object, which could have image and text. For example EventMarkers (Series or Chart) have text label as well as symbol, which could take not only geometrical shape, but bitmap image as well.
Hope this helps.
All the best.
Yes, annotation class is probably best option to achieve complex table-image. LightningChart's Annotation is very flexible object. You can have multiple lines of text in Annotation as shown in our Demo App example "Multi-channel cursor tracking" You can have Annnotation's background filled with bitmap image. For that just set corresponding Fill properties:
Code: Select all
annot1.Fill.Style = RectFillStyle.Bitmap;
annot1.Fill.Bitmap.Image = SomeImage;
annot1.Fill.Bitmap.Layout = BitmapFillLayout.Center;
Finally you could add several Annotations together by building table like object. This could be found in example "Annotations table" However, LightningChart's Annotation is not the only object, which could have image and text. For example EventMarkers (Series or Chart) have text label as well as symbol, which could take not only geometrical shape, but bitmap image as well.
Hope this helps.
All the best.
Re: Overlay (Annotation) with images and textboxes
Could you post us example code how to template semibinding Annotation ? For example from xaml.
We want to use own content template with for example content presenter.
Could you also post us links to download example codes ?
Thanks
We want to use own content template with for example content presenter.
Could you also post us links to download example codes ?
Thanks
-
- Posts: 555
- Joined: Mon Mar 14, 2016 9:22 am
Re: Overlay (Annotation) with images and textboxes
LightningChart was installed with Demo binaries as well as Demo source code. To find them just run DemoApp, select example you interested in and then click on one of two last icons in top ToolBar:
It either opens example's source code or solution in Visual Studio.
Hope this helps.
It either opens example's source code or solution in Visual Studio.
Hope this helps.