Allow snapshots of your visualization
To be able to take a snapshot of your visualization for use in data storytelling, it must be enabled in the code. This is done by setting the snapshot property to true.
Information noteA new implementation of the snapshot property was introduced in version 3.0. Extensions using the legacy implementation of the snapshot property will continue to work but use this new implementation when creating new extensions.
Example: Basic example
definition : properties,
support : {
snapshot: true
},
paint : function($element, layout) {
Example: snapshot as a function
definition : properties,
support : {
snapshot: function( layout ) {
return layout.qHyperCube.qDataPages[0].qMatrix.length;
}
},
paint : function($element, layout) {
Legacy implementation (pre version 3.0)
To be able to take a snapshot of your visualization for use in data storytelling, it must be enabled in the code. This is done by setting the canTakeSnapshot parameter of the snapshot property to true.
Example
definition : properties,
snapshot : {
canTakeSnapshot : true
},
paint : function($element, layout) {