Skip to content

Commit

Permalink
[BUG] : Labels on y axis get truncated (#1169)
Browse files Browse the repository at this point in the history
* bug fix for Labels on y axis get truncated

Signed-off-by: SivaprasadAluri <[email protected]>

* fixed the yAxis lable truncating issue

Signed-off-by: SivaprasadAluri <[email protected]>

Signed-off-by: SivaprasadAluri <[email protected]>
  • Loading branch information
SivaprasadAluri authored Oct 21, 2022
1 parent a3955ef commit d8f356a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export const Line = ({ visualizations, layout, config }: any) => {
titlefont: {
color: selectedColor,
},
automargin: true,
tickfont: {
color: selectedColor,
...(labelSize && {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export const HeatMap = ({ visualizations, layout, config }: any) => {
},
];

layout.yaxis = { autosize: true, automargin: true };
const mergedLayout = {
...layout,
...(layoutConfig.layout && layoutConfig.layout),
Expand Down

0 comments on commit d8f356a

Please sign in to comment.