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/11/09 12:26:33 UTC

[GitHub] [echarts] MalteSchledjewski opened a new issue, #17894: step start/end seems to be swapped for category axis [Bug]

MalteSchledjewski opened a new issue, #17894:
URL: https://github.com/apache/echarts/issues/17894

   ### Version
   
   5.4.0 and 5.5.0-dev.20221109
   
   ### Link to Minimal Reproduction
   
   https://jsfiddle.net/mr5vxn9L/
   
   ### Steps to Reproduce
   
   
   
   ```
     option = {
       tooltip: {
         trigger: "axis",
         position: function (pt) {
           return [pt[0], "10%"];
         },
         axisPointer: {
           axis: "x"
         }
       },
       legend: {
         type: "scroll"
       },
       title: {
         text: "Stream Values",
       },
       toolbox: {
         feature: {
           dataZoom: {
             yAxisIndex: "none",
           },
           restore: {},
           saveAsImage: {},
         },
       },
       xAxis: {
         type: "time",
         boundaryGap: false,
       },
       yAxis: [
         {
           type: "value",
           boundaryGap: [0, "5%"],
         },
         {
           type: "category",
           data: ["false", "true"],
           name: "boolean",
         },
       ],
       series: [
         {
           name: "value end",
           type: "line",
           symbol: "emptyCircle",
           step: "end",
           data: [
             [1, 10.0],
             [2, 2.0],
             [3, 10.0],
           ],
         },
         {
           name: "value start",
           type: "line",
           symbol: "emptyCircle",
           step: "start",
           data: [
             [1, 10.0],
             [2, 2.0],
             [3, 10.0],
           ],
         },
   
         {
           name: "category end",
           type: "line",
           symbol: "emptyCircle",
           step: "end",
           yAxisIndex: 1,
           data: [
             [4, "true"],
             [5, "false"],
             [6, "true"],
           ],
         },
   
         {
           name: "category start",
           type: "line",
           symbol: "emptyCircle",
           step: "start",
           yAxisIndex: 1,
           data: [
             [4, "true"],
             [5, "false"],
             [6, "true"],
           ],
         },
       ],
     };
   ```
   
   No interaction is required.
   
   ### Current Behavior
   
   `step: 'start'`/`step: 'end'` for a `category` axis are swapped in regards to how they behave on a `value` axis.
   
   For the series "category start" the steps are made at the end and for "category end" they are made at the beginning. 
   
   ### Expected Behavior
   
   `step: 'start'`/`step: 'end'` for a `category` axis should behave like for a `value` axis.
   
   For the series "category start" the steps should be made at the start and for "category end" they should be made at the end. 
   
   ### Environment
   
   ```markdown
   - OS: Windows 11
   - Browser: Chrome 107.0.5304.88
   ```
   
   
   ### Any additional comments?
   
   _No response_


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