Skip to content

Commit

Permalink
[fix][xs]: allow yearmonth TimeUnit in LineChart
Browse files Browse the repository at this point in the history
  • Loading branch information
olayway committed Nov 11, 2024
1 parent 30fcb25 commit eeb480e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/stupid-crabs-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@portaljs/components': patch
---

Adjust `xAxisTimeUnit` property in LineChart to allow for passing `yearmonth`.
2 changes: 1 addition & 1 deletion packages/components/src/components/LineChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'>;
Expand Down

0 comments on commit eeb480e

Please sign in to comment.