IliChartGraphic
The IliChartGraphic Hierarchy and Example Gadget
The class defines a chart graphic that works with a data source or several data sources (depending on the data model). With an IliChartGraphic it is also possible to display a pie chart.
Here is an example:
Let’s take a data source, named DATA_MS, with the following schema:
-
two columns
NAME and VALUE(double)
-
data
Beer 150.0
Soda 300.0
Water 600.0
Wine 350.0
To connect an IliChartGraphic to this data source, you must go through the following steps:
Drag and drop an IliChartGraphic
Inspect the IliChartGraphic
Go to Specific page
In the Data model field, select “By data sources”
Go to Data Source page
Select DATA_MS for data source
Select VALUE for X axis
Select VALUE for Value
Go to Data sets page
In the Data sets field, select the first data set
In the Displayers field, uncheck Displayer 1
In the data set type, select Data Access
In the series identifier field, enter DATA_MS
Go back to Data sets field and select the second data set
Uncheck Displayer 3
Check Displayer 1
Go to Displayers page
In the Displayers field, select Displayer 1
On the General tab, uncheck the Visible option
Select Displayer 2 in the Displayers field
Uncheck the Visible option
Select Displayer 3
In the Displayer type field, select “Pie”
Select the Specific tab and enter 360 in the Range field
Select the Slices tab and enter 5 in the Rho value
Add at least one slice by clicking the button
Go to Projection page
In the Type of projection, select Polar
Go to Scales page
In the Scales field select the first scale
Uncheck the Scale visible option on the General tab
Click Apply
If you want to change the slice color, you must add some slices to change the color and label.