Gauge Chart

Hi everybody

I want to implement a new State Card, that shows a Gauge Chart.

I found here a really nice Chart. I implementet the following code to a html Document.

<script src="raphael-2.1.4.min.js"></script>
<script src="justgage.js"></script>

<div id="gauge"></div>

<script>
  var g = new JustGage({
    id: "gauge",
    value: 67,
    min: 0,
    max: 100,
    title: "Leistung [kWh]"
  });
</script>

And it shows following picture as i wanted:

image

But how can i implement it as a State Card in Home Assistant. I’m trying it now for hours but i don’t find the solution. Is there anywhere a solution with a diffrent diagram that could help me, how i have to do it with Polymer or has somebody the solution?

Thanks for your help.