Hi Team,
I need to put filename before saving the chart.
Can I get the event on "download plot as a PNG" icon click?
Thanks!
Hi Team,
I need to put filename before saving the chart.
Can I get the event on "download plot as a PNG" icon click?
Thanks!
Hello,
I've implemented this functionality via the https://github.com/surveyjs/survey-analytics/commit/7c65068eb115cd301da3497e5b55c17edb0be23f commit.
Now one can use the following event to set export parameters:
JavaScriptSurveyAnalytics.PlotlySetup.onImageSaving.add(function(selectBaseVisualizer, options) {
options.filename = "Exported " + selectBaseVisualizer.question.name;
});
Available options are described here - https://plotly.com/javascript/plotlyjs-function-reference/#plotlydownloadimage
Thanks, Serge
SurveyJS Team
Hello,
We're using 3rd party library for charting (Plotly - https://plotly.com/javascript/)..) If this library provide this functionality we can do it also on our side. We'll check it and update this thread.
Thanks, Serge
SurveyJS Team