gcvis icon indicating copy to clipboard operation
gcvis copied to clipboard

Allow the ability to save the graph.

Open SimonRichardson opened this issue 11 years ago • 8 comments

This is a PR to fix #1, there are some limitations outlined bellow and I'll see if I can fix the transparent image later on.

Limitations: Currently FF saves with incorrect image extension and the background of the image is transparent (will fix later).

SimonRichardson avatar Jul 11 '14 09:07 SimonRichardson

Nice!

Can you hold off for an hour or so, I'm trying to push a change that adds the ability to zoom in on a part of the graph, you'll need to merge with that.

On Fri, Jul 11, 2014 at 7:25 PM, Simon Richardson [email protected] wrote:

This is a PR to fix #1 https://github.com/davecheney/gcvis/issues/1, there are some limitations outlined bellow and I'll see if I can fix the transparent image later on.

Limitations: Currently FF saves with incorrect image extension and

the background of the image is transparent (will fix later).

You can merge this Pull Request by running

git pull https://github.com/SimonRichardson/gcvis master

Or view, comment on, or merge it at:

https://github.com/davecheney/gcvis/pull/3 Commit Summary

  • Allow the ability to save the graph.

File Changes

  • M main.go https://github.com/davecheney/gcvis/pull/3/files#diff-0 (18)

Patch Links:

  • https://github.com/davecheney/gcvis/pull/3.patch
  • https://github.com/davecheney/gcvis/pull/3.diff

— Reply to this email directly or view it on GitHub https://github.com/davecheney/gcvis/pull/3.

davecheney avatar Jul 11 '14 09:07 davecheney

Sure, no problems :)

SimonRichardson avatar Jul 11 '14 09:07 SimonRichardson

Do you want to pull #4 and resend this PR. Sorry for the crappy merge.

davecheney avatar Jul 11 '14 09:07 davecheney

I've added the ability to see what's the gc is doing in some sort of delayed fashion. Essentially we poll the /ajax endpoint to retrieve the updates from the gc.

SimonRichardson avatar Jul 11 '14 11:07 SimonRichardson

@SimonRichardson i'm sorry for not replying earlier. If you are still interested in landing this PR, please fix the merge conflicts and I'll merge it for you.

davecheney avatar Nov 11 '15 08:11 davecheney

Perhaps this could be done with less code changes from the client-side like such: http://stackoverflow.com/questions/15616925/save-flot-graph-as-image?

tonglil avatar Feb 27 '16 01:02 tonglil

@tonglil if you want to fix the conflicts, I'll be happy to review this branch.

davecheney avatar Feb 27 '16 01:02 davecheney

Why not just cmd + p if you are using Mac and open it in Preview?

holys avatar Jun 28 '16 11:06 holys