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/08/07 04:41:24 UTC

[GitHub] [echarts] ycshian opened a new issue #15490: dataset.transform-filter. type = 'filter'设置失效

ycshian opened a new issue #15490:
URL: https://github.com/apache/echarts/issues/15490


   ### Version
   5.1.2
   
   ### Steps to reproduce
   ```javascript
   import {
     ToolboxComponent,
     TitleComponent,
     TooltipComponent,
     LegendComponent,
     DatasetComponent,
     GraphicComponent,
     GridComponent,
     VisualMapComponent,
     MarkAreaComponent
   } from 'echarts/components';
   import {
     BarChart,
     PieChart,
     LineChart
   } from 'echarts/charts';
   import {
     CanvasRenderer
   } from 'echarts/renderers';
   echarts.use(
     [BarChart, PieChart, LineChart, ToolboxComponent, TitleComponent, TooltipComponent, LegendComponent, DatasetComponent, GraphicComponent, GridComponent, CanvasRenderer, VisualMapComponent, MarkAreaComponent]
   );
    // 初始化echartInstance对象
       initChart() {
         this.chartInstance = this.$echarts.init(this.$refs.currentOilProdChart)
         this.chartShowLoading()
         this.updateChart()
       },
       // 更新图表
       updateChart() {
         const option = {
           dataset: [
             {
               source: [
                 ['Product', 'Sales', 'Price', 'Year'],
                 ['Cake', 123, 32, 2011],
                 ['Cereal', 231, 14, 2011],
                 ['Tofu', 235, 5, 2011],
                 ['Dumpling', 341, 25, 2011],
                 ['Biscuit', 122, 29, 2011],
                 ['Cake', 143, 30, 2012],
                 ['Cereal', 201, 19, 2012],
                 ['Tofu', 255, 7, 2012],
                 ['Dumpling', 241, 27, 2012],
                 ['Biscuit', 102, 34, 2012],
                 ['Cake', 153, 28, 2013],
                 ['Cereal', 181, 21, 2013],
                 ['Tofu', 395, 4, 2013],
                 ['Dumpling', 281, 31, 2013],
                 ['Biscuit', 92, 39, 2013],
                 ['Cake', 223, 29, 2014],
                 ['Cereal', 211, 17, 2014],
                 ['Tofu', 345, 3, 2014],
                 ['Dumpling', 211, 35, 2014],
                 ['Biscuit', 72, 24, 2014]
               ]
             },
             {
               transform: {
                 type: 'filter',
                 config: { dimension: 'Year', value: 2011 }
               }
             },
             {
               transform: {
                 type: 'filter',
                 config: { dimension: 'Year', value: 2012 }
               }
             },
             {
               transform: {
                 type: 'filter',
                 config: { dimension: 'Year', value: 2013 }
               }
             }
           ],
           series: [
             {
               type: 'pie',
               radius: 50,
               center: ['50%', '25%'],
               datasetIndex: 1
             },
             {
               type: 'pie',
               radius: 50,
               center: ['50%', '50%'],
               datasetIndex: 2
             },
             {
               type: 'pie',
               radius: 50,
               center: ['50%', '75%'],
               datasetIndex: 3
             }
           ],
   
           // Optional. Only for responsive layout:
           media: [
             {
               query: { minAspectRatio: 1 },
               option: {
                 series: [
                   { center: ['25%', '50%'] },
                   { center: ['50%', '50%'] },
                   { center: ['75%', '50%'] }
                 ]
               }
             },
             {
               option: {
                 series: [
                   { center: ['50%', '25%'] },
                   { center: ['50%', '50%'] },
                   { center: ['50%', '75%'] }
                 ]
               }
             }
           ]
         }
         this.chartInstance.hideLoading()
         this.chartInstance.setOption(option)
       },
   ```
   
   ### What is expected?
   希望 dataset.transform-filter. type = 'filter'设置成功
   
   ### What is actually happening?
   "Error: Can not find transform on type "filter"
   
   <!-- 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] ycshian closed issue #15490: dataset.transform-filter. type = 'filter'设置失效

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


   


-- 
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 #15490: dataset.transform-filter. type = 'filter'设置失效

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






-- 
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 commented on issue #15490: dataset.transform-filter. type = 'filter'设置失效

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


   Didn't reproduce, could you try on [make a pie](https://www.makeapie.com/explore.html)


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