# Custom Widget ECharts Bar

**URL:** <https://community.openhab.org/t/custom-widget-echarts-bar/160978>\
**Category:** UIs\
**Tags:** charts\
**Created:** [December 19, 2024, 3:58pm UTC](https://community.openhab.org/t/custom-widget-echarts-bar/160978 "2024-12-19T15:58:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![JustinG](https://community.openhab.org/user_avatar/community.openhab.org/justing/32/55948_2.png) [@JustinG](https://community.openhab.org/u/JustinG)\
**Post date:** [December 19, 2024, 4:53pm UTC](https://community.openhab.org/t/custom-widget-echarts-bar/160978/3 "2024-12-19T16:53:50Z")

</div>

If you already have the rest of the widget constructed out of svg components, what benefit do you get from incorporating the chart for this? For a thermometer, you only need one value which presumably is already stored in an item if you are also getting that information from a chart, and you can just use that item value to scale an appropriate object within the svg.

Here’s a widget that does something similar:

> [@Tank widget](https://community.openhab.org/t/tank-widget/154288):
>
> [TankBlue] A tank is a visual representation of a container containing a fluid. It could be used for a rainwater tank or for the ink levels in printer cartridges or tanks. This widget is the result of some experiments [here](https://community.openhab.org/t/tank-component/154060), where I tried different techniques to make a widget for my Epson printer. @JustinG encouraged me to try different approaches. This was the best result. It is a dynamic svg image. It contains a path for the outline of the tank and a linear gradient for the fill. The fill ele…

---

_[View the full topic](https://community.openhab.org/t/custom-widget-echarts-bar/160978)._
