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

ResultSet.chartPivot keys issue #19

Closed
keydunov opened this issue Feb 19, 2019 · 0 comments
Closed

ResultSet.chartPivot keys issue #19

keydunov opened this issue Feb 19, 2019 · 0 comments
Assignees

Comments

@keydunov
Copy link
Member

keydunov commented Feb 19, 2019

It looks like ResultSet.chartPivot uses weird combination of keys and titles as keys Object returning by chartPivot.

// What is returned by resultSet.seriesNames()
[
  {title: "Reports, Events Any Event - Total", key: "Reports:Events.anyEvent"},
  {title: "Dashboard, Events Any Event - Total", key: "Dashboard:Events.anyEvent"},
  {title: "∅, Events Any Event - Total", key: "∅:Events.anyEvent"}
]

// What is returned by resultSet.chartPivot()
[
{category: "2019-02-05T00:00:00.000", x: "2019-02-05T00:00:00.000",, Events.anyEvent: 0, Reports, Events.anyEvent: 0, Dashboard, Events.anyEvent: 0,},
{category: "2019-02-06T00:00:00.000", x: "2019-02-06T00:00:00.000",, Events.anyEvent: 0, Reports, Events.anyEvent: 0, Dashboard, Events.anyEvent: 0,},
{category: "2019-02-07T00:00:00.000", x: "2019-02-07T00:00:00.000",, Events.anyEvent: 0, Reports, Events.anyEvent: 0, Dashboard, Events.anyEvent: 0,},
{category: "2019-02-08T00:00:00.000", x: "2019-02-08T00:00:00.000",, Events.anyEvent: 0, Reports, Events.anyEvent: 0, Dashboard, Events.anyEvent: 0,}
...
]

The key in the chartPivot returning object is Reports, Events.anyEvent which is neither key nor title from seriesNames. I'd suggest using keys.

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

No branches or pull requests

2 participants