VisActor / VChart

VChart, more than just a cross-platform charting library, but also an expressive data storyteller.
https://www.visactor.io/vchart
MIT License
994 stars 72 forks source link

[Bug] invalidType not working in line chart #3238

Open youngwinds opened 1 month ago

youngwinds commented 1 month ago

Version

1.2.4

Link to Minimal Reproduction

1.2.4

Steps to Reproduce

2, 8 未连接;

const spec = {
  type: 'line',
  invalidType: 'link',
  data: {
    values: [
      {
        time: '1:00',
        value: null
      },
      {
        time: '2:00',
        value: 8
      },
      {
        time: '4:00',
        value: null
      },
      {
        time: '6:00',
        value: null
      },
      {
        time: '8:00',
        value: 14
      },
      {
        time: '10:00',
        value: null
      },
      {
        time: '12:00',
        value: 17
      },
      {
        time: '14:00',
        value: null
      },
      {
        time: '16:00',
        value: 16
      },
      {
        time: '18:00',
        value: null
      }
    ]
  },
  xField: 'time',
  yField: 'value'
};

const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();

// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;

Current Behavior

image

Expected Behavior

![Uploading image.png…]()

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

xile611 commented 1 month ago

vrender 底层渲染有问题