Skip to main content
1-Visitor
June 29, 2015
Question

Time Series Chart to Export Image ?

  • June 29, 2015
  • 1 reply
  • 1722 views

Time Series Chart to Export Image ?

13.png

chart How that can add plug in

14.png

help me T.T

amExport = {

top : 0,

right : 0,

exportJPG : true,

exportPNG : true,

exportSVG : true

}

// Advanced configuration

amExport.userCFG = {

menuTop : 'auto',

menuLeft : 'auto',

menuRight : '0px',

menuBottom : '0px',

menuItems : [{

textAlign : 'center',

icon : '../amcharts/images/export.png',

iconTitle : 'Save chart as an image',

onclick : function () {},

items : [{

title: 'JPG',

format: 'jpg'

}, {

title: 'PNG',

format: 'png'

}, {

title: 'SVG',

format: 'svg'

}]

}],

menuItemStyle: {

backgroundColor : 'transparent',

opacity : 1,

rollOverBackgroundColor : '#EFEFEF',

color : '#000000',

rollOverColor : '#CC0000',

paddingTop : '6px',

paddingRight : '6px',

paddingBottom : '6px',

paddingLeft : '6px',

marginTop : '0px',

marginRight : '0px',

marginBottom : '0px',

marginLeft : '0px',

textAlign : 'left',

textDecoration : 'none',

fontFamily : 'Arial', // Default: charts default

fontSize : '12px', // Default: charts default

},

menuItemOutput: {

backgroundColor : '#FFFFFF',

fileName : 'amCharts',

format : 'png',

output : 'dataurlnewwindow',

render : 'browser',

dpi : 90,

onclick : function(instance, config, event) {

event.preventDefault();

instance.output(config);

}

},

legendPosition: "bottom", //top,left,right

removeImagery: true

}

1 reply

14-Alexandrite
June 29, 2015

There is no built in structure in Thingworx to do this.  Even using some html parsing will likely not work because of how the chart is rendered.  The simplest and current way is to do a screen capture.