[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 470
  • Last Modified:

how to create a custom graph image

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
Shaye Larsen
Asked:
Shaye Larsen
  • 2
1 Solution
 
Scott Fell, EE MVEDeveloperCommented:
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
 
Shaye LarsenAuthor Commented:
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
 
Scott Fell, EE MVEDeveloperCommented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now