-
Notifications
You must be signed in to change notification settings - Fork 116
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
Chart export to bitmap (PNG, PDF, TIFF, JPG) #167
Conversation
* Labels from all levels are now joined, e.g. 'Feb/Q1/2012' instead of 'Feb'
Without it empty strings caused maximum value in stacked bar chart to be incorrectly computed (NaN?) and nothing was displayed
i was wondering if you could do the check + counter stuff within the first pass of the resultset as well? i have bad experience introducing several pass algorithms appreciate this pull request though! |
Chart export to bitmap (PNG, PDF, TIFF, JPG)
when an export fails the UI is forwarded to an error page, maybe this can be handled better? maybe you have an idea for that!? |
|
|
I implemented chart export functionality. It consists of client-side support (converting chart to SVG and posting it to the server) and a servlet in saiku that receives SVG (XML) and returns binary representation. Conversion is backed by batik library, thus it supports PNG, PDF (exported in vector format, high quality zoom available), TIFF or JPG. Also we can download SVG file as-is.
Unfortunately server-side component was required (you may wish to port servlet to REST service). Hidden form is used to make sure all files pop-up with browser's Save... dialog rather than replacing current page with image.
Known issues:
This pull request contains all commits (first 8) from Multiple chart fixes. Last two implement the actual export on the client side.
See also
Chart export (server-side support) for server side support.