[fix][xs]: allow yearmonth TimeUnit in LineChart

This commit is contained in:
Ola Rubaj 2024-11-11 15:38:29 +01:00
parent 30fcb256b2
commit eeb480e8cf
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
'@portaljs/components': patch
---
Adjust `xAxisTimeUnit` property in LineChart to allow for passing `yearmonth`.

View File

@ -5,7 +5,7 @@ import loadData from '../lib/loadData';
import { Data } from '../types/properties';
type AxisType = 'quantitative' | 'temporal';
type TimeUnit = 'year' | undefined; // or ...
type TimeUnit = 'year' | 'yearmonth' | undefined; // or ...
export type LineChartProps = {
data: Omit<Data, 'csv'>;