Hi,
I work on a dashboard with several charts.
All these charts use the same customized fieldColors option but I have to repeat the option charting.fieldColors in each chart.
Question :
Is there a way to specify the option just one time and reuse it in each chart ?
Thank you
Store the field colours in a token (in the init block) and use the token in the fieldColors option.
Store the field colours in a token (in the init block) and use the token in the fieldColors option.
Hi @ITWhisperer
Thanks for reply.
However, I try this but it doesn't work
<form>
<init>
<set token="colorGreen">0x00AA00</set>
</init>
...
...
...
<row>
<panel>
<chart>
<option name="charting.fieldColors">{"SUCCES": $colorGreen$, "ERR. FONC.": 0x0000AA, "ERR. TECH.": 0xDD0000}</option>
...
...
My SUCCES bar still appears in Black instrad of green.
If I replace the token by his value (0x00AA00), it's OK
Is my <init> block in good location ?
Thanks
Tokens aren't evaluated in edit mode - have you saved your changes?