[fix][xs]: allow yearmonth TimeUnit in LineChart
This commit is contained in:
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';
|
import { Data } from '../types/properties';
|
||||||
|
|
||||||
type AxisType = 'quantitative' | 'temporal';
|
type AxisType = 'quantitative' | 'temporal';
|
||||||
type TimeUnit = 'year' | undefined; // or ...
|
type TimeUnit = 'year' | 'yearmonth' | undefined; // or ...
|
||||||
|
|
||||||
export type LineChartProps = {
|
export type LineChartProps = {
|
||||||
data: Omit<Data, 'csv'>;
|
data: Omit<Data, 'csv'>;
|
||||||
|
|||||||
Reference in New Issue
Block a user