|
@@ -231,10 +231,17 @@ export default {
|
|
|
hard_chart.resize({
|
|
|
height: (this.$refs.launch.offsetWidth * 6) / 16,
|
|
|
});
|
|
|
+ let c = ["#1b9ade", "#fd5555"];
|
|
|
var option = {
|
|
|
+ title: {
|
|
|
+ text: "硬广趋势",
|
|
|
+ top: 20,
|
|
|
+ left: 50
|
|
|
+ },
|
|
|
legend: {
|
|
|
show: true,
|
|
|
data: chartData.lendata,
|
|
|
+ top:"10%"
|
|
|
},
|
|
|
xAxis: {
|
|
|
type: "category",
|
|
@@ -244,14 +251,14 @@ export default {
|
|
|
yAxis: {
|
|
|
type: "value",
|
|
|
scale: true,
|
|
|
- name: '单位:' + this.hard_list[this.hard_act].unit,
|
|
|
+ name: "单位:" + this.hard_list[this.hard_act].unit,
|
|
|
axisLabel: {
|
|
|
formatter: arr => {
|
|
|
return this.formatNum(arr);
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
- color: ["#1b9ade", "#fd5555"],
|
|
|
+ color: c,
|
|
|
tooltip: {
|
|
|
trigger: "axis",
|
|
|
textStyle: {
|
|
@@ -268,7 +275,13 @@ export default {
|
|
|
day =
|
|
|
v.dataIndex > 8 ? v.dataIndex + 1 : "0" + (v.dataIndex + 1),
|
|
|
val = (v.value - 0).toFixed(2) - 0;
|
|
|
- out += time[0] + "-" + time[1];
|
|
|
+ out +=
|
|
|
+ "<div style='display:inline-block;width: 10px;height: 10px;border-radius: 50%;background: " +
|
|
|
+ c[i] +
|
|
|
+ "' ></div> " +
|
|
|
+ time[0] +
|
|
|
+ "-" +
|
|
|
+ time[1];
|
|
|
this.industryRang + 1 <= 2 ? (out += "-" + day) : "";
|
|
|
out +=
|
|
|
": " + val + this.hard_list[this.hard_act].unit + "<br />";
|
|
@@ -276,7 +289,7 @@ export default {
|
|
|
return out;
|
|
|
},
|
|
|
},
|
|
|
- grid: [{ left: 150, top: "10%", buttom: 0, right: 100 }],
|
|
|
+ grid: [{ left: 150, top: "20%", buttom: 0, right: 100 }],
|
|
|
series: chartData.value.map((data, i) => {
|
|
|
return {
|
|
|
showSymbol: false,
|
|
@@ -300,16 +313,23 @@ export default {
|
|
|
soft_chart.resize({
|
|
|
height: (this.$refs.trend.offsetWidth * 6) / 16,
|
|
|
});
|
|
|
+ let c = ["#1b9ade", "#fd5555"];
|
|
|
var option = {
|
|
|
+ title: {
|
|
|
+ text: "软广趋势",
|
|
|
+ top: 20,
|
|
|
+ left: 50
|
|
|
+ },
|
|
|
legend: {
|
|
|
show: true,
|
|
|
data: chartData.lendata,
|
|
|
+ top:"10%"
|
|
|
},
|
|
|
xAxis: {
|
|
|
type: "category",
|
|
|
data: chartData.keys,
|
|
|
},
|
|
|
- color: ["#1b9ade", "#fd5555"],
|
|
|
+ color: c,
|
|
|
tooltip: {
|
|
|
trigger: "axis",
|
|
|
textStyle: {
|
|
@@ -318,6 +338,7 @@ export default {
|
|
|
backgroundColor: "rgba(255,255,255,.8)",
|
|
|
borderColor: "#1b9ade",
|
|
|
borderWidth: 1,
|
|
|
+
|
|
|
formatter: m => {
|
|
|
let out = "";
|
|
|
for (let i = 0; i < m.length; i++) {
|
|
@@ -326,7 +347,13 @@ export default {
|
|
|
day =
|
|
|
v.dataIndex > 8 ? v.dataIndex + 1 : "0" + (v.dataIndex + 1),
|
|
|
val = (v.value - 0).toFixed(2) - 0;
|
|
|
- out += time[0] + "-" + time[1];
|
|
|
+ out +=
|
|
|
+ "<div style='display:inline-block;width: 10px;height: 10px;border-radius: 50%;background: " +
|
|
|
+ c[i] +
|
|
|
+ "' ></div> " +
|
|
|
+ time[0] +
|
|
|
+ "-" +
|
|
|
+ time[1];
|
|
|
this.industryRang + 1 <= 2 ? (out += "-" + day) : "";
|
|
|
out +=
|
|
|
": " + val + this.soft_list[this.soft_act].unit + "<br />";
|
|
@@ -336,7 +363,7 @@ export default {
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: "value",
|
|
|
- name: '单位:' + this.soft_list[this.soft_act].unit,
|
|
|
+ name: "单位:" + this.soft_list[this.soft_act].unit,
|
|
|
scale: true,
|
|
|
axisLabel: {
|
|
|
formatter: arr => {
|
|
@@ -344,7 +371,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
- grid: [{ left: 150, top: "10%", buttom: 0, right: 100 }],
|
|
|
+ grid: [{ left: 150, top: "20%", buttom: 0, right: 100 }],
|
|
|
series: chartData.value.map((v, i) => {
|
|
|
return {
|
|
|
showSymbol: false,
|
|
@@ -371,6 +398,7 @@ export default {
|
|
|
|
|
|
<style>
|
|
|
.AdvertisingEye .title_card {
|
|
|
+ font-weight: 600;
|
|
|
background-color: #1989fa;
|
|
|
height: 40px;
|
|
|
line-height: 40px;
|