insertChart
Contents
[
Hide
]insertChart(int type, float x, float y, float width, float height, int index) function
Creates a new Chart, initialize it with sample series data and settings and inserts it to the specified position in the collection.
Parameters
Name | Type | Description |
---|---|---|
type | int | Type of chart. |
x | float | X coordinate of a new chart. |
y | float | Y coordinate of a new chart. |
width | float | Chart’s width. |
height | float | Chart’s height. |
index | int | Chart’s position in the collection. |
Result
insertChart(int type, float x, float y, float width, float height, int index, boolean initWithSample) function
Creates a new Chart and inserts it to the specified position in the collection.
Parameters
Name | Type | Description |
---|---|---|
type | int | Type of chart. |
x | float | X coordinate of a new chart. |
y | float | Y coordinate of a new chart. |
width | float | Chart’s width. |
height | float | Chart’s height. |
index | int | Chart’s position in the collection. |
initWithSample | boolean | If true then new chart will be initialized with sample series data and settings. If false then new chart will have no series and minimum settings. In this case chart creation will be more fast. |