TargetProcess / tauCharts

D3 based data-focused charting library. Designed with passion. Flexible.
https://www.taucharts.com
Other
1.91k stars 118 forks source link

changing mode for box-whisker plugin dynamically #372

Open c-arnab opened 7 years ago

c-arnab commented 7 years ago

I have a dropdownlist as below

<select id="show_outliers">
    <option value="0">True</option>
    <option value="1">False</option>
</select>

Based on whether the user wishes to show outlier or not I wish to change the mode between 'outliers-only' & 'hide-scatter'.

Is there a function which enables me to do that similar to the function of changing data using chart.setData

Thanks

alexanderby commented 7 years ago

@c-arnab The simplest solution would be to toggle elements visibility using CSS or creating two chart instances and toggling between them. Currently we have no simple method for changing plugins settings dynamically.

c-arnab commented 7 years ago

Thanks, I created two instances with two diff modes and based on dropdown option am making them show and hide using jquery