layerchart 2.0.0-next.13 → 2.0.0-next.14

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.
@@ -135,7 +135,14 @@
135
135
 
136
136
  const series = $derived(
137
137
  seriesProp === undefined
138
- ? [{ key: 'default', value: y, color: 'var(--color-primary)' }]
138
+ ? [
139
+ {
140
+ key: 'default',
141
+ label: typeof y === 'string' ? y : 'value',
142
+ value: y,
143
+ color: 'var(--color-primary)',
144
+ },
145
+ ]
139
146
  : seriesProp
140
147
  );
141
148
 
@@ -159,6 +159,14 @@
159
159
  ? [
160
160
  {
161
161
  key: 'default',
162
+ label:
163
+ orientation === 'vertical'
164
+ ? typeof yProp === 'string'
165
+ ? yProp
166
+ : 'value'
167
+ : typeof xProp === 'string'
168
+ ? xProp
169
+ : 'value',
162
170
  value: orientation === 'vertical' ? yProp : xProp,
163
171
  },
164
172
  ]
@@ -141,7 +141,14 @@
141
141
 
142
142
  const series = $derived(
143
143
  seriesProp === undefined
144
- ? [{ key: 'default', value: yProp, color: 'var(--color-primary)' }]
144
+ ? [
145
+ {
146
+ key: 'default',
147
+ label: typeof yProp === 'string' ? yProp : 'value',
148
+ value: yProp,
149
+ color: 'var(--color-primary)',
150
+ },
151
+ ]
145
152
  : seriesProp
146
153
  );
147
154
  const seriesState = new SeriesState(() => series);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "Sean Lynch <techniq35@gmail.com>",
5
5
  "license": "MIT",
6
6
  "repository": "techniq/layerchart",
7
- "version": "2.0.0-next.13",
7
+ "version": "2.0.0-next.14",
8
8
  "devDependencies": {
9
9
  "@changesets/cli": "^2.29.4",
10
10
  "@iconify-json/lucide": "^1.2.44",