标签:表示 type mst get encode encodeuri rto rgba aci
$("#offlineTable").datagrid("options").columns; //options表示easyui表格的设置,columns表示表头 $("#offlineTable").datagrid("getRows") //获取当前分页的行
图表转SVG
/*图表转svg*/ utils.ChartToSvg2 = function (chartIDList) { var height = 0; var data = []; for (var i = 0; i < chartIDList.length; i++) { var chartID = chartIDList[i]; var chart = $(chartID).highcharts(); var chartOption = $.extend(true, {}, chart.options); var prevOptions = { chart: { spacing: chartOption.chart.spacing, yAxis: chartOption.yAxis, height: chartOption.chart.height, width: chartOption.chart.width }, legend: { itemStyle: { fontWeight: chartOption.legend.itemStyle } } }; //根据图例文字数量判断图的高度 height = utils.CovenrtHeight(chart.options, chart.options.chart.type); var opt = { chart: { spacing: [10, 10, 15, 10], yAxis: chartOption.yAxis, height: height, width: ‘925‘ }, legend: { itemStyle: { fontWeight: ‘bold‘ } } } $.extend(true, chart.options, opt); var svg = chart.getSVG(); //还原图表配置 $.extend(true, chart.options, prevOptions); data.push(encodeURIComponent(svg)); } return data; }
标签:表示 type mst get encode encodeuri rto rgba aci
原文地址:https://www.cnblogs.com/AduBlog/p/13848488.html