Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
chart legend entry style
alexis
Hi,
I would like to apply the same style to all charts in my report.
For example, I would like the chart legend entries to have the same font and size.
I can't find how to apply a CSS style to a chart element.
Is there a way to do this ?
Find more posts tagged with
Comments
kclark
You can apply CSS to the entire chart, not just the legend. If you want to make all of your legends have the same font and size you could try using a script like this in each one.<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>function beforeDrawLegendItem( lerh, bounds, icsc )
{
lerh.getLabel().getCaption().getFont().setName("Algerian")
lerh.getLabel().getCaption().getFont().setBold(false);
lerh.getLabel().getCaption().getFont().setStrikethrough(true)
}</pre>