Skip to content

Commit

Permalink
Rotate x-Axis labels by 45 degree counter-wise to avoid common overla…
Browse files Browse the repository at this point in the history
…pping issue (#2211) (#2215)

* updated release notes (#1997)



* xaxis label default to rotate 45 angle



* update snapshots



* fix: Update getting started cards content and visual design (#2209)



* updated release notes (#1997)



* updated release notes (#1997)



* update other snapshots



---------






(cherry picked from commit d5853bc)

Signed-off-by: sumukhswamy <[email protected]>
Signed-off-by: Eric <[email protected]>
Signed-off-by: Viraj Sanghvi <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sumukh Swamy <[email protected]>
Co-authored-by: Viraj Sanghvi <[email protected]>
  • Loading branch information
4 people authored Oct 18, 2024
1 parent 7559048 commit 6aaa878
Show file tree
Hide file tree
Showing 11 changed files with 109 additions and 109 deletions.
2 changes: 1 addition & 1 deletion common/constants/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export const DEFAULT_CHART_STYLES: DefaultChartStylesProps = {
MarkerSize: 5,
ShowLegend: 'show',
LegendPosition: 'v',
LabelAngle: 0,
LabelAngle: -45,
DefaultSortSectors: 'largest_to_smallest',
DefaultModeScatter: 'markers',
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
},
Object {
"component": [Function],
"defaultState": 0,
"defaultState": -45,
"eleType": "slider",
"mapTo": "rotateBarLabels",
"name": "Rotate bar labels",
Expand Down Expand Up @@ -419,7 +419,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
"icontype": "visBarVerticalStacked",
"id": "bar",
"label": "Vertical bar",
"labelangle": 0,
"labelangle": -45,
"legendposition": "v",
"linewidth": 0,
"mode": "group",
Expand Down Expand Up @@ -775,7 +775,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
},
Object {
"component": [Function],
"defaultState": 0,
"defaultState": -45,
"eleType": "slider",
"mapTo": "rotateBarLabels",
"name": "Rotate bar labels",
Expand Down Expand Up @@ -874,7 +874,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
"icontype": "visBarVerticalStacked",
"id": "bar",
"label": "Vertical bar",
"labelangle": 0,
"labelangle": -45,
"legendposition": "v",
"linewidth": 0,
"mode": "group",
Expand Down Expand Up @@ -1253,7 +1253,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
},
Object {
"component": [Function],
"defaultState": 0,
"defaultState": -45,
"eleType": "slider",
"mapTo": "rotateBarLabels",
"name": "Rotate bar labels",
Expand Down Expand Up @@ -1352,7 +1352,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
"icontype": "visBarVerticalStacked",
"id": "bar",
"label": "Vertical bar",
"labelangle": 0,
"labelangle": -45,
"legendposition": "v",
"linewidth": 0,
"mode": "group",
Expand Down Expand Up @@ -1467,7 +1467,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
"title": "",
"xaxis": Object {
"automargin": true,
"tickangle": 0,
"tickangle": -45,
"tickfont": Object {
"size": 12,
},
Expand Down Expand Up @@ -1562,7 +1562,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
"title": "",
"xaxis": Object {
"automargin": true,
"tickangle": 0,
"tickangle": -45,
"tickfont": Object {
"size": 12,
},
Expand Down Expand Up @@ -2000,7 +2000,7 @@ exports[`Utils helper functions renders displayVisualization function 2`] = `
},
Object {
"component": [Function],
"defaultState": 0,
"defaultState": -45,
"eleType": "slider",
"mapTo": "rotateLabels",
"name": "Rotate labels",
Expand Down Expand Up @@ -2516,7 +2516,7 @@ exports[`Utils helper functions renders displayVisualization function 2`] = `
},
Object {
"component": [Function],
"defaultState": 0,
"defaultState": -45,
"eleType": "slider",
"mapTo": "rotateLabels",
"name": "Rotate labels",
Expand Down Expand Up @@ -3086,7 +3086,7 @@ exports[`Utils helper functions renders displayVisualization function 2`] = `
},
Object {
"component": [Function],
"defaultState": 0,
"defaultState": -45,
"eleType": "slider",
"mapTo": "rotateLabels",
"name": "Rotate labels",
Expand Down Expand Up @@ -3296,7 +3296,7 @@ exports[`Utils helper functions renders displayVisualization function 2`] = `
"title": "",
"xaxis": Object {
"automargin": true,
"tickangle": 0,
"tickangle": -45,
"tickfont": Object {},
},
"yaxis": Object {
Expand Down Expand Up @@ -3403,7 +3403,7 @@ exports[`Utils helper functions renders displayVisualization function 2`] = `
"title": "",
"xaxis": Object {
"automargin": true,
"tickangle": 0,
"tickangle": -45,
"tickfont": Object {},
},
"yaxis": Object {
Expand Down Expand Up @@ -3757,7 +3757,7 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
},
Object {
"component": [Function],
"defaultState": 0,
"defaultState": -45,
"eleType": "slider",
"mapTo": "rotateBarLabels",
"name": "Rotate bar labels",
Expand Down Expand Up @@ -3856,7 +3856,7 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
"icontype": "visBarHorizontalStacked",
"id": "horizontal_bar",
"label": "Horizontal bar",
"labelangle": 0,
"labelangle": -45,
"legendposition": "v",
"linewidth": 0,
"mode": "group",
Expand Down Expand Up @@ -4212,7 +4212,7 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
},
Object {
"component": [Function],
"defaultState": 0,
"defaultState": -45,
"eleType": "slider",
"mapTo": "rotateBarLabels",
"name": "Rotate bar labels",
Expand Down Expand Up @@ -4311,7 +4311,7 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
"icontype": "visBarHorizontalStacked",
"id": "horizontal_bar",
"label": "Horizontal bar",
"labelangle": 0,
"labelangle": -45,
"legendposition": "v",
"linewidth": 0,
"mode": "group",
Expand Down Expand Up @@ -4690,7 +4690,7 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
},
Object {
"component": [Function],
"defaultState": 0,
"defaultState": -45,
"eleType": "slider",
"mapTo": "rotateBarLabels",
"name": "Rotate bar labels",
Expand Down Expand Up @@ -4789,7 +4789,7 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
"icontype": "visBarHorizontalStacked",
"id": "horizontal_bar",
"label": "Horizontal bar",
"labelangle": 0,
"labelangle": -45,
"legendposition": "v",
"linewidth": 0,
"mode": "group",
Expand Down Expand Up @@ -4910,7 +4910,7 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
},
"yaxis": Object {
"automargin": true,
"tickangle": 0,
"tickangle": -45,
"tickfont": Object {
"size": 12,
},
Expand Down Expand Up @@ -5005,7 +5005,7 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
},
"yaxis": Object {
"automargin": true,
"tickangle": 0,
"tickangle": -45,
"tickfont": Object {
"size": 12,
},
Expand Down
Loading

0 comments on commit 6aaa878

Please sign in to comment.