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.

0000Capture.PNG

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:

  1. ICON_CHART_PIE
  2. ICON_CHART_LINE
  3. ICON_CHART_RADAR
  4. ICON_CHART_BAR
  5. ICON_CHART_COLUMN
  6. ICON_CHART_BUBBLE

0000Capture.PNG

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();

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply