Skip to content

[Bug] Scatter chart data points lost one. #18656

@katherinebai

Description

@katherinebai

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.

Click to view the full demo code
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

Expected Behavior

image

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions