You must be logged in to post your query.
Home › Forums › Chart Support › I Want Capture a Screenshots of Whole Canvas Chart.
Tagged: Export Chart
I Want Capture a Screenshots of Whole Canvas Chart Which is Scrollable.
But if we Use export Chart Functionality than we only Capture What is shown in Current Screen not Whole Chart.
Check out MY Chart
I need to take Whole Chart Screen shot Behalf of actual view screen.
exportChart method exports the entire chart irrespective of the scrollbar. In cases where you zoom into a region of the chart (either by zooming using mouse or zooming programmatically by setting viewportMinimum and/or viewportMaximum) & try to export, it exports the entire chart with the axis-range that you have zoomed into.
In order to show the entire viewport Range on the image while exporting, you can reset the viewportMinimum and viewportMaximum property before exporting as shown in the code-snippet below,
var tempViewportMinimum = chart.axisX.get("viewportMinimum");
var tempViewportMaximum = chart.axisX.get("viewportMaximum");
chart.axisX.set("viewportMaximum", null, false);
chart.axisX.set("viewportMinimum", tempViewportMinimum, false);
Kindly take a look at this JSFiddle for an example on the same.
You must be logged in to reply to this topic. Login/Register