You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/10/24 12:27:16 UTC

[GitHub] [incubator-echarts] reatang opened a new issue #11483: series.bar 柱状图3.*和4.*对于 time类型数据渲染不一致

reatang opened a new issue #11483: series.bar 柱状图3.*和4.*对于 time类型数据渲染不一致
URL: https://github.com/apache/incubator-echarts/issues/11483
 
 
   Option配置:
   
   ```
   option = {
       title: {
           text: '阶梯瀑布图',
           subtext: 'From ExcelHome',
           sublink: 'http://e.weibo.com/1341556070/Aj1J2x5a5'
       },
       tooltip : {
           trigger: 'axis',
           axisPointer : {            // 坐标轴指示器,坐标轴触发有效
               type : 'shadow'        // 默认为直线,可选为:'line' | 'shadow'
           },
           formatter: function (params) {
               var tar;
               if (params[1].value != '-') {
                   tar = params[1];
               }
               else {
                   tar = params[0];
               }
               return tar.name + '<br/>' + tar.seriesName + ' : ' + tar.value;
           }
       },
       legend: {
           data:['支出','收入']
       },
       grid: {
           left: '3%',
           right: '4%',
           bottom: '3%',
           containLabel: true
       },
       xAxis: {
           type : 'time'
           
       },
       yAxis: {
           type : 'category',
           splitLine: {show:false},
           data :  ["2019-01-01", "2019-01-02", "2019-01-03", "2019-01-04", "2019-01-05", "2019-01-06", "2019-01-07"]
       },
       series: [{"name":"空闲时间","type":"bar","stack":"总量","itemStyle":{"normal":{"barBorderColor":"rgba(0,0,0,0)","color":"rgba(0,0,0,0)"},"emphasis":{"barBorderColor":"rgba(0,0,0,0)","color":"rgba(0,0,0,0)"}},"data":[1546275600000,1546388580000,1546495920000,1546582320000,1546668720000,1546755120000,1546841520000],"tooltip":{"trigger":"item","formatter":"无"}},{"name":"游戏时间","type":"bar","stack":"总量","label":{"normal":{"show":false}},"itemStyle":{"normal":{"barBorderColor":"#0275d8","color":"#0275d8"},"emphasis":{"barBorderColor":"#008dd8","color":"#008dd8"}},"data":[1546279200000,1546424700000,1546521900000,1546608300000,1546694700000,1546781100000,1546867500000],"tooltip":{"trigger":"item"}},{"name":"空闲时间","type":"bar","stack":"总量","itemStyle":{"normal":{"barBorderColor":"rgba(0,0,0,0)","color":"rgba(0,0,0,0)"},"emphasis":{"barBorderColor":"rgba(0,0,0,0)","color":"rgba(0,0,0,0)"}},"data":[1546281000000,1546436400000],"tooltip":{"trigger":"item","formatter":"无"}},{"name":"游戏时间","type":"bar","stack":"总量","label":{"normal":{"show":false}},"itemStyle":{"normal":{"barBorderColor":"#0275d8","color":"#0275d8"},"emphasis":{"barBorderColor":"#008dd8","color":"#008dd8"}},"data":[1546289640000,1546442700000],"tooltip":{"trigger":"item"}},{"name":"空闲时间","type":"bar","stack":"总量","itemStyle":{"normal":{"barBorderColor":"rgba(0,0,0,0)","color":"rgba(0,0,0,0)"},"emphasis":{"barBorderColor":"rgba(0,0,0,0)","color":"rgba(0,0,0,0)"}},"data":[1546316580000,1546443600000],"tooltip":{"trigger":"item","formatter":"无"}},{"name":"游戏时间","type":"bar","stack":"总量","label":{"normal":{"show":false}},"itemStyle":{"normal":{"barBorderColor":"#0275d8","color":"#0275d8"},"emphasis":{"barBorderColor":"#008dd8","color":"#008dd8"}},"data":[1546316700000,1546449900000],"tooltip":{"trigger":"item"}}]
   };
   
   ```
   
   3.1.2 的展示效果如下:
   ![image](https://user-images.githubusercontent.com/8022923/67485385-8482b380-f69c-11e9-86dd-4080874ca3f9.png)
   
   4.4 的效果展示如下:
   ![image](https://user-images.githubusercontent.com/8022923/67485401-8fd5df00-f69c-11e9-9fe7-0a81f9caff1c.png)
   
   这是算是一个bug吗?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org