Closed serve1337 closed 7 years ago
Thanks for reporting this problem; Problem is that, at the beginning, lines were not allowed over stacked bar charts and, when there are no lines, a second axis has no sence. In the code that you provide, of course, it makes a sence. A fix will be delivered in next version (soon available).
Download the last published version. With this version, you can define double-axis for stacked bar chart. see https://github.com/FVANCOP/ChartNew.js/wiki/100_035_DoubleAxis.
Thank you very much, it's working perfect.
I have created a chart with "stacked bars", "lines" and two y-axis.
My goal: the "stacked bars" should be relative to the left axis and the "lines" should be relative to the right axis. My problem: if i setting it up (code on the bottom) i get an error "calculatedScale is undefined". If I set both chart types (stacked bars and lines) relative to the left axis it is working like shown in the image above.
Is it possible to get an fix or snippet how to get it work like i expected?
My dataset:
My options:
My javascript call in the html:
var myLine = new Chart(document.getElementById("myChart").getContext("2d")).StackedBar(mydata1, newopts);
Best, serve