Tooltip under transform scale
by kzoon
HTML
<script src="https://github.highcharts.com/master/highcharts.js"></script>
<div style="transform: scale(1.5);">
<div id="container"></div>
</div>
JavaScript
(function(H) {
H.wrap(H.Pointer.prototype, 'normalize', function(proceed, e) {
var e = proceed.call(this, e);
e.chartX /= this.chart.options.chart.scale;
e.chartY /= this.chart.options.chart.scale;
return e;
});
}(Highcharts));
Highcharts.chart('container', {
chart: {
scale: 1.5
},
series: [{
data: [1, 4, 3, 5, 6, 7, 4, 3, 5, 2, 3, 4, 6, 5, 4],
type: 'line',
},
{
data: [1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2],
type: 'column'
}
]
});