How to generate chart and save as Jpeg by using Gwt visualization API - gwt

GWT,Java framework. I wanted to generate chart and save it as jpeg file for sending report's graph to user's email.
I am using GWT visualization api to generate chart for fron-end view. But I wanted to generate chart and save it as jpg in server side.
can any one help me that How to save file as jpeg in server side by using GWT visualization api?

I know a script which can export SVG chart to other format. Do you users' browsers support SVG ?

Related

Export leaflet map as PDF to server

I use Leaflet to display basemaps, wms layers, multipoints, multipolygons and multilinestrings. Is there a way with JavaScript to directly, upon button click, save screenshot of map as PDF with document header and footer (image in the middle) on the server?
Today I am able to save screenshot as PDF locally on my computer with help of Leaflet plugin browser-print and print-save it as a PDF. I can then upload the file to the server and all is well. However, I want to skip this manual part of printing map as pdf, save it locally and then upload it.
You can try this package works great:
https://github.com/grinat/leaflet-simple-map-screenshoter
I used it with Vue.js and make it a screenshot from WMS and Geo maps as well.
Send the data like base64image on a server and there I use https://github.com/puppeteer/puppeteer to create a PDF.

Download zing chart as pdf using itextsharp

I am using zing chart to display various charts on client side. Now there is a requirement to download all the charts in one pdf. For pdf generation I am using itextsharp. Is there any way by which I can integrate zing charts so that itextsharp can render and create pdf containing all charts?
No, there isnt'.
I think the best way to solve your usecase would be:
1. to send a call to the server (containing information about what charts the user wants to have)
2. at the server side, handle incoming requests by producing the graph (as an image), adding all images in a pdf, pushing the bytes of the pdf back into an HTTP message
For generating charts at the server side, have a look at http://nugetmusthaves.com/Tag/Chart

Tableau: can a visualization be created via javascript or other language?

I am trying to create a new visualization (sheet) in a tableau online workbook via javascript API or by another language. Not by using Tableau Desktop or "manual" interaction into Tableau Online.
I know that the JS API allows me to control (filter, display, etc.) existing visualizations, and the SDK can extract data and publish, but my need is to "create" a new visualization into an existing workbook.
Is there a way to do this?
The only methods of creating Tableau content that I'm aware of is using Tableau Desktop or Web authoring of something that is already published.
I explain how to do what you're asking on the blog post linked below. You can use Python with Jinja2.
The basics ...
Create a template of your XML.
Put in the necessary Jinja2 templating language code into your template as placeholders for the data and XML that needs to be rendered by Jinja2. You can render data conditionally as well.
Create a CSV file that specifies what the Python program needs to know to create your workbooks.
Run your Python application to generate a TWB file based on your template and input file. You can also easily create TWBX by zipping the TWB and data together.
The link gives code examples and an example CSV file for specifying your input.
https://www.linkedin.com/pulse/create-tableau-visualizations-programmatically-allan-thompson

Generating PDF with Charts in Laravel 5

I'm working on Laravel 5 and I have a view where I displayed some graphs of Charts, the thing is that I want to offer to the user, the posibility of download this report in PDF, I'm currently generating reports with DomPDF, but as I was reading, DomPDF doesn't support this kind of graph, so, How can I do it? I was thinking in generate a printing view, but then how I dowload it automatically?
Also, I was thinking to send the generated images through a post petition and then attach it to the generated PDF, can I do that?

Export google chart to pdf using pdfbox

I need to export a google visualization chart to pdf in my Java EE application. Looks like all client side pdf tools (eg. JSPDF) are using HTML5 features and will not work in IE9 or below.
<img id="gChartImg"></div>
$("#gChartImg").attr("src",chart.getImageURI());
We're already using pdfbox to export the html to PDF. Is there any way to get this image in server side using $().ajaxform or webservices.
Any help is appreciated.