toolbox: {
show : true,
feature : {
mark : {show: true},
dataView : {
show: true, readOnly: true,
optionToContent : function(opt) {
var table = $("#tableDiv").html();
return table;
}
},
magicType : {show: true, type: ['line', 'bar']},
restore : {show: true},
saveAsImage : {show: true}
}
}
<div id="tableDiv">
<div id="lineDiv" style='position:absolute;z-index:9999;'></div>
<table cellspacing="0" cellpadding="0" style="border-collapse:collapse; width: 100%;margin-to