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/07/26 19:16:25 UTC

[GitHub] littlenawi opened a new issue #8765: TimeLine

littlenawi opened a new issue #8765: TimeLine 
URL: https://github.com/apache/incubator-echarts/issues/8765
 
 
   ### One-line summary [问题简述]
   I need to create an employee timeline, is that possible?
   It should be layers of generating ranges of times in which the employee works and ranges in which they do not work.
   
   我需要创建员工时间表,这可能吗?
   它应该是生成员工工作时间范围的层次和不工作的范围。
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:  4.1.0.rc2
   + Browser version [浏览器类型和版本]: 67.0.3396.99
   + OS Version [操作系统类型和版本]: Windows 7 
   
   
   ### Expected behaviour [期望结果]
   ![image](https://user-images.githubusercontent.com/41758171/43283277-d6b715fc-90ee-11e8-8b68-41dbeb6c285b.png)
   
   
   ### ECharts option [ECharts配置项]
   
   app.title = 'Test';
   
   option = {
       title: {
           text: 'Time Line Test',
           left: 'center'
       },
       tooltip: {
           show: true
       },
       xAxis: [{
           type: 'time',
           min: new Date('2018/07/17 00:00:00'),
           max: new Date('2018/07/17 23:59:59'),
       }],
       yAxis: [{
           type: 'category',
           data: ['m1', 'm2', 'm3']
       }],
       series: [
   
           {
               type: 'bar',
               name: 'Time worked',
               stack: 'p',
               data: [{
                   name: 'Employee 1',
                   value: new Date('2018/07/17 01:00:00')
               }, {
                   name: 'Employee 1',
                   value: new Date('2018/07/17 02:20:00')
               }]
   
           },
   
           {
               type: 'bar',
               name: 'Time worked',
               stack: 'p',
               color: 'red',
               data: [{
                   name: 'Employee 2',
                   value: new Date('2018/08/17 01:00:00')
               }, {
                   name: 'Employee 2',
                   value: new Date('2018/08/20 02:20:00')
               }]
   
           }
   
       ]
   }
   
   
   
   
   

----------------------------------------------------------------
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