Commit 6ec36260 by 姜雷

修改消费图表图例

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