Skip to content

Commit

Permalink
Update Tremor
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez committed Sep 25, 2023
1 parent 996414e commit 2a4b580
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"dependencies": {
"@fluentui/react-icons": "^2.0.218",
"@tremor/react": "^3.7.9",
"@tremor/react": "^3.8.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"recharts": "^2.8.0",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/ChartBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ export const ChartBar = <T,>({
<Legend
iconType='circle'
height={legendHeight}
content={({ payload }) => ChartLegend({ payload }, categoryColors, setLegendHeight)}
content={({ payload }) =>
ChartLegend({ payload }, categoryColors, setLegendHeight, undefined, undefined)
}
/>
)}
{keys.map((property) =>
Expand Down
8 changes: 6 additions & 2 deletions src/ChartShimmers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export const ChartBarShimmer = ({ className }: ClassNameProps) => {
<Legend
iconType='circle'
height={legendHeight}
content={({ payload }) => ChartLegend({ payload }, defaultShimmerColors, setLegendHeight)}
content={({ payload }) =>
ChartLegend({ payload }, defaultShimmerColors, setLegendHeight, undefined, undefined)
}
/>
<Bar
dataKey='Loading'
Expand Down Expand Up @@ -76,7 +78,9 @@ export const ChartLineShimmer = ({ className }: ClassNameProps) => {
<Legend
iconType='circle'
height={legendHeight}
content={({ payload }) => ChartLegend({ payload }, defaultShimmerColors, setLegendHeight)}
content={({ payload }) =>
ChartLegend({ payload }, defaultShimmerColors, setLegendHeight, undefined, undefined)
}
/>
<Line
className={getColorClassNames('gray', colorPalette.text).strokeColor}
Expand Down
4 changes: 3 additions & 1 deletion src/ComposedLineChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ export const ComposedLineChart = <T,>({
<Legend
iconType='circle'
height={legendHeight}
content={({ payload }) => ChartLegend({ payload }, categoryColors, setLegendHeight)}
content={({ payload }) =>
ChartLegend({ payload }, categoryColors, setLegendHeight, undefined, undefined)
}
/>
)}
</ComposedChart>
Expand Down
4 changes: 3 additions & 1 deletion src/DataChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ export const DataChart = <T,>({
iconType='circle'
verticalAlign='top'
height={legendHeight}
content={({ payload }) => ChartLegend({ payload }, categoryColors, setLegendHeight)}
content={({ payload }) =>
ChartLegend({ payload }, categoryColors, setLegendHeight, undefined, undefined)
}
/>
)}
{getChartSeries(dataStore).map((property: string, index: number) => (
Expand Down

0 comments on commit 2a4b580

Please sign in to comment.