Page 1 of 1

How to add custom legends based on canvas painting

Posted: Tue May 09, 2023 5:17 am
by 17795639
Hello team,
I would like to display legends based on my custom canvas painting like rectangles and all.
How could I achieve this ?

Re: How to add custom legends based on canvas painting

Posted: Tue May 09, 2023 4:10 pm
by Marc
Hello,

You can draw it via rectangles, index positioning the rectangles and use the fillbrush from each Series (or point) to which the legend item is related. I recommend using Chart relative positions not absolute positions, to locate the Legend. There are some examples (without the coloured rectangles) in the demo linked via this thread:

https://www.steema.com/support/viewtopi ... 891#p79550

Regards,
Marc