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

Is it possible to drag a Pie series on a combo chart? #86

Open
envynoiz opened this issue Sep 14, 2018 · 3 comments
Open

Is it possible to drag a Pie series on a combo chart? #86

envynoiz opened this issue Sep 14, 2018 · 3 comments

Comments

@envynoiz
Copy link

I just installed the plugin on my environment and I added the "draggableX" and "draggableY" to a pie chart located on a combo chart with columns and splines; however, after everything is rendered, I'm unable to drag it and the following error is thrown:

ERROR TypeError: Cannot read property 'toValue' of undefined

I detected on the line 89 that it is necessary the toValue method from the "xAxis" and "yAxis" attributes located in the series object but a Pie chart does not have those members (I supposed this is expected because if you render it in a normal scenario you do not need this information on the series).

So I was wondering if it is possible to add this functionality to a Pie chart when it is located on a combo chart.

Thank you!

@KacperMadej
Copy link

Hi @envynoiz

Thank you for submitting the enhancement suggestion. Currently an axis is required.

As a workaround you could use jQuery's draggable - demo: http://jsfiddle.net/oc1mn8ru/

@envynoiz
Copy link
Author

I appreciate your workaround @KacperMadej but unfortunately I cannot use jQuery in my current project.

For the time being I’ll try to found another way and I’ll aware for any update regarding this enhancement.

Thank you!

@TorsteinHonsi
Copy link
Contributor

Strictly speaking, this feature is outside the scope of the draggable-points plugin. The plugin deals with editing data through dragging points around. Dragging a whole pie series is more about modifying the layout of the chart or dashboard.

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

No branches or pull requests

3 participants