@moderneinc/react-charts 1.2.0-next.867ab1 → 1.2.0-next.aa422f

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.
@@ -88,6 +88,11 @@ export type ChronoChartProps = {
88
88
  showTooltip?: boolean;
89
89
  /** Show background grid lines */
90
90
  showGrid?: boolean;
91
+ /**
92
+ * Color for axis labels (dates on x-axis, values on y-axis).
93
+ * @default undefined (inherits from SVG default, typically black)
94
+ */
95
+ axisLabelColor?: string;
91
96
  /** Enable animations when switching between modes */
92
97
  enableAnimation?: boolean;
93
98
  /** Duration of animations in milliseconds */
@@ -109,4 +114,10 @@ export type ChronoChartProps = {
109
114
  onTimelineReady?: (timeline: unknown) => void;
110
115
  /** Callback for animation progress updates */
111
116
  onAnimationProgress?: (progress: number, stage: string) => void;
117
+ /**
118
+ * Color for brush selection overlay in historical mode.
119
+ * Used for both the selection area and drag handles.
120
+ * @default '#69b3a2'
121
+ */
122
+ brushColor?: string;
112
123
  };
@@ -16,6 +16,7 @@ type UseMorphChartProps = {
16
16
  timeRange?: [number, number];
17
17
  showGrid?: boolean;
18
18
  showAxes?: boolean;
19
+ axisLabelColor?: string;
19
20
  formatDate?: (timestamp: number) => string;
20
21
  formatValue?: (value: number) => string;
21
22
  markers?: Array<{
@@ -49,8 +50,9 @@ type UseMorphChartProps = {
49
50
  showTimeline?: boolean;
50
51
  timelineHeight?: number;
51
52
  timelineOffset?: number;
53
+ brushColor?: string;
52
54
  };
53
- export declare const useMorphChart: ({ containerRef, data, categories, mode, width, height, margin, timeRange, showGrid, showAxes, formatDate, formatValue, markers, arcAngle, parliamentRadius, seatSize, animationDuration, onMorphComplete, onAnimationStateChange, onTimelineReady, onAnimationProgress, onHoveredDataChange, hoveredCategory: externalHoveredCategory, maxSeats, parliamentTimestamp, enableBrush, onTimeRangeChange, minAllowedTime: minAllowedTimeConstraint, maxAllowedTime: maxAllowedTimeConstraint, showScaleIndicator, reposPerSeat, timelineEvents, showTimeline, timelineHeight, timelineOffset }: UseMorphChartProps) => {
55
+ export declare const useMorphChart: ({ containerRef, data, categories, mode, width, height, margin, timeRange, showGrid, showAxes, axisLabelColor, formatDate, formatValue, markers, arcAngle, parliamentRadius, seatSize, animationDuration, onMorphComplete, onAnimationStateChange, onTimelineReady, onAnimationProgress, onHoveredDataChange, hoveredCategory: externalHoveredCategory, maxSeats, parliamentTimestamp, enableBrush, onTimeRangeChange, minAllowedTime: minAllowedTimeConstraint, maxAllowedTime: maxAllowedTimeConstraint, showScaleIndicator, reposPerSeat, timelineEvents, showTimeline, timelineHeight, timelineOffset, brushColor }: UseMorphChartProps) => {
54
56
  isMorphing: boolean;
55
57
  currentMode: MorphMode;
56
58
  hoveredCategory: string | null;
@@ -43,6 +43,11 @@ export type MorphChartProps = {
43
43
  showGrid?: boolean;
44
44
  /** Show axes */
45
45
  showAxes?: boolean;
46
+ /**
47
+ * Color for axis labels (dates on x-axis, values on y-axis).
48
+ * @default undefined (inherits from SVG default, typically black)
49
+ */
50
+ axisLabelColor?: string;
46
51
  /** Enable brush selection */
47
52
  enableBrush?: boolean;
48
53
  /** Callback when time range changes */
@@ -110,6 +115,12 @@ export type MorphChartProps = {
110
115
  timelineHeight?: number;
111
116
  /** Space between x-axis and timeline in pixels (default: 35) */
112
117
  timelineOffset?: number;
118
+ /**
119
+ * Color for brush selection overlay.
120
+ * Used for both the selection area and drag handles.
121
+ * @default '#69b3a2'
122
+ */
123
+ brushColor?: string;
113
124
  };
114
125
  /**
115
126
  * Seat position in parliament layout