Plot

plot is a Ziran app package that depends on the separate Kryon package. Its candle chart draws OHLC bodies and wicks, volume, SMA 20, SMA 50, and EMA 20 over Kryon's generic Plot surface. ChartMarker and CandleMarkers add dated, clickable markers while leaving each marker's meaning to the caller. It also has a simple line chart. Both accept caller-owned values and colors; market data, networking, price formatting, and time labels stay in the application.

Install the Ziran launcher once with make install-user in Ziran, then run ziran fetch and make build here. make run opens a small demo on the Cairo backend; make check checks the source and runs the nonvisual indicator test. The checked-in ziran.lock pins both Ziran and Kryon to exact commits. Plot exports src/module.zi for other packages. That module re-exports Plot's charts and Kryon's public UI surface; app code can use using Charts :: #import "plot";.

To add Plot to another Ziran project, run:

ziran add kryonlabs/plot

Then import its public module:

using Charts :: #import "plot";

The package exports PriceBar, CandleChartProps, CandleChart, CandleRangeFor, ChartMarker, CandleMarkers, SMAAt, EMAAt, and the line chart API. Ziran locks Plot and Kryon to exact commits. No source links or copied chart files are needed in a consuming package. Run ziran update to refresh every dependency in a project, or ziran update kryon in this package to refresh only Kryon.

ATR currently uses source links while its older project layout is migrated to a Ziran package manifest. Other packages can use the dependency directly.

S
Description
Chart widgets for desktop applications.
Readme
196 KiB
0 Stars 1 Watchers 0 Forks
Languages
Ziran 93.2%
Python 3.8%
Makefile 3%