Commit 6ec36260 by 姜雷

修改消费图表图例

parent 948f4e8a
......@@ -78,7 +78,7 @@ export default {
},
'g2-legend': {
width: '230px',
maxHeight: '',
'max-height': this.height + 'px',
// left: '-20px',
},
'g2-legend-list-item': {
......
......@@ -143,6 +143,11 @@ export default {
});
this.chart.source(dv, {
index: {
type: 'linear',
min: 0,
max: this.dataList.length - 1,
},
rechargeMoney: {
alias: '充值金额',
},
......@@ -294,6 +299,8 @@ export default {
// this.chart.changeHeight(height);
this.updateSlider();
this.updateData();
console.log(this.chart.getYScales());
} else {
this.initData();
this.initSlider();
......
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