Open Closed

ABP Widgets - AmCharts #789


User avatar
0
ihugo created
  • ABP Framework version: v4.0.2
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Seperated (Angular): yes

I have been looking through the Dahsboard sample solution and would like to change out the ChartJs version for AmCharts as we have the required chart license. I have created a widgets according to the docs and I have included reference to the AMCharts CDN in the cshtml file.

Tracing through the code, I can see the div is being found in the JS. I can debug through the code and see the data is being returned correctly (console.log), but the chart is just not rendering in the UI. I created the chart offline in an HTML file and it works, I also added the chart code into a seperate razor page and it works there too, it is just not working when embedded in the widget.

Any help would be appreciated. I have a feeling it is related to the fact that the amcharts JS files are not local?


1 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi @ihuge,

    I have included reference to the AMCharts CDN in the cshtml file

    In which .cshtml file you have included these references?

    Suggested way of adding JS files for widgets is explained in related documentation

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09