We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yearmonth
1 parent 30fcb25 commit eeb480eCopy full SHA for eeb480e
.changeset/stupid-crabs-try.md
@@ -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
@@ -5,7 +5,7 @@ import loadData from '../lib/loadData';
import { Data } from '../types/properties';
6
7
type AxisType = 'quantitative' | 'temporal';
8
-type TimeUnit = 'year' | undefined; // or ...
+type TimeUnit = 'year' | 'yearmonth' | undefined; // or ...
9
10
export type LineChartProps = {
11
data: Omit<Data, 'csv'>;
0 commit comments