cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Time Series Chart to Export Image ?

hyunkook
1-Newbie

Time Series Chart to Export Image ?

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 1
AdamR
12-Amethyst
(To:hyunkook)

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.

Top Tags