-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chrome crash: area zoom with vertical dashline #3201
Comments
I recreated the chart as a fiddle here: http://jsfiddle.net/2eBE2/ (Just out of curiosity: why not use a plotLine for this setup ?) |
Creash should be fixed, but line series requires sorted data, right? Like in docs. I would try to use scatter series with |
Created a Chrome bug for this: https://code.google.com/p/chromium/issues/detail?id=389507 |
Hi Artur ,
|
I tested the abovementioned fiddles in Firefox 33 in Windows 7 and I can still crash the browser when I zoom really, really fast. Other browsers (IE11 in Windows 7, Chrome 39 and Firefox 24 on OSX) seem to reset the zoom after some point. |
Hi , |
Hi , |
Hi @vijayasekaran, we will look into this immediately. |
For the records, I created a reliable reproduction that always crashes after 18 iterations in my copy of Chrome. JSFiddle is down at the moment, but here's the code that can be pasted in: HTML<script src="http://code.highcharts.com/4.0.4/highcharts.js"></script>
<div id="container" style="width: 400px; height: 400px; "></div>
<button id="start">Start</button> JavaScript$(function () {
$('#container').highcharts({
"chart": {
"animation": false,
"zoomType": "xy"
},
title: null,
xAxis: {
gridLineWidth: 0,
tickLength: 0,
title: null,
lineWidth: 0,
labels: {
enabled: false
}
},
credits: {
enabled: false
},
yAxis: {
min: 0,
max: 20,
gridLineWidth: 0,
tickLength: 0,
title: null,
lineWidth: 0,
labels: {
enabled: false
}
},
legend: {
enabled: false
},
"series": [{
"data": [
[0, 0],
[0, 20]
],
"dashStyle": "shortdot"
}]
});
var i = 0;
$('#start').click(function () {
var chart = $('#container').highcharts(),
dur = 100, // duration of the selection zoom operation
time = 200, // repetition time between each zooming
interval,
offset = $('#container').offset();
interval = setInterval(function () {
console.log('Zoom #' + i++);
chart.pointer.onContainerMouseDown({
type: 'mousedown',
pageX: offset.left + 150,
pageY: offset.top + 75
});
chart.pointer.onContainerMouseMove({
type: 'mousemove',
pageX: offset.left + 300,
pageY: offset.top + 220
});
chart.pointer.onDocumentMouseUp({});
}, time);
});
}); |
Hi, I've been testing the mentioned commit eb5906d and the example in previous post and if I add an horizontal line it can still be reproduced. This is the working example using the patch or latest release which includes the patch 4.1.1
This is the modified example that fails in both versions:
I'm testing in chrome 40 for windows |
Hey,
Mac Chrome crashes with "Aw, snap" message when running the following chart and zooming in "quickly".
$(function () {
$('#container').highcharts(
{ "chart": { "type": "scatter", "zoomType": "xy", "borderWidth": 0 }, "title": { "text": "" }, "xAxis": { "title": { "text": "Distance" }, "lineColor": "#CCCCCC", "axisIndex": 0 }, "yAxis": { "min": 0, "max": 20, "title": { "text": "X-Axis" }, "axisIndex": 0 }, "legend": { "layout": "vertical", "align": "right", "verticalAlign": "top", "x": -10.0, "y": 100.0, "borderWidth": 0 }, "credits": { "enabled": false }, "series": [ { "data": [ [ 0, 0 ], [ 0, 20 ] ], "name": "VerticalLine", "visible": true, "marker": { "enabled": false }, "dashStyle": "ShortDot", "showInLegend": true, "enableMouseTracking": false, "color": "#660066", "type": "line" } ], "exporting": { "enabled": false }
}); });
See running example here: http://jsfiddle.net/9YM6H/
I'm running Mac Chrome Version 35.0.1916.153.
The text was updated successfully, but these errors were encountered: