Resolve chart widget imports for Ziran builds

This commit is contained in:
waozi committed 2026-09-27 01:38:12 -03:00
1 parent 879df12af2
commit 262f2871d4
2 files changed
+4 -6

No files matched your search

+2 -3
View File
@@ -1,6 +1,5 @@
using UI :: #import "Kryon";
using PlotMode;
using PlotWidget :: #import "PlotWidget";
PriceBar :: struct {
timestamp: s64
@@ -178,7 +177,7 @@ CandleChart :: (session: Session, props: CandleChartProps,
bars: []PriceBar, range: CandleRange) {
background: PlotProps
background.key = props.key
background.mode = cast(PlotMode)PlotLines
background.mode = cast(PlotMode)0
background.bounds = props.bounds
background.semantic_label = props.semantic_label
empty: [1]float32
+2 -3
View File
@@ -1,6 +1,5 @@
using UI :: #import "Kryon";
using PlotMode;
using PlotWidget :: #import "PlotWidget";
ChartRange :: struct {
low: float32
@@ -42,7 +41,7 @@ LineChart :: (session: Session, props: LineChartProps,
values: []float32, chart_range: ChartRange) {
background: PlotProps
background.key = props.key
background.mode = cast(PlotMode)PlotLines
background.mode = cast(PlotMode)0
background.bounds = props.bounds
background.semantic_label = props.semantic_label
Plot(session, background, values[0:0])