Highcharts Demo
author(s): Torstein Hønsi
by jrdiaz
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/draggable-points.js"></script>
<div id="container" style="min-width: 300px;height: 500px;"></div>
JavaScript
Highcharts.chart('container', {
chart: {
animation: false
},
title: {
text: 'Highcharts draggable points demo'
},
xAxis: {
categories: ['Total']
},
yAxis: {
softMin: 0,
softMax: 100
},
plotOptions: {
series: {
stickyTracking: false,
dragDrop: {
draggableY: true
}
},
column: {
stacking: 'normal',
minPointLength: 2
},
line: {
cursor: 'ns-resize'
}
},
tooltip: {
valueDecimals: 2
},
series: [{
data: [20],
type: 'column'
}, {
data: [30],
type: 'column'
}, {
data: [10],
type: 'column'
}, {
data: [40],
type: 'column'
}]
});