Repository navigation
Add Negative Axes to Line, Bar, and Area Charts/Fix Pie Issues with 0 values - #2680
Merged
Merged
Conversation
… into fix/elastic#1962 Conflicts: src/kibana/components/vislib/visualizations/column_chart.js
Contributor
Contributor
Contributor
Contributor
|
This also seems to kill event handlers on area charts |
Contributor
Author
|
@rashidkpc I'll look into the event handling for area charts as well as that issue with line charts. As far as the y-axis defaulting to zero when all values are positive or negative. We plan on adding an option that allows users to choose to start the y-axis at zero or the min of the data set. We have also added an option for someone to set the min and max for the y-axis, although we need to get the UI in for it. |
Contributor
Author
|
@rashidkpc the last commit fixed the issue with line charts, but I can't seem to recreate the event handler issues with area charts. |
Conflicts: src/kibana/components/vislib/lib/data.js src/kibana/components/vislib/lib/handler/types/column.js src/kibana/components/vislib/lib/handler/types/line.js
Merged master and bucketOnExpression
Conflicts: src/kibana/components/vislib/lib/data.js
Working negative y-axes values
spalger
pushed a commit
that referenced
this pull request
Feb 5, 2015
Add Negative Axes to Line, Bar, and Area Charts/Fix Pie Issues with 0 values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1962.
Closes #2863.
This pull request adds the ability for negative data values in Kibana. Line, area, and bar charts can now display values in two directions, a negative and positive direction.
Fixes issues with pie chart when pies are returned with 0 values. If all values are zero, an error messaged is displayed which informs the user that no pie can be rendered due to the 0 values. Additionally, fixes the issue where no pie chart is rendered when any outer node is zero.
D3 builds pies from the outside in, and when the outer node is 0, it does not traverse the parent, it simply does not draw the relevant slices. So, values with zero needed to be filtered out so that pie slices could be rendered.