Skip to content

unexpected shadow #3056

@hongbo-miao

Description

@hongbo-miao

Chart.js version 2.2.0

I am using spanGaps.

Check the jsfiddle.

  data: {
    labels: ['A', 'B', 'C', 'D', 'E', 'F', 'G'],
    datasets: [{
      label: 'Foo',
      data: [null, 2, 2, 2, 2, 2, null],
      spanGaps: true
    }]
  },

I expect it is like this:
No shadow between A and B.
No shadow between F and G.
image

But now it is like this:
No shadow between A and B which is correct.
The is a shadow between F and G, which is wrong.
image

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