score:2
Accepted answer
It has no effect. You can try changing function like this - http://jsfiddle.net/a9wv3kd0/2/
var test = function(){
console.log(1)
};
$(function () {
$('#container').highcharts('StockChart', {
xAxis: {
events: {
afterSetExtremes: function () {
test();
}
}
},
scrollbar: {
enabled: true
},
navigator: {
enabled: true
},
rangeSelector: {
selected: 1
},
series: [{
name: 'MSFT',
data: MSFT
}]
});
$('#button').click(function () {
var chart = $('#container').highcharts();
chart.addSeries({
name: 'ADBE',
data: ADBE
});
test = function () {console.log(2)};
$(this).attr('disabled', true);
});
});
Source: stackoverflow.com
Related Query
- Highstock : update xAxis events
- Strange character in the Highstock source code
- Adding vertical line on xAxis in HighStock
- Difference between highcharts and highstock during real time trace and xAxis with max value
- highstock -- navigator time range does not update after adding/removing series
- Highcharts update xAxis category when calling series.setData
- How to update highstock with navigator disabled?
- Highstock xAxis scaling
- Highstock Highcharts date time data on Xaxis
- change highstock flag to lines on xAxis
- Highstock set XAxis extreme without data
- Highstock Update Data getJson
- Update data of existing Highstock graph using only JavaScript
- Highstock - why is min/maxPadding on xAxis ignored
- Update highstock chart dynamically
- how to update highstock indicators on dynamically updated chart
- HTML table as data source for highstock charts using highcharts
- Overlaping date labels on xaxis in Highstock
- Highstock flag hover state: update font color
- Highstock xAxis datetime
- Highstock line chart xAxis datetime being sampled down
- Highstock xAxis Label rotation
- Highstock chart - issue with xaxis label
- Unable to set xAxis min for Highstock (Highcharts)
- Highstock xAxis label formatting
- upgrade to highstock 1.3.1 breaks resize code
- if I add an update in drill up events it causes the labels to disappear on the highchart
- Update xAxis individual label position for printing Highcharts
- set Highstock xAxis range within options object
- Highstock data not showing when setting xAxis min and max
More Query from same tag
- How to remove decimal values on x-axis of bar chart : Highcharts
- HighCharts Rendering Issue
- Highcharts how to only plot if x axis is having value greater than 0?
- The chartoptions in highcharts are not getting updated from function call in ngoninit
- Highcharts load data from server ok, but not updating
- HighCharts is it possible to pass an object to pointer config of Gauge chart?
- highcharts round generated y labels in 1024 multiply not 1000
- Highcharts changing data granularity in combined charts
- How do I configure the options in Highcharts to allow multiple drilldowns asynchronously?
- when is a highchart completely loaded?
- Make Highchart and Highstock Have a Uniform Time X-Axis for Disparate Data Points
- How to remove cirlce,line,square symbol from highchart
- Subtitle and title at bottom of highcharts
- Highstocks component react error
- Trying to get highchart example working on local machine
- Highchart jquery charts not working SetAttribute is not a function
- Highcharts - Piecharts - title generated with useHTML overlaps with tooltip generated using useHTML
- how to display drilldown column highchart using json array objects - 3 level drilldown column highchart
- How do I extract array values from hashes?
- axis labels overlap each other in polar chart
- Highcharts Pie chart return slice animation on mouseout
- Highchart DateTime Axis: How to display non existent data as 0 or gap
- Highcharts sunburst dodrilldown
- Highcharts value relative to itself instead of all lines
- Backfilling Highcharts chart with data from Ajax call
- Scroll bar in Highcharts tooltip
- Draw variable number of series with highcharts-vue and axios
- Highcharts: Hide/remove values (in a range) from y axis
- Using local file instead of $.getJSON
- Changing a Highcharts theme (partially working)