-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
chart-geo with angular #23
Comments
re angular: this is just a plugin that extends chart.js so you can use tools like ng2-chartjs which embed chart.js in Angular. Based on that I created the Choropleth map from the example in Angular in https://codesandbox.io/s/angular-chartjs-geo-npzhk?file=/src/app/app.component.ts |
@sgratzl thanks a lot! I will use your example! |
Hi @sgratzl sorry for reopen this issue! So I try to use your example and I solution my problem with this new simple example. If someone would like know how create map country with angular just use it. https://codesandbox.io/s/angular-brazil-map-0wd02?file=/src/app/app.component.ts |
Hi @sgratzl Is there a specific place where I should register choropleth as new chart type or I'm doing something wrong? my chartjs version is 2.9.3 and chartjs-chart-geo version is 2.1.0 |
Well, I simply forgot to add following import Sorry for bothering you :) |
hello @sgratzl ROR Error: "choropleth" is not a registered controller. my chartjs version : 4.3.0 and chartjs-chart-geo version : 4.2.0 here it's my html
here it's my components import { feature } from "topojson-client"; import "chartjs-chart-geo"; export class MapComponent implements OnInit { geoChartType = "choropleth"; geoChartData :any; } ngOnInit() {
} |
This example doesn't seem to work anymore. https://codesandbox.io/s/angular-chartjs-geo-npzhk?file=/src/app/app.component.ts |
Hi!
Is possible to use chart-geo with angular and I really to triying create this example with Brazil map, is possible to share with me?
thanks a lot
The text was updated successfully, but these errors were encountered: