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

histogram: option to enable/disable zero-fill #612

Closed
wants to merge 1 commit into from
Closed

histogram: option to enable/disable zero-fill #612

wants to merge 1 commit into from

Conversation

jdve
Copy link

@jdve jdve commented Oct 25, 2013

For some graph types (particularly point style), it's useful to
explicitly avoid filling missing data points with zeros. For example,
when plotting the min/max/mean value of a particular field, filling with
zeros might present the wrong picture of the data, since the value is
not actually zero but simply missing.

@jdve
Copy link
Author

jdve commented Oct 25, 2013

Using this feature allowing creating what are effectively timeline charts like this:

kibana3-timelines

@rashidkpc
Copy link
Contributor

hey, thats super cool!

@rashidkpc
Copy link
Contributor

Hmm, like the idea here, except the option doesn't actually disable filling, but rather replaces it with null fills. It might be smarter to change this to a small "Gap Fill" drop down with 3 options:

  • zeros
  • nulls
  • no fill

@jdve
Copy link
Author

jdve commented Nov 1, 2013

Good idea! I'll try to make this change next week.

@jdve
Copy link
Author

jdve commented Nov 5, 2013

@rashidkpc I went ahead and added another reduce strategy for filling:

  • minimal (the default)
  • zeros (which is the same as minimal except it fills in more zeros)
  • nulls
  • no fill (which literally doesn't fill anything) <-- this one is new

How does this look?

For some graph types (particularly point style), it's useful to
explicitly avoid filling missing data points with zeros.  For example,
when plotting the min/max/mean value of a particular field, filling with
zeros might present the wrong picture of the data, since the value is
not actually zero but simply missing.
@jdve
Copy link
Author

jdve commented Jan 6, 2014

Rebased to better match latest style. @rashidkpc, how does this look?

@@ -17,6 +17,10 @@
<label class="small">xAxis</label><input type="checkbox" ng-model="panel['x-axis']" ng-checked="panel['x-axis']"></div>
<div class="editor-option">
<label class="small">yAxis</label><input type="checkbox" ng-model="panel['y-axis']" ng-checked="panel['y-axis']"></div>
<div class="editor-option" ng-hide="panel.derivative">
<label class="small">Gap Fill</label>
<select class="input-mini" ng-model="panel.gapfill" ng-options="f for f in ['all','null','no']">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is missing a closing select tag. Used like this it overwrites the Line Fill Option.

Otherwise a very useful change, that I'd love to see merged.

@rashidkpc rashidkpc closed this in bea4b5e Apr 10, 2014
rashidkpc pushed a commit that referenced this pull request Apr 10, 2014
Add option to disable zero filling. Closes #612. Closes #934
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants