Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Setting chart legend entry format with script
kallem
How can I change chart legend entry format with script? I can achieve the same by setting formatted legend entry captions in script but I'd like to know how to change format as well.
Thanks in advance,
Kalle
Find more posts tagged with
Comments
kallem
Found it myself<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>...
chart.getLegend().getFormatSpecifier().setPattern("yyyy-MM");
...
</pre>
assuming that date time format specifier is used.
mwilliams
Those are the easiest questions for me to help with...when you already found the answer!
Let us know whenever you have questions!