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

csv data - series names are random when seriesMapping object property has value more than 10. #8662

wchmiel opened this issue Jul 23, 2018 · 1 comment


Copy link

@wchmiel wchmiel commented Jul 23, 2018

Expected behaviour

appropriate series names when data loaded from csv file and seriesMapping property value is more than 10.

Actual behaviour

series names are get from csv file randomly (first row of csv file).

Live demo with steps to reproduce

  1. set var in seriesMapping more than 10 and run example
  2. check particular series name - it should't be correct
  3. set var in seriesMapping less than 10 and run example
  4. check particular series name - it should be correct

Product version


Affected browser(s)


@pawelfus pawelfus added the Type: Bug label Jul 24, 2018
Copy link

@pawelfus pawelfus commented Jul 24, 2018

Internal note:
Issue comes from these lines:

if (columnIndexes.length >= 2) {
// remove the first one (x col)
// Sort the remaining
// Now use the lowest index as name column = columns[columnIndexes.shift()].name;

Where [5, 10].sort() results as [10, 5] (string sorting conversion).

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

Successfully merging a pull request may close this issue.

None yet
2 participants