diff --git a/@codexteam/ui/dev/pages/components/Chart.vue b/@codexteam/ui/dev/pages/components/Chart.vue index 03e0de6d..ee008846 100644 --- a/@codexteam/ui/dev/pages/components/Chart.vue +++ b/@codexteam/ui/dev/pages/components/Chart.vue @@ -12,22 +12,39 @@ lines

- An array of line objects to display on the chart. + An array of line objects to display on the chart. Each line has + label, data and optional color.

+
+

+ lines[].color +

+

+ Built-in palette token, or a hex override. Omit it and the line stays red. +

+ +
+

detalization

- Controls how timestamps are formatted on the X-axis legend and tooltip. - Does not affect data aggregation — only the display format. + Grain of the X-axis and tooltip timestamps. Preview data follows the selected step.

Try it: @@ -39,16 +56,43 @@ />
+ +
+

+ legend +

+

+ Static series legend under the chart: color dot + label for each line. + Off by default so existing layouts stay the same. +

+
+ Try it: + +
+
Single Line
+
+ color: +