You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "katherinebai (via GitHub)" <gi...@apache.org> on 2023/05/23 06:20:59 UTC

[GitHub] [echarts] katherinebai opened a new issue, #18656: [Bug] Scatter chart data points lost one.

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

   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=line-simple&version=5.4.2
   
   ### Steps to Reproduce
   
   The following series data has five points, but now only show four points. And version 4.7 does exist this issue.
   
   option = {
      "series":[
         {
            "name":"整数",
            "type":"scatter",
            "data":[
               {
                  "value":[
                     "2017-12-31T16:00:00.000Z",
                     1
                  ]
               },
               {
                  "value":[
                     "2018-01-01T16:00:00.000Z",
                     3
                  ]
               },
               {
                  "value":[
                     "2018-01-02T16:00:00.000Z",
                     2
                  ]
               },
               {
                  "value":[
                     "2018-01-03T16:00:00.000Z",
                     4
                  ]
               },
               {
                  "value":[
                     "2018-01-04T16:00:00.000Z",
                     5
                  ]
               }
            ],
            "itemStyle":{
               "color":"#4F81BD",
               "opacity":1,
               "borderColor":"#4F81BD",
               "borderWidth":1,
               "borderType":"solid"
            },
            "showAllSymbol":true,
            "connectNulls":false,
            "lineStyle":{
               "color":"#4F81BD",
               "width":1,
               "type":"solid"
            },
            "symbol":"circle"
         }
      ],
      "xAxis":{
         "show":true,
         "type":"time",
         "axisLine":{
            "show":true,
            "lineStyle":{
               "color":"#000000",
               "width":1,
               "type":"solid"
            }
         },
         "axisLabel":{
            "show":true,
            "rotate":0,
            "textStyle":{
               "color":"#000000",
               "fontFamily":"'SimSun'",
               "fontSize":14.67,
               "fontStyle":"Normal",
               "fontWeight":400
            }
         },
         "splitLine":{
            "show":false
         }
      },
      "yAxis":{
         "show":true,
         "type":"value",
         "axisLine":{
            "show":true,
            "lineStyle":{
               "color":"#000000",
               "width":1,
               "type":"solid"
            }
         },
         "axisLabel":{
            "show":true,
            "rotate":0,
            "textStyle":{
               "color":"#000000",
               "fontFamily":"'SimSun'",
               "fontSize":14.67,
               "fontStyle":"Normal",
               "fontWeight":400
            }
         },
         "max":6,
         "min":0,
         "splitNumber":6
      }
   };
   
   ### Current Behavior
   
   ![image](https://github.com/apache/echarts/assets/36399340/2bd820d4-2daa-4997-8927-9ea7cc7a600f)
   
   
   ### Expected Behavior
   
   ![image](https://github.com/apache/echarts/assets/36399340/24a9e34f-cdbf-4f38-8033-ee691188d488)
   
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### 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


[GitHub] [echarts] plainheart commented on issue #18656: [Bug] Scatter chart data points lost one.

Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart commented on issue #18656:
URL: https://github.com/apache/echarts/issues/18656#issuecomment-1558947731

   It's clipped due to the tiny offset. Try to set [`clip: false`](https://echarts.apache.org/option.html#series-scatter.clip) to disable the default clipping.


-- 
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] katherinebai commented on issue #18656: [Bug] Scatter chart data points lost one.

Posted by "katherinebai (via GitHub)" <gi...@apache.org>.
katherinebai commented on issue #18656:
URL: https://github.com/apache/echarts/issues/18656#issuecomment-1558665011

   I add the max and min for xAxis, the bug still occur.


-- 
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] helgasoft commented on issue #18656: [Bug] Scatter chart data points lost one.

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18656:
URL: https://github.com/apache/echarts/issues/18656#issuecomment-1558633050

   yes, looks like a bug. On **resize** the first or last point (or both) may disappear.
   Workaround is to add min/max to xAxis:
   ```
   xAxis: {
       min: '2017-12-31T14:00:00.000Z',
       max: '2018-01-04T17:00:00.000Z'
   }


-- 
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] plainheart closed issue #18656: [Bug] Scatter chart data points lost one.

Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart closed issue #18656: [Bug] Scatter chart data points lost one.
URL: https://github.com/apache/echarts/issues/18656


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