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

Gantt doesn't work while using array of arrays as a data #17738

Closed
kamil-musialowski opened this issue Sep 19, 2022 · 10 comments · Fixed by #21610
Closed

Gantt doesn't work while using array of arrays as a data #17738

kamil-musialowski opened this issue Sep 19, 2022 · 10 comments · Fixed by #21610

Comments

@kamil-musialowski
Copy link
Contributor

kamil-musialowski commented Sep 19, 2022

Actual behaviour

While using an array of arrays (instead of an array of objects), the Gantt allows only one point. If we try to add more, the chart doesn't load up and it throws indexOf is not a function error.

Live demo with steps to reproduce

https://jsfiddle.net/BlackLabel/5t97fr0c/

Uncomment the 6th line to see the error.

Product version

Highcharts Gantt v10.2.1 (latest)

@karolkolodziej
Copy link
Contributor

Internal note:
See the PR that added keys support for Gantt: #14026

@ajaykumar300796
Copy link

fix for #14026 is working only for single array and the problem/error is with when using multiple arrays.

@bhandurejitu
Copy link

any update on this?

@karolkolodziej
Copy link
Contributor

Yes, the PR that is linked only works for a single array. What I meant is that the fix should be concentrated on changing that.

Besides that, there has been no change.

@bhandurejitu
Copy link

@karolkolodziej
which one series of data work fast for any chart the array of objects or unstructured data?

@bhandurejitu
Copy link

if I pass unstructured data then it will take time to process or it will work normally like the array of object data?

@karolkolodziej
Copy link
Contributor

@bhandurejitu If you declare data as an array of arrays it is going to be faster than objects but still with reasonable amount of data (~5k points) the difference should not be that noticible.

@bhandurejitu
Copy link

bhandurejitu commented Jan 31, 2023

@bhandurejitu If you declare data as an array of arrays it is going to be faster than objects but still with reasonable amount of data (~5k points) the difference should not be that noticible.

@karolkolodziej for large series data(any chart) which one is best among the array of objects or unstructured data

@millieqiu
Copy link

millieqiu commented Jul 18, 2024

Hi, I still face the same problem on version Highcharts 11.4.6

Is there any update on this or have any alternative method? (to load over 1K data in Highcharts Gantt)

Thanks!

@hubertkozik
Copy link
Member

hubertkozik commented Jul 19, 2024

Hi @millieqiu! Thank you for pointing out this issue. I've added it to our backlog, you will get notifications here when the work will start.

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

Successfully merging a pull request may close this issue.

7 participants