zakodium-oss / react-plot

Library of React components to render SVG 2D plots. You can check the story book https://react-plot.pages.dev/ or have a look to the extensive documentation
https://react-plot.zakodium.com
MIT License
12 stars 6 forks source link

Add default style in rangeSeries #372

Closed wadjih-bencheikh18 closed 2 years ago

wadjih-bencheikh18 commented 2 years ago

We need to add default style to rangeSeries (stroke, fill ...)

nothing display here

<Plot width={300} height={300}>
      <RangeSeries
        data={[
          { x: 1, y1: 1, y2: 5 },
          { x: 2, y1: 2, y2: 4 },
          { x: 3, y1: 3, y2: 4 },
          { x: 4, y1: 2, y2: 4 },
          { x: 5, y1: 1, y2: 5 },
        ]}
      />
</Plot>
lpatiny commented 2 years ago

By default use the series colors with opacity: 0.5 for the surface (fill). Keep no-stroke.