You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/11/27 10:10:59 UTC

[GitHub] sxmpasch commented on issue #9475: Hope to perfect the model!希望能改进表格的显示

sxmpasch commented on issue #9475: Hope to perfect the model!希望能改进表格的显示
URL: https://github.com/apache/incubator-echarts/issues/9475#issuecomment-442002221
 
 
   This is V-Charts. Just add a grid with a proper margin to the chart:
   只需在图表中添加一个具有适当边距的网格即可
   
   ```
   <div id="app">
     <ve-bar :data="chartData" :grid="grid" :settings="chartSettings"></ve-bar>
   </div>
   
   ```
   and
   ```
   new Vue({
     el: '#app',
     data () {
       this.chartSettings =  {
         legendName: {
           'cost': 'costmoney'
         }
       }
       this.grid = {
           show: true,
           top: 50,
           left: 10,
           right: 30,
       }    
       return {
         chartData: {
           columns: ['date', 'cost', 'profit'],
           rows: [
             { 'date': '01/01', 'cost': 123, 'profit': 300 },
             { 'date': '01/02', 'cost': 1223, 'profit': 600 },
             { 'date': '01/03', 'cost': 2123, 'profit': 9000 },
             { 'date': '01/04', 'cost': 4123, 'profit': 1200 },
             { 'date': '01/05', 'cost': 3123, 'profit': 1500 },
             { 'date': '01/06', 'cost': 7123, 'profit': 2000 }
           ]
         }
       }
     }
   })
   
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org