|
|
@@ -330,7 +330,7 @@ var app = new Vue({
|
|
|
axiosGet('/index/deal', {
|
|
|
// axiosGet('/api/v5/market/trades', {
|
|
|
instId: that.typeId,
|
|
|
- limit: 100
|
|
|
+ limit: 150
|
|
|
}).then((res) => {
|
|
|
// 处理返回数据
|
|
|
this.dealHis = res.map((e) => {
|
|
|
@@ -463,7 +463,7 @@ var app = new Vue({
|
|
|
type: 'category', //坐标轴类型。(value:数值轴,适用于连续数据。,category:类目轴,适用于离散的类目数据,time: 时间轴,适用于连续的时序数据,log:对数轴。适用于对数数据)
|
|
|
data: [], //类目数据,在类目轴(type: 'category')中有效。
|
|
|
scale: true,
|
|
|
- boundaryGap: true, //坐标轴两边留白策略,类目轴和非类目轴的设置和表现不一样。
|
|
|
+ boundaryGap: false, //坐标轴两边留白策略,类目轴和非类目轴的设置和表现不一样。
|
|
|
axisLine: {
|
|
|
show: false
|
|
|
}, //坐标轴轴线相关设置
|
|
|
@@ -540,8 +540,8 @@ var app = new Vue({
|
|
|
inside: true,
|
|
|
fontSize: 10,
|
|
|
formatter: function(value) {
|
|
|
- return Number(value)
|
|
|
- // return Number(value).toFixed(2)
|
|
|
+ // return Number(value)
|
|
|
+ return Number(value).toFixed(2)
|
|
|
}
|
|
|
},
|
|
|
splitLine: {
|
|
|
@@ -706,15 +706,16 @@ var app = new Vue({
|
|
|
markPoint: {
|
|
|
symbol: 'rect',
|
|
|
symbolSize: [-10, 0.5],
|
|
|
- symbolOffset: [5, 0],
|
|
|
+ symbolOffset: [-5, 0],
|
|
|
itemStyle: {
|
|
|
color: 'rgba(255,255,255,.87)'
|
|
|
},
|
|
|
label: {
|
|
|
color: 'rgba(255,255,255,.87)',
|
|
|
- offset: [10, 0],
|
|
|
+ offset: [3, 0],
|
|
|
fontSize: 10,
|
|
|
- align: 'left',
|
|
|
+ position:"left",
|
|
|
+ align: 'right',
|
|
|
formatter: function(params) {
|
|
|
console.log(params.value,'传入的处理数值');
|
|
|
// return Number(params.value).toFixed(2)
|