|
@@ -7,8 +7,9 @@ import * as echarts from 'echarts';
|
|
* @param legendList 图表数据说明
|
|
* @param legendList 图表数据说明
|
|
* @param domId 目标DOM元素ID
|
|
* @param domId 目标DOM元素ID
|
|
* @param xAxisName X轴刻度名称
|
|
* @param xAxisName X轴刻度名称
|
|
|
|
+ * @param gridRight 右侧边距
|
|
*/
|
|
*/
|
|
-export function initLineImageTable(xTitleList: any, seriesList: any, legendList: any, domId: any, xAxisName: any) {
|
|
|
|
|
|
+export function initLineImageTable(xTitleList: any, seriesList: any, legendList: any, domId: any, xAxisName: any, gridRight: any) {
|
|
const chartDom = document.getElementById(domId);
|
|
const chartDom = document.getElementById(domId);
|
|
let myChart = echarts.init(chartDom);
|
|
let myChart = echarts.init(chartDom);
|
|
if (myChart != null) {
|
|
if (myChart != null) {
|
|
@@ -33,7 +34,7 @@ export function initLineImageTable(xTitleList: any, seriesList: any, legendList:
|
|
grid: {
|
|
grid: {
|
|
top: '3%',
|
|
top: '3%',
|
|
left: '3%',
|
|
left: '3%',
|
|
- right: '5%',
|
|
|
|
|
|
+ right: gridRight,
|
|
bottom: '30px',
|
|
bottom: '30px',
|
|
containLabel: true
|
|
containLabel: true
|
|
},
|
|
},
|