javascript - Highcharts - how to create multiple y axis and group the data series -
i want create line charts 4 series , x axis date. 2 of series can use 1 y axis (e.g., temperature 0~150) , other 2 use different y axis (e.g., co2 level 0 ~ 900). saw example here multiple y axis. https://www.highcharts.com/demo/combo-multi-axes
but there way create 1 y axis , use more 1 data series? thank much!
just found way - posted question fast :)
one can assign y axis data series in data series definition, using property yaxis.
this example highcharts.com
{ name: 'sea-level pressure', type: 'spline', yaxis: 2, data: [1016, 1016, 1015.9, 1015.5, 1012.3, 1009.5, 1009.6, 1010.2, 1013.1, 1016.9, 1018.2, 1016.7], marker: { enabled: false }, dashstyle: 'shortdot', tooltip: { valuesuffix: ' mb' } }
Comments
Post a Comment