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

Updated the ZeroFilled class to only fill when necessary #406

Closed
wants to merge 4 commits into from

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Aug 23, 2013

The new ZeroFill time series class created a lot of data points, which caused flot to perform poorly and wasn't really necessary. This modification will only place zero's before/after a measurements when there isn't an existing measurement there. This ensures that the lines drawn by flot are accurate.

This also sets the line width on the bars to 0, so that 0 measurements won't show up on bar charts.

Spencer Alger added 4 commits August 23, 2013 10:04
updated the getFlotPairs() function to only check before and after a value, adding only enough zeros to maintain line graphs.
… introduced the fill_style option ("minimal" and

"all" are possible values). Also allowed a set of required times to be specified when asking the times series for it's
data. This way, we can ensure in the stacked bar chart that each data point in use has a value preventing the bars
from stacking incorrectly.
@spalger
Copy link
Contributor Author

spalger commented Aug 24, 2013

@olej-a mind giving this a shot and seeing how it works?

@olej-a
Copy link

olej-a commented Aug 25, 2013

It is bettter. I don't understand why zero values starts or ends on different positions. There are missing zero values on the end. I don't check source code. There may be problem with interval_to_seconds. But it is only visual detail. Line graph looks ok. Bar graph is OK too. See screenshots.

graph-4
graph-3
graph-5

There is one error in bar graph - width of bars and overlapped bars. Problem is visible if resolution interval is less than second. See my commit olej-a@e89f9b7
There is added greater resolution up to 0.02s. It is usable for high load systems (thousands of log lines per second).

How bar graph looks now :

graph-6

I would be happy if you could check my commits to histogram panel - moving in time left and right, move to now and display timeframe information. Moving in time and timeframe info is real bonus to histogram usability. See my pull request #299

@rashidkpc
Copy link
Contributor

Yep, this is a bug in interval_to_seconds, working on this now

@rashidkpc rashidkpc mentioned this pull request Aug 26, 2013
@spalger spalger deleted the zero-filled-ts branch August 26, 2013 17:42
@spalger spalger restored the zero-filled-ts branch August 26, 2013 20:25
spalger pushed a commit that referenced this pull request Oct 6, 2014
harper-carroll pushed a commit to harper-carroll/kibana that referenced this pull request Jul 11, 2016
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

Successfully merging this pull request may close these issues.

3 participants