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

Allow series to contain an empty array of data #223

Closed
wants to merge 3 commits into from

Conversation

willscripted
Copy link

As is, rickshaw assumes the existence of data[0] and data[length-1]. This patch corrects that.

Will O'Brien added 3 commits March 28, 2013 15:59
Rickshaw assumes that there is a datum at index [0] and index [length-1]
for all series. This patch corrects that assumption to allow for empty
data sets.
@drock
Copy link

drock commented Apr 24, 2013

Why was this closed? I would have loved to see this change make it in :(

@willscripted
Copy link
Author

hey @drock, made this pull to the wrong repository, rookie mistake -.-

I'd be happy to reopen it, minus the build, if you though it would be useful. It's more hack null-value-checks than anything else

@drock
Copy link

drock commented Apr 24, 2013

I would personally like it. I have a project where I create my graphs first and then wait for data to arrive via Ajax before adding the series and drawing the chart. As it stands right now I have to add a dummy series and then remove it when the real data comes in.

@bayan
Copy link

bayan commented Sep 9, 2013

@will-ob Was this ever reopened as a new pull request? I can't find a similar commit/request made to fix the issue.

@willscripted
Copy link
Author

@bayan - i had not opened a pr, the commit was more of a hack than a fix. 'Failing gracefully' was not a requirement for us. Not a bad jumping off point though. This is the commit:

Tapjoy@1a38617

@jchotiner
Copy link

@will-ob anyone pick this up again, failing gracefully would be nice

@hit9
Copy link

hit9 commented Mar 21, 2014

I have similar situation, ajax data returned from remote server might be empty.

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.

5 participants