on 04-17-2018 9:13 AM
Hi All,
I am using FPM_CHART_UIBB component to design a pie chart with 3 different colors. I used the color palette settings under the "plot area" section of "general settings", where I have provided fixed color in the format ["#FF0000","#FFFF00","#00FF00"]. This works fine. However my requirement is to render the chart color dynamically where the color code will be decided at run-time instead of fixing them during design time. How can I achieve this.
You can manipulate the chart configuration dynamically at run time via the settings object IO_CHART_SETTINGS which is passed ti the chart's feeder GET_DATA method.
Somethin like
io_settings->SET_CHART_SETTING( iv_property_name = 'plotArea.colorPalette' iv_value = '["#FF0000","#FFFF00","#00FF00"]' ).
should do the trick.
Best regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
26 | |
10 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.