I'm using Core Plot for charting in my app. One of the use scenarios for the app requires me to implement sending emails with the charts - from the default email client.
I'm wondering what would be the best way to implement it - as in a single email there could be as many as 40 charts included... I could render the chart, then use the contents of its view as CoreGraphics context and, I guess, generate CGImage and UIImage from there, then somehow include it in an email... but I'm wondering if there isn't a simpler way to achieve it?
One option would be, of course, to use Core Plot for the in-app plotting, and in the email use some online library for the plots - like Google Charts (so, instead of having the images attached or inline in the mail, I could just use <img src="..." /> instead - but I'm not sure if it's what I should really do (I don't want to use Google Chart entirely for my charting, as the app should be usable without internet access)...
What would be the best way to generate the charts for sending in an email?
(Or maybe there's a better way to send it? Something like generating a PDF report with graphs inside?)
If you already have Core Plot graphs set up, just use [graph imageOfLayer] to get a UIImage of the graph. You can use this to create an image for the email or draw into a PDF context. You can also export the graph to PDF directly by using [graph dataForPDFRepresentationOfLayer].
Related
I am using the Microsoft one-note graph API for creating pages according to their demand in HTML.
Is there any possibility to create a page with a background image? Because I would like to use it as the background of a fillable form.
I should be filled by handwriting with a pen on a tablet in the OneNote app.
Or are there any other, better approaches?
You can definitely create pages - see this link.
The background can be an image or pdf. I however much prefer to use a template page that you create yourself (directly in one note) and copy using page: copyToSection. This allows you to use the added functionality of onenote such as ruled pages, setting images as backgrounds, etc.
I've been asked to create an automated way to generate filled PDF reports from google sheet data that comes from a web form. I've been looking for places to start for a while and can't find anything helpful.
Is this something that Google can even do? Or would it have to be moved to another system like O365 or a custom app with something like filemaker? Are there any 3rd party apps that can take google sheet data and put it into a custom pdf?
I'm pretty new to this and am not really sure where to begin. Do you guys have any suggestions on what to read, places to go, or how to start? Thanks!
create form: https://docs.google.com/forms/u/0/
entered data will come into the spreadsheet...
use FILTER or QUERY to shift your incoming dataset as you need
export it like pdf:
I wanted to know the technology decision behind the iOS Google app.
As we can see, in the app's Google Now feature it renders many different card templates for different scenarios, and those templates seems to be very flexible based on server inputs.
I was wondering if this is implemented all based on HTML5? or they just have many templates built in and render them locally? I'd vote for the HTML5 route but not sure if this still involved some native code to make it more responsive?
Thanks!
As we (well, most of the community) are not Google employees we can't tell you what they really did, but I'd say that it is possible to do this dynamically in the app.
We did develop something similar that responds to definitions sent by the server and transforms them to custom designed forms following basic rules.
Google reuses the design of those cards for different plattforms, the easiest solution should be showing some WebView and using HTML5.
I agree with Kevin, as this answer is entirely based on personal opinion, too.
The way I would go is to create a card class which will load some JSON data and format it with HTML and CSS. Looking at each card it would be hell to format things that way natively. I mean, attributed strings is not the way to go. Too much logic for deciding which card get a bigger text or a picture.
Additionally, the top header is most likely "localized" as well, so you get the location and load a localized image. But that is Google by nature.
I am generating some linecharts via JSF (Primefaces).
So charts are accessible and generated nicely via accessing in any browser.
However i need to send those charts via email to certain persons cause they do not want to click on a link so this should be automated.
Is there a way to generate an image out of what the JSF is rendering ?
Thanks
Charts are canvas based and can be exported as static images with client side api.
Take a look here:
http://www.primefaces.org/showcase/ui/chartExport.jsf
Primefaces use Javascript Libraries to render the charts. You would have to process the browser output before sending the email.
(Also, lazy managers)
You would have to dig into the Java Image API (not JSF) in order to plot the graph (from the raw data) into an image if you want the JVM to send the email.
If you want to just automate the process in your machine to send the emails (so you can send the emails in one click instead of doing it all manually, be mindful of this caveat:
You would have to generate a custom page with print CSS and your email layout, then use a browser plugin that sends the email on a click.
I've been using amcharts (a flash component) to produce charts from within my rails application.
I'm curious.. is there a GEM or plugin that allows me to include a charting component in my web app that lets users mix from any data sets they want, and produce basic charts on their own? It would take me ages to script such a tool...
Ideally, I'd like it to read anbunch of xml (or whatever.. perhaps data right out of my database) that has multi-variable data, and the user can use the component to customize his/her own chart with several series, or however they want. A "dummbed" down version of excel, delivered over the web :)
Well you're looking for a graphic images generator ?
There is Gruff which allows that. But I personnaly don't really like the look of the graphs generated.
There is also something language agnostic : Google Charts Api. Which allows you to generate graphics by calling a specific Google url generated with your encoded datas.
So you take your datas from wherever you want (database, xml, ...), you call one of those two libraries and you get your graph.
I too had been searching for Ruby supporting charting libraries. Below are additional charting resources I've not seen mentioned in this post but I've come across in the past.
JQuery sparklines
ProtoChart
XML/SWF Charts
FusionCharts free (Also have a paid version)
Smashing Apps article on charting resources
Enjoy!