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
- Highcharts PIE chart series color doesn't change
- Cannot set bar chart width for specific data, Highcharts
- updating URL with AJAX function
- Highcharts: create a stacked columnrange chart
- developing interactive app using shiny and highcharter
- Highchart: exact distance between ticks
- Highcharts, how to localize language when exporting
- can zoom be mixed with multiple y-axis in highstock
- How to get time and value from MySQL into Highcharts
- Highcharts, pass Data from json on Column Click
- Label truncation while using Grouped category plugin in highcharts
- Dot Net Highcharts Series Color
- Convert CSV webservice into multiple year Highcharts line graph
- Group records in Rails for a chart?
- How to make the regression line through the origin in highcharts
- In highcharts's stacked bar chart, how can I remove the white space between different
- gow to get Highcharts solid Gauge data from a JS variable?
- Drill down in Line Chart Highcharts
- Highcharts Bubbles - how do I change bubble background and line color?
- Highcharts missing information in scatterplot CSV/XLS export
- highcharts heatmap Uncaught TypeError: Cannot read property 'prototype' of undefined
- How do I add json data to custom flags in Highstock?
- Transform array of objects into a transposed array of objects
- Native Android SDK graph
- Auto setting time axis range in highcharts
- Highcharts converting a column chart to a pie chart
- How to set color for non plotting Area in HighChart
- Issue with Highcharts not rendering in Durandal/Hot Towel Template
- highcharts - donut chart - Labels inside and outside
- addpoint is not adding point in highcharts ,where data is updated dynamically with ajax