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 2020/11/05 10:07:24 UTC

[GitHub] [incubator-echarts] dirslashls opened a new issue #13549: Brushlink across datasets doesn't work correctly if there are null values

dirslashls opened a new issue #13549:
URL: https://github.com/apache/incubator-echarts/issues/13549


   ### Version
   5.0.0-beta.2
   
   ### Steps to reproduce
   Use the following where two bar series with two different datasets are setup. They have the same set of categories. However, the value for Monday on the top series is null which results in incorrect brush linking. 
   ```
   option = {
       brush: {
           brushLink: [0,1],
           xAxisIndex: [0,1]
       },
       grid: [
           { bottom: '50%' },
           { top: '50%' }],
       xAxis: [{
           type: 'category',
           gridIndex: 0,
           data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
       },{
           type: 'category',
           gridIndex: 1,
           data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
       }],
       yAxis: [{
           type: 'value',
           gridIndex: 0
       },{
           type: 'value',
           gridIndex: 1
       }],
       dataset: [
           {
               source: [
                   ['Mon',null],
                   ['Tue',100],
                   ['Wed',0],
                   ['Thu',55]
               ]
           },{
               source: [
                   ['Mon',10],
                   ['Tue',0],
                   ['Wed',20],
                   ['Thu',25],
               ]
           }],
       series: [{
           name: "Count",
           datasetIndex: 0,
           encode: { x: 0, y: 1 },
           type: 'bar',
           xAxisIndex: 0,
           yAxisIndex: 0,
           showBackground: true,
           backgroundStyle: {
               color: 'rgba(220, 220, 220, 0.8)'
           }
       },{
           name: "Count",
           datasetIndex: 1,
           encode: { x: 0, y: 1 },
           type: 'bar',
           xAxisIndex: 1,
           yAxisIndex: 1,
           showBackground: true,
           backgroundStyle: {
               color: 'rgba(220, 220, 220, 0.8)'
           }
       }]
   };
   ```
   
   ### What is expected?
   Brush link should link the same categories.
   
   ### What is actually happening?
   It is offset by one (because of the null value).
   
   ---
   I briefly traced it to getRawIndex which uses some sort of indexing if present causing this problem.
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. 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.

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] [incubator-echarts] echarts-bot[bot] commented on issue #13549: Brushlink across datasets doesn't work correctly if there are null values

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


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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

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