Solved

how to create a custom graph image

Posted on 2014-02-17
3
409 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 53

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 53

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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

726 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