[fix][xs]: allow yearmonth TimeUnit in LineChart
This commit is contained in:
parent
30fcb256b2
commit
eeb480e8cf
5
.changeset/stupid-crabs-try.md
Normal file
5
.changeset/stupid-crabs-try.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
'@portaljs/components': patch
|
||||
---
|
||||
|
||||
Adjust `xAxisTimeUnit` property in LineChart to allow for passing `yearmonth`.
|
||||
@ -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'>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user