I have a simple Chart Region: with
Static ID: Chart_Region
Attribute Type: Pie
Chart Serie: Salary Chart
Sql Query: Select Department_id, Sum(Salary) Sum_Sal From Employees Group by Department_Id;
Column Mapping: Label: Department_ID , Value: Sum_Sal and Static ID: Chart_ID
Simply I want to enable the end user to change the Chart Type: Pie to Type: Bar at the runtime (using toggle buttons that I have added).
Any Idea please !.
Thank you in advance.
I found it with Javascript like so:
and
available values for type are: