Skip to content

onClick for pies slices doesn't return any trace info #1456

@andrey-zakharov

Description

@andrey-zakharov

Code sample:
http://codepen.io/anon/pen/ZeLdXK?editors=0011

If i click any pie other that the biggest one ( first ) no there is no any trace info in event data. neither in points[0], nor in event.trace. Actually, there is "event.points.trace = undefined".
console.log(e) gives only:
image

Activity

etpinard

etpinard commented on Mar 9, 2017

@etpinard
Contributor

Right. Sounds like an easy PR to make.

@andrey-zakharov want to give it a shot? Adding a ref to trace in evt here should be good enough.

blokhin

blokhin commented on Aug 28, 2017

@blokhin

Unfortunately, still an issue with the latest (v1.30.0)

etpinard

etpinard commented on Aug 28, 2017

@etpinard
Contributor

Unfortunately, still an issue with the latest (v1.30.0)

Works for me: https://codepen.io/etpinard/pen/prxrbg?editors=0010

blokhin

blokhin commented on Aug 28, 2017

@blokhin

Chrome 60.0.3112, FF 54.0.1: click at green or orange area in your pen yields undefined in console (blue area is OK).

etpinard

etpinard commented on Aug 28, 2017

@etpinard
Contributor

thanks @blokhin , reopened.

blokhin

blokhin commented on Oct 9, 2017

@blokhin

Any chance the bugfix will be included in the next release?

alexcjohnson

alexcjohnson commented on Oct 24, 2017

@alexcjohnson
Collaborator

Pie event data is currently very different from most other plotly event data. I'm going to clean this up as part of #2073.

self-assigned this
on Oct 24, 2017
alexcjohnson

alexcjohnson commented on Oct 26, 2017

@alexcjohnson
Collaborator

Note that pie event data changed a fair amount with #2117 - should all be for the better but if anyone was using all the various internal-use coordinates that were being reported previously you will have to find another way to retrieve them 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

communitycommunity contributionfeaturesomething new

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @blokhin@andrey-zakharov@alexcjohnson@etpinard

    Issue actions

      onClick for pies slices doesn't return any trace info · Issue #1456 · plotly/plotly.js