@themich,
In Angular 17, by default components are generated as standalone application. You can import CanvasJSAngularChartsModule
module into your standalone component as shown in the code snippet below.
import { CanvasJSAngularChartsModule } from '@canvasjs/angular-charts';
@Component({
selector: 'app-root',
standalone: true,
imports: [CanvasJSAngularChartsModule],
template: `
<div>
<canvasjs-chart [options]="chartOptions"></canvasjs-chart>
</div>
`,
})
Also, check out this StackBlitz sample for integrating CanvasJS Charts in Angular 17.
If you are still facing the issue, kindly create sample project reproducing the issue and share it with us over Google-Drive or Onedrive along with sample data so that we can look into your code, run it locally at our end to understand the scenario better and help you out.
—-
Manoj Mohan
Team CanvasJS