@cascivo/charts 0.3.4 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 urbanisierung
3
+ Copyright (c) cascivo contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  ---
18
18
 
19
- Accessible, signal-driven chart library for cascivo — AreaChart, BarChart, LineChart, Sparkline, Heatmap, and more. All charts are keyboard-navigable with `aria-live` tooltips. CVD-safe palettes (Okabe-Ito, oklch) verified in CI across all 14 themes.
19
+ Accessible, signal-driven chart library for cascivo — AreaChart, BarChart, LineChart, Sparkline, Heatmap, and more. All charts are keyboard-navigable with `aria-live` tooltips. CVD-safe palettes (Okabe-Ito, oklch) verified in CI across all 12 themes.
20
20
 
21
21
  ## Install
22
22
 
package/dist/index.d.ts CHANGED
@@ -1928,9 +1928,21 @@ interface CandlestickProps {
1928
1928
  tooltip?: boolean;
1929
1929
  className?: string;
1930
1930
  plain?: boolean;
1931
+ /** Reference lines, shaded bands, and markers over the plot (e.g. a last-price rule). */
1932
+ annotations?: readonly Annotation[];
1933
+ /** Show a keyboard-operable Brush below the plot to subset (zoom) the candles to a window. */
1934
+ brush?: boolean;
1935
+ /** Show a DataZoom slider below the plot — a Brush whose body also pans the window. */
1936
+ dataZoom?: boolean;
1937
+ /** Enable in-plot wheel/drag/keyboard zoom-pan (`+`/`-`/`0`) over the candle index window. */
1938
+ zoom?: boolean;
1939
+ /** Connect this chart to others sharing the same id — they mirror the zoom window. */
1940
+ syncId?: string;
1941
+ /** Tooltip trigger: `item` (default, nearest candle) or `axis` (crosshair + OHLC at hovered x). */
1942
+ tooltipMode?: 'item' | 'axis';
1931
1943
  }
1932
1944
  declare function Candlestick({
1933
- data,
1945
+ data: rawData,
1934
1946
  title,
1935
1947
  description,
1936
1948
  width: fixedWidth,
@@ -1941,7 +1953,13 @@ declare function Candlestick({
1941
1953
  volume,
1942
1954
  tooltip,
1943
1955
  className,
1944
- plain
1956
+ plain,
1957
+ annotations,
1958
+ brush,
1959
+ dataZoom,
1960
+ zoom,
1961
+ syncId,
1962
+ tooltipMode
1945
1963
  }: CandlestickProps): import("react").JSX.Element;
1946
1964
  interface PolarDatum {
1947
1965
  label: string;