提交 65155175 编写于 作者: B BingBlog

change lines colors

上级 90e1779a
...@@ -177,6 +177,7 @@ export default { ...@@ -177,6 +177,7 @@ export default {
let legendOptions = tagList.map(item => item.run); let legendOptions = tagList.map(item => item.run);
let that = this; let that = this;
let option = { let option = {
color: ['#c23531', '#61a0a8', '#d48265', '#91c7ae','#749f83', '#ca8622', '#bda29a','#6e7074', '#546570', '#c4ccd3'],
title: { title: {
text: tag, text: tag,
textStyle: { textStyle: {
......
...@@ -24,7 +24,7 @@ import {format, precisionRound} from 'd3-format'; ...@@ -24,7 +24,7 @@ import {format, precisionRound} from 'd3-format';
import {getPluginHistogramsHistograms} from '../../service'; import {getPluginHistogramsHistograms} from '../../service';
const highlightLineColor = '#2f4554'; const highlightLineColor = '#2f4554';
const defaultLineColor = '#fec42c'; const defaultLineColor = '#d14a61';
const lineWidth = 1; const lineWidth = 1;
// the time to refresh chart data // the time to refresh chart data
const intervalTime = 30; const intervalTime = 30;
...@@ -181,7 +181,7 @@ export default { ...@@ -181,7 +181,7 @@ export default {
let maxX = max; let maxX = max;
let minZ = Infinity; let minZ = Infinity;
let maxZ = -Infinity; let maxZ = -Infinity;
grid.top = '60%'; grid.top = '50%';
chartData.forEach(({items}) => { chartData.forEach(({items}) => {
let lineData = []; let lineData = [];
items.forEach(([time, step, x, y]) => { items.forEach(([time, step, x, y]) => {
...@@ -194,7 +194,7 @@ export default { ...@@ -194,7 +194,7 @@ export default {
rawData.push(lineData); rawData.push(lineData);
}); });
// Max height in z axis. // Max height in z axis.
let Z_HEIGHT = 100; let Z_HEIGHT = 130;
let option = { let option = {
title, title,
visualMap: { visualMap: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册