irisSelected
variable. Any selected point on a chart is stored in the irisSelected
variable. This makes it accessible to other parts of the page.
irisSelected
variable provides a mechanism for
linking charts with shared information independently, obviating the need for
hard-coded chart linking through, e.g., mouseover or mouseout events.
An iris scatter plot:
class: [[irisSelected.class]]
sepal width: [[irisSelected.sepal_width]]
sepal length: [[irisSelected.sepal_length]]
peal width: [[irisSelected.petal_width]]
peal length: [[irisSelected.petal_length]]