Closed wstr27 closed 6 months ago
Hi @wstr27 -
I colored it like this in the CSS:
Sparkline > .sparkline--max-color {
color: #869fd9;
}
Sparkline > .sparkline--min-color {
color: #384c7a;
}
To use Sparkline, you need to do this:
from textual.widgets import Sparkline
def compose(self):
yield Sparkline([])
To update it like I do so it looks live, I do:
sparkline = self.query_one(Sparkline)
sparkline.data = [1,5,6,8,10]
sparkline.refresh()
Please help me with this question. I try to find answer, but can do it