Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding chart-boxplot to project gives an error with chartjs-chart-geo #138

Open
stewmorg opened this issue Jun 19, 2024 · 2 comments
Open
Labels
question Further information is requested

Comments

@stewmorg
Copy link

I have an angular app that uses several chartjs plugins, including chart-geo.

When adding this plugin via

npm install --save chart.js @sgratzl/chartjs-chart-boxplot

My existing code that starts to produce errors that suggest the chart-geo plugin is not installed.

Errors:

TS2820: Type '"bubbleMap"' is not assignable to type 'keyof ChartTypeRegistry'. Did you mean '"bubble"'

Context

  • Version: 4.4.0 of boxplot, 4.3.1 or chart-geo and 4.4.3 of chart.js
  • Browser: chrome/mac

Can these two plugins co-exist in the same project?

Any help would be appreciated.

@stewmorg stewmorg added the question Further information is requested label Jun 19, 2024
@stewmorg
Copy link
Author

Relevant pieces of code

I define chartType in a 'parent' class as follows:

public chartType: ChartType;

then in a child class that extends from the parent I set it as:

this.chartType = 'bubbleMap'; /// doesn't work after installing the boxplot.
this.chartType = 'violin'; // works

@stewmorg stewmorg reopened this Jun 19, 2024
@stewmorg
Copy link
Author

closed in error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant