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

Highcharts gantt-chart: Not supporting toggle feature on Y axis with categories declaration on YAxis configuration #14400

Open
gaikwadsagar71 opened this issue Oct 21, 2020 · 5 comments
Labels
Product: Highcharts Type: Feature Request Used when a new feature is requested either directly or indirectly

Comments

@gaikwadsagar71
Copy link

gaikwadsagar71 commented Oct 21, 2020

Expected behaviour

I want to implement "drag and drop" feature vertically on gantt chart. I am not able to achieve it without defining categories on YAxis. But if I declare categories on YAxis then the parent feature stops working.

Actual behaviour

Only supports the horizontal "drag and drop" feature. vertical "drag and drop" feature is not working.

Live demo with steps to reproduce

Want to implement vertical drag and drop functionality along with toggle functionality.
https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/gantt/demo/subtasks

Product version

highcharts-gantt: v8.2.0
draggable-points: v8.2.0

Affected browser(s)

Chrome.

You can vote for this feature by adding a thumbs-up reaction to this post.

@highsoft-bot highsoft-bot added this to To do in Development-Flow Oct 21, 2020
@karolkolodziej karolkolodziej added the Type: Feature Request Used when a new feature is requested either directly or indirectly label Oct 22, 2020
@karolkolodziej
Copy link
Contributor

Thank you for sharing that idea.
As you might read in the documentation for now it is not supported, that is why marked this as a Feature Request.
Docs: Note that this is not supported for TreeGrid axes (the default axis type in Gantt charts)

@stale
Copy link

stale bot commented Apr 27, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

@stale stale bot added the Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur. label Apr 27, 2022
@pawellysy
Copy link
Member

unstale

@stale stale bot removed the Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur. label Apr 28, 2022
@TorsteinHonsi
Copy link
Collaborator

Minimal demo with tree grid axis: https://jsfiddle.net/highcharts/Lu91zavj/ . Just rename _categories to categories and the dragging will work.

@TorsteinHonsi
Copy link
Collaborator

The fix at first glance looks very simple. The draggable-points correctly sets the point.y value, but when treegrid axis is enabled, it insists on setting this value dynamically without checking if it existed previously.

Demo with the proposed fix: https://jsfiddle.net/highcharts/Lu91zavj/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product: Highcharts Type: Feature Request Used when a new feature is requested either directly or indirectly
Projects
Development

Successfully merging a pull request may close this issue.

5 participants