I found a hack to save the plot as an image.
It isn't a great solution, as some of the text is missing from the
graph. I haven't figured this out yet.
//---------------------------------------------
//
// Hack to save as an image file
//
function plot_to_image(){
//
// create image file
//
// content type header, to force download
var newCanvas = document.createElement("canvas");
newCanvas.width = $("#chartDiv_sizerev_vs_date").width();
newCanvas.height = $("#chartDiv_sizerev_vs_date").height();
var baseOffset = $("#chartDiv_sizerev_vs_date").offset();
$("#chartDiv_sizerev_vs_date canvas").each(function () {
var offset = $(this).offset();
newCanvas.getContext("2d").drawImage(this,
offset.left - baseOffset.left,
offset.top - baseOffset.top);
});
document.location.href = newCanvas.toDataURL();
}
What browser and platform are you using? What version of jqPlot?
Print capability is a function of the browser. jqPlot renders canvas and div elements (or VML elements for IE). I have sometimes had issues with IE, but generally good results with other browsers.
> 2. Is there any was to export the charts prepared to MS Excel?
No.
--
Chris Leonello
jqplot...@jqplot.com
> --
> You received this message because you are subscribed to the Google Groups "jqplot-users" group.
> To post to this group, send email to jqplot...@googlegroups.com.
> To unsubscribe from this group, send email to jqplot-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jqplot-users?hl=en.
>