Skip to content

Commit eeb480e

Browse files
committed
[fix][xs]: allow yearmonth TimeUnit in LineChart
1 parent 30fcb25 commit eeb480e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/stupid-crabs-try.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@portaljs/components': patch
3+
---
4+
5+
Adjust `xAxisTimeUnit` property in LineChart to allow for passing `yearmonth`.

packages/components/src/components/LineChart.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import loadData from '../lib/loadData';
55
import { Data } from '../types/properties';
66

77
type AxisType = 'quantitative' | 'temporal';
8-
type TimeUnit = 'year' | undefined; // or ...
8+
type TimeUnit = 'year' | 'yearmonth' | undefined; // or ...
99

1010
export type LineChartProps = {
1111
data: Omit<Data, 'csv'>;

0 commit comments

Comments
 (0)