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

Show gaps in graph when data has long gaps #345

Closed
juliusv opened this Issue Aug 2, 2013 · 4 comments

Comments

Projects
None yet
5 participants
@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Dec 10, 2014

If I'm reading the upstream bugs correctly, a new version of rickshaw is all that's needed.

@fabxc

This comment has been minimized.

Copy link
Member

fabxc commented Oct 27, 2015

This is especially confusing when zero-filling time series at the beginning up the the timestamp of the first displayed time series. It suggests false existence of data, which only becomes apparent if calculations over this non-existent data fail.

@jeromegn

This comment has been minimized.

Copy link

jeromegn commented Jun 17, 2016

Since this doesn't seem to be resolving itself, my workaround is to manually rebuild the series data client-side.

For this, you have to know the start, end and step for the query.

function buildSeriesData(data, from, to, step){
  let seriesData = [];
  for (let i = from; i < to; i += step) {
    let y = data.find((d)=> d[0] == i)
    seriesData.push([i, y && y[1] || null])
  }
  return seriesData;
}

That returns an array of the appropriate size, with the gaps filled as [<timestamp>, null]

brian-brazil added a commit that referenced this issue May 24, 2017

brian-brazil added a commit that referenced this issue May 25, 2017

brian-brazil added a commit that referenced this issue May 25, 2017

simonpasquier pushed a commit to simonpasquier/prometheus that referenced this issue Oct 12, 2017

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 23, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.