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/03/25 07:33:31 UTC

[GitHub] [echarts] leavebody opened a new issue #16745: [Feature] Support Default value in y-axis for parallelAxis graph

leavebody opened a new issue #16745:
URL: https://github.com/apache/echarts/issues/16745


   ### What problem does this feature solve?
   
   平行坐标图中,如果一个series中的某值缺失,折线会跳过对应的axis。这导致我们不容易判断这个值是缺失的还是正好等于折线与该轴的交点值。对于枚举类型,可以使用一个特殊的枚举值来标明缺失值,但是对于数值类型,没有办法合理地处理缺失值。
   希望可以给y-axis一个单独的tick用于缺失值的折线经过它。
   In parallelAxis graph, if a value in a series is missing, the line skips the corresponding axis.  This makes it difficult to tell whether this value is missing or exactly equal to the value of the intersection of the polyline and the axis. For enum types, a special enum value can be used to indicate missing values, but for numeric types, there is no way to handle missing values sensibly.
   
   ### What does the proposed API look like?
   
   parallelAxis: [                  
           {dim: 0, name: schema[0].text},
           {dim: 1, name: schema[1].text, 
              emptyValueHandling: {
                       method: "extraTick",         // or "skip", for the current behavior
                       extraTickName: "default",
                  }
           }
          ...
       ]
    series: [                        
           {
               name: '北京',
               type: 'parallel',         
               data: [
                   [1,  ,  9,   56,  0.46,  18,  6,  '良'], // empty value in the 2nd axis will go through an extra tick named "default"
                   [2,  25,  11,  21,  0.65,  34,  9,  '优'],
                   ...
               ]
           },
   ...
   ]


-- 
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 #16745: [Feature] Support Default value in y-axis for parallelAxis graph

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


   @leavebody 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>
   
   **BODY**
   
   ### What problem does this feature solve?
   
   In a parallel coordinate graph, if a value in a series is missing, the polyline skips the corresponding axis. This makes it difficult to tell whether this value is missing or exactly equal to the value of the intersection of the polyline and the axis. For enum types, a special enum value can be used to indicate missing values, but for numeric types, there is no way to properly handle missing values.
   Hopefully it's possible to give the y-axis a separate tick for the polyline with missing values ​​to go through it.
   In parallelAxis graph, if a value in a series is missing, the line skips the corresponding axis. This makes it difficult to tell whether this value is missing or exactly equal to the value of the intersection of the polyline and the axis. For enum types , a special enum value can be used to indicate missing values, but for numeric types, there is no way to handle missing values ​​sensibly.
   
   ### What does the proposed API look like?
   
   parallelAxis: [
           {dim: 0, name: schema[0].text},
           {dim: 1, name: schema[1].text,
              emptyValueHandling: {
                       method: "extraTick", // or "skip", for the current behavior
                       extraTickName: "default",
                  }
           }
          ...
       ]
    series: [
           {
               name: 'Beijing',
               type: 'parallel',
               data: [
                   [1, , 9, 56, 0.46, 18, 6, 'good'], // empty value in the 2nd axis will go through an extra tick named "default"
                   [2, 25, 11, 21, 0.65, 34, 9, 'excellent'],
                   ...
               ]
           },
   ...
   ]
   </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