mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
blog post new release (#2712)
* blog post new release * update words * Update docs/blog/posts/release0-27-0.md Co-authored-by: Dave Pearson <davep@davep.org> --------- Co-authored-by: Dave Pearson <davep@davep.org>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
from math import sin
|
||||
|
||||
from textual.app import App, ComposeResult
|
||||
from textual.widgets._sparkline import Sparkline
|
||||
|
||||
@@ -6,7 +8,7 @@ class SparklineColorsApp(App[None]):
|
||||
CSS_PATH = "sparkline_colors.css"
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
nums = [10, 2, 30, 60, 45, 20, 7, 8, 9, 10, 50, 13, 10, 6, 5, 4, 3, 7, 20]
|
||||
nums = [abs(sin(x / 3.14)) for x in range(0, 360 * 6, 20)]
|
||||
yield Sparkline(nums, summary_function=max, id="fst")
|
||||
yield Sparkline(nums, summary_function=max, id="snd")
|
||||
yield Sparkline(nums, summary_function=max, id="trd")
|
||||
|
||||
Reference in New Issue
Block a user