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

mouseover throws error for piechart / donutchart #46

Closed
beuntje opened this issue Oct 3, 2017 · 1 comment
Closed

mouseover throws error for piechart / donutchart #46

beuntje opened this issue Oct 3, 2017 · 1 comment

Comments

@beuntje
Copy link

beuntje commented Oct 3, 2017

<google-chart [data]="pieChartData" (mouseOver)="mouseOver($event)"></google-chart>
...

this.pieChartData = {
    "chartType": "PieChart",
    "dataTable": [["Title", "Value"], ["A", 80], ["B", 10], ["C", 30]],
    "options": {
         "height": 300,
    }
}

mouseOver(e?)  {
        console.log("mouseover", e);
 }

throws following error:

EXCEPTION: Invalid column index null. Should be an integer in the range [0-1].

I guess it's because in private parseMouseEvent (src/google-chart/google-chart.component.ts) , code tries to get values like columnType and columnLabel that do not exist for piecharts...

@Suvikr23
Copy link

Suvikr23 commented Dec 4, 2018

@beuntje were you able to find any workarounds for this?

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

No branches or pull requests

2 participants