export default function Example()

in packages/showcase/plot/custom-scales.js [32:58]


export default function Example() {
  return (
    <XYPlot xType="linear" width={300} height={300}>
      <HorizontalGridLines />
      <VerticalGridLines />
      <XAxis title="X Axis" />
      <YAxis title="Y Axis" />
      <LineSeries
        data={[
          {x: 1, y: 3},
          {x: 2, y: 5},
          {x: 3, y: 15},
          {x: 4, y: 12}
        ]}
      />
      <LineSeries data={null} />
      <LineSeries
        data={[
          {x: 1, y: 10},
          {x: 2, y: 4},
          {x: 4, y: 2},
          {x: 5, y: 15}
        ]}
      />
    </XYPlot>
  );
}