amanjain325 / angular-d3-charts

Integrate your Angular 2, Angular 4 app with d3 charts e.g. Doughnut, Pie, Single Bar chart, Multiple bar chart and Stacked bar chart
11 stars 11 forks source link

Charts getting merged #1

Open anupkrbid opened 6 years ago

anupkrbid commented 6 years ago

chart This is the code. Expected result is there should be a "Text In Between" between two donut charts but I'm getting outcome So the charts age getting merged. When I inspect it I see that It is getting merged in the first component inspect

ramesh-joshi commented 6 years ago

I am also getting the same issue, actually, this chart ID is coming as undefined in the chart component. Tried multiple times but always chart ID is coming as undefined.

ramesh-joshi commented 6 years ago

set [id]="'donutChartId1'" like this and add this id to the template so you will get the 2 charts in different div.

bleakcon commented 6 years ago

I am also getting this issue, any idea on a quick fix ?