Skip to content

Commit

Permalink
手机端深度图调整
Browse files Browse the repository at this point in the history
  • Loading branch information
cjzhang1230 committed Jan 24, 2019
1 parent 94b1972 commit 3611529
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/js/DepthMapMobileSetChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class DepthMapMobileSetChartController {
'#ee4b4b',
'#09e988'
],

backgroundColor: '#161b21',
animation: true,
legend: [
Expand Down Expand Up @@ -141,18 +140,19 @@ class DepthMapMobileSetChartController {
type: 'value',
gridIndex: 0,
position: 'right',
z:1,
z:2,
splitNumber: 4,
splitLine: {
show: false,
type: 'shadow'
},
axisLabel: {
z:2,
inside:true,
show: true,
onZero: false,
margin: 0,
color: '#b7c2ce',
color: '#e6e6e6',
fontSize: 22,
formatter: function (value) {
if (value > 1000) {
Expand All @@ -164,7 +164,7 @@ class DepthMapMobileSetChartController {
show: false
},
axisPointer: {
show: true,
show: false,
label: {
backgroundColor: '#232b34',
fontSize:16,
Expand All @@ -179,31 +179,31 @@ class DepthMapMobileSetChartController {
return {
formatter: function (param) {
param = param[0];
if(param) {
if (param.seriesName === 'sell') {
if (param) {
if (param.seriesName === 'Sell' || param.seriesName === '卖出') {
return [
'<div style="text-align:left;">',
'<div style="width:6px;height:6px;background:#28b869;border-radius:4px;float:left;margin-top:8px;margin-right:2px;"></div>' +
message.sellPrice +
param.data[0] +
'<br/>',
'<div style="width:6px;height:6px;background:#28b869;border-radius:4px;float:left;margin-top:8px;margin-right:2px;"></div>' +
message.sellTotal +
param.data[1] +
'<br/>',
'<div style="width:6px;height:6px;background:#28b869;border-radius:4px;float:left;margin-top:7px;margin-right:2px;"></div>' +
message.sellPrice +
param.data[0] +
'<br/>',
'<div style="width:6px;height:6px;background:#28b869;border-radius:4px;float:left;margin-top:7px;margin-right:2px;"></div>' +
message.sellTotal +
param.data[1] +
'<br/>',
'</div>'
].join('');
} else if (param.seriesName === 'buy') {
} else if (param.seriesName === 'Buy' || param.seriesName === '买入') {
return [
'<div style="text-align:left;">',
'<div style="width:6px;height:6px;background:#ee4b4b;border-radius:4px;float:left;margin-top:8px;margin-right:2px;"></div>' +
message.buyPrice +
param.data[0] +
'<br/>',
'<div style="width:6px;height:6px;background:#ee4b4b;border-radius:4px;float:left;margin-top:8px;margin-right:2px;"></div>' +
message.buyTotal +
param.data[1] +
'<br/>',
'<div style="width:6px;height:6px;background:#ee4b4b;border-radius:4px;float:left;margin-top:7px;margin-right:2px;"></div>' +
message.buyPrice +
param.data[0] +
'<br/>',
'<div style="width:6px;height:6px;background:#ee4b4b;border-radius:4px;float:left;margin-top:7px;margin-right:2px;"></div>' +
message.buyTotal +
param.data[1] +
'<br/>',
'</div>'
].join('');
}
Expand Down

0 comments on commit 3611529

Please sign in to comment.