mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
@@ -9,7 +9,7 @@ data = [random.expovariate(1 / 3) for _ in range(1000)]
|
||||
|
||||
|
||||
class SparklineSummaryFunctionApp(App[None]):
|
||||
CSS_PATH = "sparkline.css"
|
||||
CSS_PATH = "sparkline.tcss"
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Sparkline(data, summary_function=max) # (1)!
|
||||
|
||||
Reference in New Issue
Block a user