Solved

how to create a custom graph image

Posted on 2014-02-17
3
379 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:the_hero
  • 2
3 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
Comment Utility
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:the_hero
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now