@gridui/chart 0.0.0-stage → 1.0.0

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.
Files changed (40) hide show
  1. package/README.md +65 -2
  2. package/dist/bar-chart/bar-chart.d.ts +12 -0
  3. package/dist/bar-series/bar-series.d.ts +17 -0
  4. package/dist/chart-cursor/chart-cursor.d.ts +13 -0
  5. package/dist/chart-grid/chart-grid.d.ts +18 -0
  6. package/dist/chart-plot/chart-plot.d.ts +13 -0
  7. package/dist/chart-tooltip/chart-tooltip.d.ts +14 -0
  8. package/dist/chart-tooltip/layout.d.ts +31 -0
  9. package/dist/chart-value-labels/chart-value-labels.d.ts +17 -0
  10. package/dist/chart-value-labels/layout.d.ts +28 -0
  11. package/dist/chart-x-axis/chart-x-axis.d.ts +12 -0
  12. package/dist/chart-y-axis/chart-y-axis.d.ts +12 -0
  13. package/dist/index.d.ts +29 -0
  14. package/dist/index.js +1276 -0
  15. package/dist/index.js.map +7 -0
  16. package/dist/line-chart/line-chart.d.ts +12 -0
  17. package/dist/line-series/line-series.d.ts +16 -0
  18. package/dist/shared/axis.d.ts +13 -0
  19. package/dist/shared/chart-root.d.ts +14 -0
  20. package/dist/shared/context.d.ts +38 -0
  21. package/dist/shared/datum-mark.d.ts +13 -0
  22. package/dist/shared/model.d.ts +13 -0
  23. package/dist/shared/ticks.d.ts +14 -0
  24. package/dist/shared/types.d.ts +46 -0
  25. package/dist/shared/use-measured-layout.d.ts +12 -0
  26. package/dist/styles.css +37 -0
  27. package/docs/catalog.json +168 -0
  28. package/docs/reference/README.md +14 -0
  29. package/docs/reference/bar-chart.md +97 -0
  30. package/docs/reference/bar-series.md +61 -0
  31. package/docs/reference/chart-cursor.md +39 -0
  32. package/docs/reference/chart-grid.md +61 -0
  33. package/docs/reference/chart-plot.md +37 -0
  34. package/docs/reference/chart-tooltip.md +37 -0
  35. package/docs/reference/chart-value-labels.md +57 -0
  36. package/docs/reference/chart-xaxis.md +71 -0
  37. package/docs/reference/chart-yaxis.md +71 -0
  38. package/docs/reference/line-chart.md +97 -0
  39. package/docs/reference/line-series.md +47 -0
  40. package/package.json +50 -3
@@ -0,0 +1,97 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # BarChart
3
+
4
+ Compares category values with independently configured bars, axes and labels. Supports horizontal and vertical bars with a shared zero baseline.
5
+
6
+ Import from ``@gridui/chart`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { BarChart } from "@gridui/chart";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/chart/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/stories/bar-chart.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### onFocus
23
+
24
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
25
+
26
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
27
+
28
+ ### onBlur
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onChange
35
+
36
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onSubmit
41
+
42
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onClick
47
+
48
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### label
53
+
54
+ ``string`` · Required
55
+
56
+ ### data
57
+
58
+ ``readonly ChartDatum[]`` · Required
59
+
60
+ ### children
61
+
62
+ ``ReactNode`` · Required
63
+
64
+ Content rendered inside the component.
65
+
66
+ ### height
67
+
68
+ ``number | undefined`` · Optional
69
+
70
+ ### yDomain
71
+
72
+ ``readonly [number, number] | undefined`` · Optional
73
+
74
+ ### selectedId
75
+
76
+ ``string | null | undefined`` · Optional
77
+
78
+ ### defaultSelectedId
79
+
80
+ ``string | undefined`` · Optional
81
+
82
+ ### onSelectionChange
83
+
84
+ ``(id: string | null): void`` · Optional
85
+
86
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
87
+
88
+ ### formatDatum
89
+
90
+ ``((datum: ChartDatum) => string) | undefined`` · Optional
91
+
92
+ ### orientation
93
+
94
+ ``"vertical" | "horizontal" | undefined`` · Optional
95
+
96
+ Default: ``"vertical"``
97
+
@@ -0,0 +1,61 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # BarSeries
3
+
4
+ Compose BarSeries with BarChart inside the same @gridui/chart component family.
5
+
6
+ Import from ``@gridui/chart`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { BarSeries } from "@gridui/chart";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/chart/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/stories/bar-chart.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### color
23
+
24
+ ``Property.Color | undefined`` · Optional
25
+
26
+ Default: ``"var(--gridui-chart-series)"``
27
+
28
+ ### selectedColor
29
+
30
+ ``Property.Color | undefined`` · Optional
31
+
32
+ Default: ``"var(--gridui-chart-selected)"``
33
+
34
+ ### width
35
+
36
+ ``number | undefined`` · Optional
37
+
38
+ ### widthRatio
39
+
40
+ ``number | undefined`` · Optional
41
+
42
+ Default: ``0.7``
43
+
44
+ ### gap
45
+
46
+ ``number | undefined`` · Optional
47
+
48
+ Default: ``4``
49
+
50
+ ### opacity
51
+
52
+ ``number | undefined`` · Optional
53
+
54
+ Default: ``1``
55
+
56
+ ### inactiveOpacity
57
+
58
+ ``number | undefined`` · Optional
59
+
60
+ Default: ``0.45``
61
+
@@ -0,0 +1,39 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ChartCursor
3
+
4
+ Compose ChartCursor with LineChart inside the same @gridui/chart component family.
5
+
6
+ Import from ``@gridui/chart`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ChartCursor } from "@gridui/chart";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/chart/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/stories/line-chart.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### color
23
+
24
+ ``Property.Color | undefined`` · Optional
25
+
26
+ Default: ``"var(--gridui-chart-axis)"``
27
+
28
+ ### strokeWidth
29
+
30
+ ``number | undefined`` · Optional
31
+
32
+ Default: ``1``
33
+
34
+ ### dashArray
35
+
36
+ ``string | undefined`` · Optional
37
+
38
+ Default: ``"3 3"``
39
+
@@ -0,0 +1,61 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ChartGrid
3
+
4
+ Compose ChartGrid with BarChart inside the same @gridui/chart component family.
5
+
6
+ Import from ``@gridui/chart`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ChartGrid } from "@gridui/chart";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/chart/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/stories/bar-chart.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### xTicks
23
+
24
+ ``ChartTickOptions | undefined`` · Optional
25
+
26
+ Default: ``{}``
27
+
28
+ ### yTicks
29
+
30
+ ``ChartTickOptions | undefined`` · Optional
31
+
32
+ Default: ``{}``
33
+
34
+ ### horizontal
35
+
36
+ ``boolean | undefined`` · Optional
37
+
38
+ Default: ``true``
39
+
40
+ ### vertical
41
+
42
+ ``boolean | undefined`` · Optional
43
+
44
+ Default: ``false``
45
+
46
+ ### color
47
+
48
+ ``Property.Color | undefined`` · Optional
49
+
50
+ Default: ``"var(--gridui-chart-grid)"``
51
+
52
+ ### strokeWidth
53
+
54
+ ``number | undefined`` · Optional
55
+
56
+ Default: ``1``
57
+
58
+ ### dashArray
59
+
60
+ ``string | undefined`` · Optional
61
+
@@ -0,0 +1,37 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ChartPlot
3
+
4
+ Compose ChartPlot with BarChart inside the same @gridui/chart component family.
5
+
6
+ Import from ``@gridui/chart`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ChartPlot } from "@gridui/chart";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/chart/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/stories/bar-chart.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Required
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### background
29
+
30
+ ``Property.Fill | undefined`` · Optional
31
+
32
+ Default: ``"var(--gridui-chart-background)"``
33
+
34
+ ### padding
35
+
36
+ ``Partial<Record<"top" | "right" | "bottom" | "left", number>> | undefined`` · Optional
37
+
@@ -0,0 +1,37 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ChartTooltip
3
+
4
+ Compose ChartTooltip with BarChart inside the same @gridui/chart component family.
5
+
6
+ Import from ``@gridui/chart`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ChartTooltip } from "@gridui/chart";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/chart/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/stories/bar-chart.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### format
23
+
24
+ ``((datum: ChartDatum) => string) | undefined`` · Optional
25
+
26
+ ### background
27
+
28
+ ``Property.Color | undefined`` · Optional
29
+
30
+ Default: ``"var(--gridui-background)"``
31
+
32
+ ### color
33
+
34
+ ``Property.Color | undefined`` · Optional
35
+
36
+ Default: ``"var(--gridui-foreground)"``
37
+
@@ -0,0 +1,57 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ChartValueLabels
3
+
4
+ Compose ChartValueLabels with BarChart inside the same @gridui/chart component family.
5
+
6
+ Import from ``@gridui/chart`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ChartValueLabels } from "@gridui/chart";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/chart/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/stories/bar-chart.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### visibility
23
+
24
+ ``"none" | "all" | "selected" | undefined`` · Optional
25
+
26
+ Default: ``"selected"``
27
+
28
+ ### position
29
+
30
+ ``"center" | "end" | undefined`` · Optional
31
+
32
+ Default: ``"end"``
33
+
34
+ ### format
35
+
36
+ ``((value: number, datum: ChartDatum) => string) | undefined`` · Optional
37
+
38
+ Default: ``String``
39
+
40
+ ### color
41
+
42
+ ``Property.Color | undefined`` · Optional
43
+
44
+ Default: ``"var(--gridui-chart-value)"``
45
+
46
+ ### fontSize
47
+
48
+ ``number | undefined`` · Optional
49
+
50
+ Default: ``12``
51
+
52
+ ### offset
53
+
54
+ ``number | undefined`` · Optional
55
+
56
+ Default: ``12``
57
+
@@ -0,0 +1,71 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ChartXAxis
3
+
4
+ Compose ChartXAxis with BarChart inside the same @gridui/chart component family.
5
+
6
+ Import from ``@gridui/chart`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ChartXAxis } from "@gridui/chart";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/chart/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/stories/bar-chart.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### tickCount
23
+
24
+ ``number | undefined`` · Optional
25
+
26
+ ### tickValues
27
+
28
+ ``readonly (string | number | Date)[] | undefined`` · Optional
29
+
30
+ ### line
31
+
32
+ ``boolean | undefined`` · Optional
33
+
34
+ ### ticks
35
+
36
+ ``boolean | undefined`` · Optional
37
+
38
+ ### labels
39
+
40
+ ``boolean | undefined`` · Optional
41
+
42
+ ### title
43
+
44
+ ``string | undefined`` · Optional
45
+
46
+ ### tickFormat
47
+
48
+ ``((value: ChartDatum["x"]) => string) | undefined`` · Optional
49
+
50
+ ### color
51
+
52
+ ``Property.Color | undefined`` · Optional
53
+
54
+ ### strokeWidth
55
+
56
+ ``number | undefined`` · Optional
57
+
58
+ ### labelColor
59
+
60
+ ``Property.Color | undefined`` · Optional
61
+
62
+ ### fontSize
63
+
64
+ ``number | undefined`` · Optional
65
+
66
+ ### position
67
+
68
+ ``"top" | "bottom" | undefined`` · Optional
69
+
70
+ Default: ``"bottom"``
71
+
@@ -0,0 +1,71 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # ChartYAxis
3
+
4
+ Compose ChartYAxis with BarChart inside the same @gridui/chart component family.
5
+
6
+ Import from ``@gridui/chart`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { ChartYAxis } from "@gridui/chart";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/chart/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/stories/bar-chart.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### tickCount
23
+
24
+ ``number | undefined`` · Optional
25
+
26
+ ### tickValues
27
+
28
+ ``readonly (string | number | Date)[] | undefined`` · Optional
29
+
30
+ ### line
31
+
32
+ ``boolean | undefined`` · Optional
33
+
34
+ ### ticks
35
+
36
+ ``boolean | undefined`` · Optional
37
+
38
+ ### labels
39
+
40
+ ``boolean | undefined`` · Optional
41
+
42
+ ### title
43
+
44
+ ``string | undefined`` · Optional
45
+
46
+ ### tickFormat
47
+
48
+ ``((value: ChartDatum["x"]) => string) | undefined`` · Optional
49
+
50
+ ### color
51
+
52
+ ``Property.Color | undefined`` · Optional
53
+
54
+ ### strokeWidth
55
+
56
+ ``number | undefined`` · Optional
57
+
58
+ ### labelColor
59
+
60
+ ``Property.Color | undefined`` · Optional
61
+
62
+ ### fontSize
63
+
64
+ ``number | undefined`` · Optional
65
+
66
+ ### position
67
+
68
+ ``"right" | "left" | undefined`` · Optional
69
+
70
+ Default: ``"left"``
71
+
@@ -0,0 +1,97 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # LineChart
3
+
4
+ Composes axes, grids, line marks and labels for ordered observations. Each visual element is independently configurable.
5
+
6
+ Import from ``@gridui/chart`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { LineChart } from "@gridui/chart";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/chart/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/stories/line-chart.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### onFocus
23
+
24
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
25
+
26
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
27
+
28
+ ### onBlur
29
+
30
+ ``(event: FocusEvent<HTMLDivElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onChange
35
+
36
+ ``(event: ChangeEvent<HTMLDivElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onSubmit
41
+
42
+ ``(event: SubmitEvent<HTMLDivElement>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onClick
47
+
48
+ ``(event: MouseEvent<HTMLDivElement, MouseEvent>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### label
53
+
54
+ ``string`` · Required
55
+
56
+ ### data
57
+
58
+ ``readonly ChartDatum[]`` · Required
59
+
60
+ ### children
61
+
62
+ ``ReactNode`` · Required
63
+
64
+ Content rendered inside the component.
65
+
66
+ ### height
67
+
68
+ ``number | undefined`` · Optional
69
+
70
+ ### yDomain
71
+
72
+ ``readonly [number, number] | undefined`` · Optional
73
+
74
+ ### selectedId
75
+
76
+ ``string | null | undefined`` · Optional
77
+
78
+ ### defaultSelectedId
79
+
80
+ ``string | undefined`` · Optional
81
+
82
+ ### onSelectionChange
83
+
84
+ ``(id: string | null): void`` · Optional
85
+
86
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
87
+
88
+ ### formatDatum
89
+
90
+ ``((datum: ChartDatum) => string) | undefined`` · Optional
91
+
92
+ ### xScale
93
+
94
+ ``ChartScale | undefined`` · Optional
95
+
96
+ Default: ``"category"``
97
+
@@ -0,0 +1,47 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # LineSeries
3
+
4
+ Compose LineSeries with LineChart inside the same @gridui/chart component family.
5
+
6
+ Import from ``@gridui/chart`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { LineSeries } from "@gridui/chart";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/chart/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/chart/stories/line-chart.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### color
23
+
24
+ ``Property.Color | undefined`` · Optional
25
+
26
+ Default: ``"var(--gridui-chart-series)"``
27
+
28
+ ### strokeWidth
29
+
30
+ ``number | undefined`` · Optional
31
+
32
+ Default: ``2``
33
+
34
+ ### dashArray
35
+
36
+ ``string | undefined`` · Optional
37
+
38
+ ### points
39
+
40
+ ``ChartPointOptions | undefined`` · Optional
41
+
42
+ ### selectedColor
43
+
44
+ ``Property.Color | undefined`` · Optional
45
+
46
+ Default: ``"var(--gridui-chart-selected)"``
47
+