@moderneinc/react-charts 1.2.0-next.2f2ee2 → 1.2.0-next.3cc141
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.
|
@@ -4,6 +4,8 @@ export type ChronoCategory = {
|
|
|
4
4
|
id: string;
|
|
5
5
|
label: string;
|
|
6
6
|
color: string;
|
|
7
|
+
/** Optional dash pattern for the stroke (e.g., '5 5' for dashed lines with no fill) */
|
|
8
|
+
strokeDasharray?: string;
|
|
7
9
|
parliamentMapping?: {
|
|
8
10
|
isSpecialCategory: boolean;
|
|
9
11
|
hatchPattern?: string;
|
|
@@ -50,6 +52,13 @@ export type ChronoChartProps = {
|
|
|
50
52
|
showGrid?: boolean;
|
|
51
53
|
enableAnimation?: boolean;
|
|
52
54
|
animationDuration?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Disable the timeline in historical mode.
|
|
57
|
+
* By default, the timeline is always shown in historical mode, even when there are no events.
|
|
58
|
+
* Set this to true to hide the timeline.
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
disableTimeline?: boolean;
|
|
53
62
|
formatDate?: (timestamp: number) => string;
|
|
54
63
|
formatValue?: (value: number) => string;
|
|
55
64
|
onAnimationStateChange?: (isAnimating: boolean) => void;
|
|
@@ -3,6 +3,12 @@ export type TimelineEvent = {
|
|
|
3
3
|
date: Date;
|
|
4
4
|
timestamp: number;
|
|
5
5
|
eventName: string;
|
|
6
|
+
/**
|
|
7
|
+
* Optional color for the event marker.
|
|
8
|
+
* If not provided, defaults to #2F42FF (Digital Blue 500).
|
|
9
|
+
* Accepts any valid CSS color string.
|
|
10
|
+
*/
|
|
11
|
+
color?: string;
|
|
6
12
|
[key: string]: unknown;
|
|
7
13
|
};
|
|
8
14
|
export type TimelineSelection = {
|