Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
304 views
in Technique[技术] by (71.8m points)

javascript - Chart with top rounded bars and average line in react native

I want to create charts displayed in the image below.

whenever I will click a particular bar value list value, should get highlighted bar top corner should be rounded need to display average line over the bars in dashed view

I'm not able to find suitable lib with same design pattern.

Please see the design in the link


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

for rounded view you have to give a style. I guess it will work.

   style={{
      margin: 10,
      height: 200,
      width: 20,
      borderTopRightRadius: 10,//for rounded curve
      borderTopLeftRadius: 10,// for rounded curve.
      backgroundColor: "blue"
    }}

I made a demo please have a look,


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...