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

Pie chart event handlers not given an eventArgs object. #141

Open
brennana opened this issue Jan 2, 2015 · 0 comments
Open

Pie chart event handlers not given an eventArgs object. #141

brennana opened this issue Jan 2, 2015 · 0 comments

Comments

@brennana
Copy link

brennana commented Jan 2, 2015

Greetings,

I created a pie chart and attempted to override getTooltipText() on the series, but the event handler is not given an eventArgs object, so I cannot access properties such as seriesValue.

var ring = svpChart.addSeries("index", dimple.plot.pie);
ring.addOrderRule("index");
ring.innerRadius = "50%";

ring.getTooltipText = function(e) {
    // This is undefined.
    console.log(e.seriesValue);
    return [e.seriesValue];
};

I tried the workaround mentioned in #15, but I could not find the series value I assigned.

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

1 participant