Yevgenium / weather-chart-card

Custom weather card with charts
MIT License
276 stars 81 forks source link

Is there anyway to change the line/bar color? #37

Closed ihaettypo closed 2 years ago

ihaettypo commented 4 years ago

Have tried to add configs to chartOptions with no lucks, what am I missing here?

            pointRadius: 0.0,
            pointHitRadius: 5.0,
            fill: false,
          },
          {
            label: this.ll('precip'),
            type: 'bar',
            data: precip,
            yAxisID: 'PrecipAxis',
            backgroundColor: "#e755ba", //added this line, nothing happended
          },
        ]
      },
      options: {
        animation: {
dskaplan commented 4 years ago

I've turned this code up and down and I think it is being set in the ha-graph, I am pretty sure it is being set here and I don't see a way to edit it from the JS file.

It's kind of odd because you change all colors except the line color. Same with the bar chart.