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

Tooltip display incorrect X-axis label #14

Closed
vitorbaptista opened this issue Mar 3, 2014 · 2 comments
Closed

Tooltip display incorrect X-axis label #14

vitorbaptista opened this issue Mar 3, 2014 · 2 comments
Labels

Comments

@vitorbaptista
Copy link
Contributor

For some reason, it shows the same value in every bar

@vitorbaptista
Copy link
Contributor Author

I've opened an issue about it at krzysu/flot.tooltip#65, as it might be a bug in their code (not sure).

vitorbaptista added a commit that referenced this issue Mar 3, 2014
We need to define a default ordering to make sure all series will be in the
same order. For example, imagine that we have a CSV with number of teachers per
region, per year. So we setup a bar chart as:

Series: date
Y Axis: teachers
X Axis: region

If we have more than one date, the data will contain multiple arrays, one for
each. Each of these arrays will have a tuple with [teachers, region]. As we're
ordering these tuples by number of teachers (descending), each date will have a
different ordering. If we set up filters for region, we would fix the order and
we won't have any problems. But if we don't, things will get messy.

With this patch, I sort everything in the same order as the first series'
array.
@vitorbaptista
Copy link
Contributor Author

Fixed and merged in krzysu/flot.tooltip#66

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

No branches or pull requests

1 participant