Back to Gallery

VictoryLine with Null Data

<VictoryChart theme={VictoryTheme.material}>
  <VictoryLine
    data={[
      { x: 1, y: 1 },
      { x: 2, y: 3 },
      { x: 3, y: 5 },
      { x: 4, y: 2 },
      { x: 5, y: null },
      { x: 6, y: null },
      { x: 7, y: 6 },
      { x: 8, y: 7 },
      { x: 9, y: 8 },
      { x: 10, y: 12 }
    ]}
  />
</VictoryChart>