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 2021/11/04 07:05:12 UTC

[GitHub] [echarts] AkenClub opened a new issue #16010: 在API里找不到设置组间间隔,是没有这个功能吗?

AkenClub opened a new issue #16010:
URL: https://github.com/apache/echarts/issues/16010


   ### Version
   5.2.2
   
   ### Steps to reproduce
   如上这个效果,求助,代码设置如下:
   `
   ```
   const customSeries = []
   this.chartData.seriesData.forEach(item => {
   customSeries.push({
   name: item.name,
   type: 'bar',
   data: item.data,
   animationDuration,
   barWidth: 30,
   emphasis: {
   focus: 'series'
   }
   })
   })
   
     this.chart = echarts.init(this.$el, 'macarons')
     this.chart.setOption({
       title: {
         text: this.title
       },
       tooltip: {
         trigger: 'axis',
         showDelay: 10,
         axisPointer: { // 坐标轴指示器,坐标轴触发有效
           type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
         },
         textStyle: {
           color: '#fff'
         },
         formatter: (params) => {
           let sum = 0
           let mainTip = ''
           params.forEach((data, index) => {
             sum  = data.value
             mainTip  = (data.marker)   (data.seriesName   ':'   data.value)
             if (index !== params.length - 1) {
               mainTip  = '<br />'
             }
           })
           return `${params[0].axisValue}<br />总计:${sum}<br />${mainTip}`
         }
       },
       grid: {
         left: '0%',
         right: '1%',
         bottom: '2%',
         containLabel: true
       },
       xAxis: [{
         type: 'category',
         data: this.chartData.xAxisData,
         axisTick: {
           alignWithLabel: true
         }
       }],
       yAxis: [{
         type: 'value',
         axisTick: {
           show: false
         }
       }],
       legend: {
         left: 'right',
         top: '0%'
       },
       series: customSeries
     })
   ```
   `
   
   ### What is expected?
   ![image](https://user-images.githubusercontent.com/52781316/140271378-3011c931-e4c7-48a6-ba96-2bb1092df259.png)
   
   ### What is actually happening?
   没有API
   设置组间间隔![image](https://user-images.githubusercontent.com/52781316/140271378-3011c931-e4c7-48a6-ba96-2bb1092df259.png)
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   


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


[GitHub] [echarts] AkenClub commented on issue #16010: 在API里找不到设置组间间隔,是没有这个功能吗?

Posted by GitBox <gi...@apache.org>.
AkenClub commented on issue #16010:
URL: https://github.com/apache/echarts/issues/16010#issuecomment-960558317


   > 不支持这个设置
   好吧,谢谢您的回答
   


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


[GitHub] [echarts] Ovilia commented on issue #16010: 在API里找不到设置组间间隔,是没有这个功能吗?

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #16010:
URL: https://github.com/apache/echarts/issues/16010#issuecomment-960530434


   不支持这个设置


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #16010: 在API里找不到设置组间间隔,是没有这个功能吗?

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #16010:
URL: https://github.com/apache/echarts/issues/16010#issuecomment-960505376






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


[GitHub] [echarts] susiwen8 closed issue #16010: 在API里找不到设置组间间隔,是没有这个功能吗?

Posted by GitBox <gi...@apache.org>.
susiwen8 closed issue #16010:
URL: https://github.com/apache/echarts/issues/16010


   


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