jquery - Getting average or number of columns Highstock -
i'm working highstock column chart.
$('#container').highcharts('stockchart', { chart: { alignticks: false }, rangeselector: { selected: 1 }, title: { text: 'aapl stock volume' }, series: [{ type: 'column', name: 'aapl stock volume', data: data, datagrouping: { units: [[ 'week', // unit name [1] // allowed multiples ], [ 'month', [1, 2, 3, 4, 6] ]] } }] }); when change range bigger on navigator joins bars , values. there way getting average of these 2 values, not sum?
or, there possibility amount of columns, visible?
this handled in datagrouping options. @ link tells default calculation approximation:
defaults average line-type series, sum columns, range range series , ohlc ohlc , candlestick.
you can change 'average' column data.
Comments
Post a Comment