Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush2303 committed Dec 18, 2024
1 parent c4f017c commit 14b236e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const transformPlotlyJsonToDonutProps = (
const styles: IDonutChartProps['styles'] = {
root: {
'[class^="arcLabel"]': {
fontSize: typeof firstData.textfont?.size === 'number' ? firstData.textfont?.size : undefined,
...(typeof firstData.textfont?.size === 'number' ? { fontSize: firstData.textfont.size } : {}),
},
},
};
Expand Down Expand Up @@ -433,7 +433,7 @@ export const transformPlotlyJsonToSankeyProps = (
const height: number = typeof layout?.height === 'number' ? layout?.height : 220;
const styles: ISankeyChartProps['styles'] = {
root: {
fontSize: typeof layout.font?.size === 'number' ? layout.font?.size : undefined,
...(typeof layout.font?.size === 'number' ? { fontSize: layout.font?.size } : {}),
},
};
const shouldResize: number = width + height;
Expand Down

0 comments on commit 14b236e

Please sign in to comment.