Solved

how to create a custom graph image

Posted on 2014-02-17
3
390 Views
Last Modified: 2014-02-19
We have a userbase in a saas product.  We want to generate custom graphs that are turned into images, that are then send to them in a weekly email.

We can do all except the custom graph image.  Any thoughts or direction on this?

Our technologies are js, java, jquery, ajax.
0
Comment
Question by:Shaye Larsen
  • 2
3 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39866662
Instead of reinventing the wheel, why not use one of the many open source chart and graph libraries?  http://www.chartjs.org/ or http://www.jqplot.com/ or http://d3js.org/.  I have used the first two myself.

If you want to turn things into images, I can't speak to java because I don't know the language.  I have http://www.imagemagick.org/ installed on my server and it does the trick.  There is a learning curve but it is similar to having photoshop features at the command line you can access by your serverside code.
0
 
LVL 1

Author Comment

by:Shaye Larsen
ID: 39867509
Creating the graph isn't my problem, it is getting it into an email.  Either I need to produce a friendly image of the graph, or friendly html that email can handle.
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39867523
I see.  As long as you can create the graph, that is where imagemagick comes in.  Or perhaps running something like this  html2canvas on the fly http://html2canvas.hertzen.com/examples.html.  The key is you need a way to save the image serverside, then put the full url to the image in your email.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question