Hi, for some reason starting today (there was no problems in the last 3 months) my imports of the class CanvasJS won’t work in Angular project. Could you please help me to sort out why and how to fix it or a workaround?
I am importing it like that:
import {
CanvasJS,
CanvasJSAngularChartsModule,
} from '@canvasjs/angular-charts';
\
And then use it to create a container and rerender:
this.chart = new CanvasJS.Chart('chartContainer', {
theme: ChartConstants.THEME,
animationEnabled: true,
options: {
scales: {
y: {
stacked: true,
},
},
},
title: {
text: '',
},
axisY: {
title: '',
suffix: '',
},
toolTip: {
shared: 'true',
},
legend: {
cursor: ChartConstants.CURSOR,
},
data: currentOptions,
});
this.chart.render();
Thanks in advance.
-
This topic was modified 10 months, 2 weeks ago by kkoroleva.
-
This topic was modified 10 months, 2 weeks ago by kkoroleva.
-
This topic was modified 10 months, 2 weeks ago by kkoroleva.