Commit 8ea2f6d3 authored by liudong1993's avatar liudong1993

1

parent 59f29c93
<template> <template>
<div class="echartsBox"> <div class="echartsBox">
<div class="titleBox row"> <div class="titleBox row">
<h3>毛利变化趋势图</h3> <h3>毛利变化趋势图</h3>
<div style="margin-left: 20px;"> <div style="margin-left: 20px;">
...@@ -78,11 +78,11 @@ export default { ...@@ -78,11 +78,11 @@ export default {
label: { label: {
show: true, show: true,
position: 'top', // 在顶部显示 position: 'top', // 在顶部显示
formatter: '{c} %' // 格式化金额,{c} 代表数据值 formatter: '{c}w' // 格式化金额,{c} 代表数据值
}, },
data: x.MonthData.map(x=>{ return x }) // 绑定实时数据数组 data: x.MonthData.map(x=>{ return (x/10000).toFixed(2) }) // 绑定实时数据数组
} }
if(x.Name=='毛利') datas.push(obj) if(x.Name=='毛利') datas.push(obj)
if(indexs>6){ if(indexs>6){
let name=x.Name; let name=x.Name;
Newobj[name]=false; Newobj[name]=false;
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
textStyle: { textStyle: {
color: "#969696" color: "#969696"
}, },
formatter: '{value} %', formatter: '{value}w',
margin: 20 // 标签距离y轴的距离为20 margin: 20 // 标签距离y轴的距离为20
}, },
splitLine:{ splitLine:{
......
<template> <template>
<div class="echartsBox"> <div class="echartsBox">
<div class="titleBox row"> <div class="titleBox row">
<h3>实际利变化趋势图</h3> <h3>实际利变化趋势图</h3>
<div style="margin-left: 20px;"> <div style="margin-left: 20px;">
...@@ -78,11 +78,11 @@ export default { ...@@ -78,11 +78,11 @@ export default {
label: { label: {
show: true, show: true,
position: 'top', // 在顶部显示 position: 'top', // 在顶部显示
formatter: '{c} %' // 格式化金额,{c} 代表数据值 formatter: '{c}w' // 格式化金额,{c} 代表数据值
}, },
data: x.MonthData.map(x=>{ return x }) // 绑定实时数据数组 data: x.MonthData.map(x=>{ return (x/10000).toFixed(2) }) // 绑定实时数据数组
} }
if(x.Name=='实际利') datas.push(obj) if(x.Name=='实际利') datas.push(obj)
if(indexs>6){ if(indexs>6){
let name=x.Name; let name=x.Name;
Newobj[name]=false; Newobj[name]=false;
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
textStyle: { textStyle: {
color: "#969696" color: "#969696"
}, },
formatter: '{value} %', formatter: '{value}w',
margin: 20 // 标签距离y轴的距离为20 margin: 20 // 标签距离y轴的距离为20
}, },
splitLine:{ splitLine:{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment