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 2022/02/25 08:55:51 UTC

[GitHub] [echarts] iceatlas opened a new issue #16583: [Feature] brush 选框触发方式问题

iceatlas opened a new issue #16583:
URL: https://github.com/apache/echarts/issues/16583


   ### What problem does this feature solve?
   
   目前echarts支持通过某个属性设置brush吗,现在的方式是需要有个工具栏,然后点击工具栏之后才能框选。能直接就进行框选么?
   之前有开发者提过这个问题,不过已经自动closed了,详见:https://github.com/apache/echarts/issues/9214
   想问下后续会支持该功能吗?
   
   ### What does the proposed API look like?
   
   ```js
   backgroundColor: '#eee',
   legend: {
       data: ['bar', 'bar2', 'bar3', 'bar4'],
       align: 'left',
       left: 10
   },
   brush: {
       toolbox: ['lineX', 'clear'],
       xAxisIndex: 0
   },
   tooltip: {},
   xAxis: {
       data: xAxisData,
       name: 'X Axis',
       silent: false,
       axisLine: {onZero: true},
       splitLine: {show: false},
       splitArea: {show: false}
   },
   yAxis: {
   
   },
   grid: {
       left: 100
   },
   series: [
       {
           name: 'bar',
           type: 'line',
           stack: 'one',
           itemStyle: itemStyle,
           data: data1
       }
   ]
   ```
   


-- 
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] FengHuangDong commented on issue #16583: [Feature] brush 选框触发方式问题

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


   @iceatlas 
   myChart.dispatchAction({
         type: "takeGlobalCursor",
         key: "brush",
         brushOption: {
           brushType: xxx,
         },
       });
   


-- 
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] FengHuangDong edited a comment on issue #16583: [Feature] brush 选框触发方式问题

Posted by GitBox <gi...@apache.org>.
FengHuangDong edited a comment on issue #16583:
URL: https://github.com/apache/echarts/issues/16583#issuecomment-1073554074


   @iceatlas 
   ```ts
   myChart.dispatchAction({
         type: "takeGlobalCursor",
         key: "brush",
         brushOption: {
           brushType: xxx,
         },
       });
   ```


-- 
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 #16583: [Feature] brush 选框触发方式问题

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


   @iceatlas It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Feature] brush marquee triggering method problem
   
   **BODY**
   
   ### What problem does this feature solve?
   
   At present, echarts support setting rush through a certain property, the current way is that you need to have a toolbar, and then click the toolbar to select the box. Can I just make a box selection?
   Developers have asked this question before, but it has been automatically closed, see: https://github.com/apache/echarts/issues/9214
   Would you like to ask if this feature will be supported in the future?
   
   ### What does the proposed API look like?
   
   ```js
   backgroundColor: '#eee',
   legend: {
       data: ['bar', 'bar2', 'bar3', 'bar4'],
       align: 'left',
       left: 10
   },
   brush: {
       toolbox: ['lineX', 'clear'],
       xAxisIndex: 0
   },
   tooltip: {},
   xAxis: {
       data: xAxisData,
       name: 'X Axis',
       silent: false,
       axisLine: {onZero: true},
       splitLine: {show: false},
       splitArea: {show: false}
   },
   yAxis: {
   
   },
   grid: {
       left: 100
   },
   series: [
       {
           name: 'bar',
           type: 'line',
           stack: 'one',
           itemStyle: itemStyle,
           data: data1
       }
   ]
   ```
   </details>


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