The following table lists common methods to use with i5charts:
Methods | Input Parameter | Output | Description |
---|---|---|---|
getSelectedPoint | - | Integer | Returns the index of the selected point |
getSelectedDataSetNames | - | String | Names of the selected line/legend |
getSelectedDataSetIndices | - | Integer | Indices of the selected data sets where the index starts from 1 |
SelectedDataSet | Int Index | Void | Selects the dataset based on the index passed |
getXDataValueAt | Int Dataset, int pointIndex | Double | Returns the X-axis value of a given point |
getYDataValueAt | Int datasetIndex | String | Name of the line/legend corresponding to the index |
getDataSetCount | - | Int | Returns the # of datasets (lines/legends) plotted on the chart |
getNumberOfDataPoints | Int DataSetIndex | Int | Returns the number of points plotted for the dataset |
deSelectDataSet | Int DataSetIndex | - | Deselects the legend of the data set whose index is given. The method ignores any action if called more than once. |