TLDAN
TLDAN

Reputation: 53

highstock attaching panning feature to mousedown

im very new to highstocks im trying to see if I can bypass ie8 notworking with the liveRedraw feature by utilizing the panning feature which does work in ie8. I basically want to attach the panning function to the mousedown event. if someone could assist or point me in the right direction that would be great. http://jsfiddle.net/danpbrough/w1psjgu3/4/

            Highcharts.addEvent(chart.container, 'mousedown', drag);
        Highcharts.addEvent(chart.container, 'mouseup', drop);

ive added the event listeners above but am having trouble understanding the highcharts.js file to see where id add in the panning portion.

liveRedraw is turned to false to mimic ie8

Upvotes: 0

Views: 250

Answers (1)

Paweł Fus
Paweł Fus

Reputation: 45079

There is much simpler way to achieve that: http://jsfiddle.net/w1psjgu3/7/

In callback just set liveRedraw to true, and will work:

function (chart) {
    chart.scroller.scrollbarOptions.liveRedraw = true;
}

However, IE8 has very poor performance and that's probably the reason for disabled liveRedraw for that browser (in the fact IE6/7/8 are the same case).

Upvotes: 1

Related Questions