You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "zhangzunke (via GitHub)" <gi...@apache.org> on 2023/06/17 04:22:09 UTC

[GitHub] [echarts] zhangzunke commented on issue #18777: [Bug] Markline can't be shown in React

zhangzunke commented on issue #18777:
URL: https://github.com/apache/echarts/issues/18777#issuecomment-1595613165

   ```
   option = {
     title: {
       text: 'Stacked Line'
     },
     tooltip: {
       trigger: 'axis'
     },
     legend: {
       data: ['Email', 'Union Ads', 'Video Ads', 'Direct', 'Search Engine']
     },
     grid: {
       left: '3%',
       right: '4%',
       bottom: '3%',
       containLabel: true
     },
     toolbox: {
       feature: {
         saveAsImage: {}
       }
     },
     xAxis: {
       type: 'category',
       boundaryGap: false,
       data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
     },
     yAxis: {
       type: 'value'
     },
     series: [
       {
         name: 'Email',
         type: 'line',
         stack: 'Total',
         data: [120, 132, 101, 134, 90, 230, 210],
         markLine: {
               data: [{ name: 'xxxx', xAxis: 'Tue' }]
         },
       },
       {
         name: 'Union Ads',
         type: 'line',
         stack: 'Total',
         data: [220, 182, 191, 234, 290, 330, 310]
       },
       {
         name: 'Video Ads',
         type: 'line',
         stack: 'Total',
         data: [150, 232, 201, 154, 190, 330, 410]
       },
       {
         name: 'Direct',
         type: 'line',
         stack: 'Total',
         data: [320, 332, 301, 334, 390, 330, 320]
       },
       {
         name: 'Search Engine',
         type: 'line',
         stack: 'Total',
         data: [820, 932, 901, 934, 1290, 1330, 1320]
       }
     ]
   };
   ```


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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