score:2
Running your JSFiddle and changing to "Option B" and back to "Option A" does nothing simply because there is no change to the data. Both options (in the case of "Option C" and "Option E") set the data to the exact same values as the values that are present when the chart is created.
If you instead run the JSFiddle, set "Option D" and "Option F" before you start switching between "Option A" and "Option B" you will see that the code is clearly working as intended.
This can be confirmed by changing any one number in this if-branch:
if (selVal == "a" && selValB == "a" && selValBB == "a") { ...
And/or this else if-branch:
else if (selVal == "b" && selValB == "a" && selValBB == "a") { ...
As shown in this JSFiddle example, which has only changed two numbers in the described cases.
That being said, this clearly illustrates that this code needs to be tidied up.
Source: stackoverflow.com
Related Query
- Highcharts - setData() not updating Column Graph Correctly - stumped
- Highcharts - update column graph with setData() not working
- Stack labels not rendered correctly when exporting Highcharts graph
- highcharts - Not able to switch between bar to column or vice versa graph type in drilldown
- Highcharts column graph custom legend formatting not showing legend symbols
- How to modify the code so that Highcharts graph does not cover fixed navigation bar at the top of the page?
- The graph is not equal on the basis of the addition code in Highcharts
- Responsive Highcharts not sizing correctly until window resize
- Disable-Click on Legend in HighCharts Column Graph
- Highstocks graph width not correctly rendered
- Can I with highcharts column stacking on hover not highlighting the whole serie
- Highcharts Server not loading infile correctly
- Legend and Axis titles not showing in Highcharts Graph
- Legend and Axis titles not showing in Highcharts Graph
- Highcharts - Multiple Axis Graph not displaying labels
- Highcharts not displaying series data for graph with multiple Y-axes
- HighCharts chart export (screenshot download) does not display Navigator graph
- Hidden Highcharts not sizing correctly until window resize
- Overlapping and rounded stack in stacked column graph in Highcharts
- Make stack label disabled for a column in stacked column graph in Highcharts
- HighCharts scatter plot with Datetime on X Axis not plotting values correctly
- wkhtmltoimage does not show gridlines of highcharts graph
- Highcharts - Gauge chart data label not positioning correctly
- Highcharts Graph displays correctly ONLY on Window Resize
- Highcharts stacked column stackLabels do not show when axis is reversed
- Highcharts reflow is not updating Highcharts container width
- HighCharts pointPlacement option not working in a single column chart
- Highcharts with boost not rendering correctly at small intervals
- Highcharts area graph animation on setData
- HighCharts - barchart not rendering correctly in IE8
More Query from same tag
- highcharts gauge use with negative values
- multiple series in Highcharter R stacked barchart
- Including a chart and selection box as "widgets" in other webpages?
- Using HIghcharts on Codeigniter to get data name and total
- HighCharts: Drilldown to a Stacked Column
- Chart not exporting to XLS File - Highcharts
- how to get dynamic color change based on values in highcharts
- Minimum tick interval (monthly) not working for datetime Highchart graph
- How to get Visible/ In-Visible legend elements in Highcharts
- Highcharts - x-axis label disappears for polar chart with any endAngle
- Highcharts X-axis categories
- Highcharts missing array
- How to force Highcharts to show last label on xAxis?
- High charts plot time against a dynamic currency pair
- Highcharts: Line graph with half solid line and half dotted line?
- Isolate a single series on Highcharts line chart
- how to pass to or more list of series to set series
- Highchart is not working with javascript
- Json data in High chart
- Weekly PDF generation using PHP and Highcharts
- Highcharts setExtremes blanking the graph
- React Highstock Won't Work But Highchart works
- How to remove category label margins of highchart?
- How to save a highchart to PNG image in R?
- Highcharts, datetime, xAxis label. How to show all dates on x axis, not only even dates?
- Chartkick w/ Highcharts column_chart, specify visibility by series
- Drilldown multiple levels and multiple type Highchart
- Highcharts multiple series remove reserved space
- how do you set the yaxis values in highcharts
- Highchart tooltip hover not working properly