toggle method

void toggle([
  1. dynamic targetIds,
  2. dynamic options
])

This API toggles (shows or hides) specified targets. You can specify multiple targets by giving an array that includes id as String. If no argument is given, all of targets will be toggles. If withLegend is set true, legend will be toggled together with the specified data.

Implementation

external void toggle(
    [dynamic /*List<String>|String*/ targetIds,
    dynamic /*{ withLegend: boolean }*/ options]);