How to create a chart selector list
The goal of this document to explain how you can make an charttype selector. When we click on the chart tab we want to see a list of possible charttypes selectable for the user.
we create a POPUP component, inserted a GRID component ROW=6 COLUMN=1
Set WIDTH, Height and the positioning of your popup, in the grid you can set width/height to auto and the other parameters to 0.
Put in every column a BUTTON component, set as class:
- ICON_CHART_PIE
- ICON_CHART_LINE
- ICON_CHART_RADAR
- ICON_CHART_BAR
- ICON_CHART_COLUMN
- ICON_CHART_BUBBLE
BUTTON >> Event scripting:
CHART.setChartType(ChartType.PIE); respectively for each button.
If you want the popup disappear after selection set also: POPUP.hide();
On the footer-graph-Icon we have scripted on event: POPUP.show();
On the footer-table-Icon we have scripted on event: POPUP.hide();
Be the first to leave a comment
You must be Logged on to comment or reply to a post.