Skip to content

Instantly share code, notes, and snippets.

@backcountrymountains
backcountrymountains / chart-colors.js
Last active October 24, 2019 15:00 — forked from thomasloven/chart-colors.js
Replace history graph colors in lovelace
// Add this to your lovelace resources as
// url: /local/chart-colors.js
// type: module
customElements.whenDefined('ha-chart-base').then(() => {
// Find the HaChartBase class
const HaChartBase = customElements.get('ha-chart-base');
// Write a new color list generator