ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  How to set backgroud of items in Legend
Posted by Alexander on Aug-28-2017 21:41
Attachments:
Hello,

How to set background of items in the legend box?
I want to remove transparency only under text, not for the legend box on the whole.
legend_items_background.png

  Re: How to set backgroud of items in Legend
Posted by Peter Kwan on Aug-29-2017 06:09
Hi Alexander,

If your legend box is created using addLegend, you can configure the background color of the text label using CDML. For example:

b = c.addLegend(......)
b.setText("<*bgColor=CCCCCC*>{dataSetName}")

Regards
Peter Kwan

  Re: How to set backgroud of items in Legend
Posted by Alexander on Aug-29-2017 18:46
Hi Peter,

Thank you for help.
That's it.