score:2
the problem is that the array/objects are being passed by reference on first creating the chart. after that, high charts appears to be only updating the existing objects, overwriting the originals. try the following jsfiddle. i first create the chart using empty objects. then the buttons work as expected.
var emptydata = [{},{},{}];
$(document).ready(function() {
chart = new highcharts.chart({
chart: {
renderto: 'container',
backgroundcolor: null,
type: 'treemap'
},
series: [{
type: "treemap",
layoutalgorithm: 'squarified',
alternatestartingdirection: true
}],
title: {
text: 'fruit consumption'
}
});
chart.series[0].setdata(emptydata);
});
Source: stackoverflow.com
Related Query
- Highcharts SetData Only Works One Time
- How to show only one pair of linked Highcharts series at a time
- Highcharts datetime axis, how to disable time part (show only dates)?
- Show only time labels on xAxis. Highcharts
- highcharts - removing decimal places on Y axis with only one point
- Only one highcharts using react-grid-layout can resize
- Highchart: Only show one series at a time
- angular2-chartjs/chartjs-plugin-annotation update options only one time
- Highcharts tickinterval set to one minute shows only one date
- $.each only shows one series highcharts
- Highcharts: Series with plotlines. Show only one series at a time
- Multiple Highcharts in one page - only one chart displays
- Show only one border of one bar in highcharts
- Highcharts column only show one category
- HighCharts Polar Chart: only display one quadrant?
- Highcharts with data populated by php generated html table - only one will load
- Highcharts export only renders one quarter of the image
- Showing only one tooltip for all. Highstock highcharts
- HighCharts Line Chart draw y axis line for entire line points and only one line
- Creating plotbands in Highcharts that spans only one bar
- Highcharts pie chart slice animation only works when an error is thrown
- Highcharts backgroundColor for multiple charts is only applied to one chart
- Highcharts scatter plot with time only
- Highcharts Chart Bar - How can I display in the chart, only one column from my HTML table?
- How to display only one x-axis labels in Highcharts synchronized charts
- Drag multiple points at one time in highcharts
- Decimals on yAxis are not being displayed, even if that same code works on highcharts jsfiddle
- Make only one legend active in HighCharts at the start
- Highcharts - Only Returning One Date on xAxis
- Highcharts 'bindAxis' for one chart only
More Query from same tag
- non programmer--Read data from mySQL into bar chart
- Highcharts: Add dots to series and style between empty data points
- Highcharts rounding yaxis and xaxis digits
- How disable the 'k' dislay in Highcharts ordinate?
- Nested table yields unexpected columns for a basic column graph using high charts with 'Data defined in a HTML table'
- Highcharts not "graphing" in Firefox or Safari
- Highcharts heatmap column width based on content size
- Highchart error#15 on trying to plot seperated vertical lines
- Chart Width no render ok
- Highcharts Area Chart - Specifying Area Color
- plotting dynamic array data structure with highchart
- Highcharts - Pie slices show up invisible until interaction
- Change Highstocks.js Y axis value
- Initialize Highcharts treemap at specific drilldown level
- Highcharts - SMA Indicator does not display
- To get the JSON in required format from Web Service
- Opening a Column chart after clinking on DRILLEDOWN PIE Charts in dotnet highcharts
- how can we set different colors to highcharts-default-patterns?
- Highcharts - How can I show arrow between two dials of gauge chart?
- Is there a way how to dynamically create a plotline in highchart when the value is lower than previous one?
- How to make a highchart's Tree Map chart fill the entire page without overflowing
- Issue to add dynamic value in Highcharts jquery
- Redraw the pie chart in oval shape highcharts
- how to parse json into highcharts
- How to divide data from the series in highcharts
- angular2-highcharts Highcharts exporting module
- Need to dynamically add menuItem to HighCharts contextButton w/function defined by variable
- Highcharts crashes when I assign the options
- Highcharts with Angular
- Highcharts redraw previous line still exist