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

[WIP] Add links to export codespeed charts as PNGs #227

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

str4d
Copy link
Contributor

@str4d str4d commented Aug 23, 2017

Closes #134

@str4d
Copy link
Contributor Author

str4d commented Aug 23, 2017

The scaling of the rendered image is currently off; the graph and axis labels are rendered larger than the axes and tick labels, causing the graph to appear truncated.

@tobami
Copy link
Owner

tobami commented Aug 25, 2017

Very good! So jqplot has this functionality after all.

This renders properly for me, can you please paste your png?

Also, the new link reads "PNG permalink". I'd put the link somewhere else closer to the graph.

@str4d str4d force-pushed the 134-export-charts-as-images branch from 0120b40 to d91c362 Compare August 25, 2017 10:12
@str4d
Copy link
Contributor Author

str4d commented Aug 25, 2017

This renders properly for me, can you please paste your png?

Here's the regular timeline view (data from the Zcash codespeed instance):

codespeed-timeline

And the result of clicking on the PNG link:

codespeed-timeline-png

Also, the new link reads "PNG permalink". I'd put the link somewhere else closer to the graph.

Force-pushed to fix this; it now displays down beside the plot description in a button-like UI element. I've also pulled it over to the comparisons page plots.

@str4d str4d changed the title [WIP] Add link to export timeline charts as PNGs [WIP] Add link to export codespeed charts as PNGs Aug 25, 2017
@str4d str4d changed the title [WIP] Add link to export codespeed charts as PNGs [WIP] Add links to export codespeed charts as PNGs Aug 25, 2017
@str4d
Copy link
Contributor Author

str4d commented Aug 25, 2017

The rendering issue above is in Firefox 55.0.2 (on Ubuntu 16.0.4.3 LTS). Interestingly, I just tried using it in Chrome 60.0.3112.101 and it doesn't work at all for security reasons:

Not allowed to navigate top frame to data URL: <URL>

Pushing another commit that works around this using an iframe.

@str4d
Copy link
Contributor Author

str4d commented Aug 25, 2017

Hmm, this is also insufficient - the iframe in the new tab looks fine on Firefox but starts out with zero height in Chrome. Opening the dev console fixes the iframe height in Chrome. Also in the timeline view, the page is reset to showing the default (grid) view.

@tobami
Copy link
Owner

tobami commented Aug 26, 2017

Ouch, isn't there another workaround not using an iframe?

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.

2 participants