-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Conversation
hey, thats super cool! |
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:
|
Good idea! I'll try to make this change next week. |
@rashidkpc I went ahead and added another reduce strategy for filling:
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.
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']"> |
There was a problem hiding this comment.
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.
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.