arnthor3 / react-liquidchart

A React d3 liquid chart
Other
9 stars 0 forks source link

How to transform it into a thermometer ? #1

Open TheBlusky opened 7 years ago

TheBlusky commented 7 years ago

I love the feel and looks of this liquid gauge. I would like to transform it, with another shape, maybe a vertical rectangle, so it would looks like a thermometer.

Any idea how to do this ?

Thanks !

arnthor3 commented 7 years ago

Thank you, not my design though.

I actually planned for setting different shapes in the code. I did a couple of shapes, triangle, rectangle and a funnel, but I did not have the time to finish that. I will try to commit some of those changes when I get the chance.

But if you are in a rush you can overwrite the getDimensions in dimensions.js in the helper folder.

Hope that helps.