Skip to content

Commit

Permalink
[BUG]: Fixed Vertical & Horizontal Bar visualization issues (#1156)
Browse files Browse the repository at this point in the history
* Fixed issue-1153

Signed-off-by: Koustubh Karmalkar <[email protected]>

* Fixed color theme issue of vertical bar chart

Signed-off-by: Koustubh Karmalkar <[email protected]>

* Fixed horizontal bar style and tooltip issue

Signed-off-by: Koustubh Karmalkar <[email protected]>

* Hide some visualization charts options

Signed-off-by: Koustubh Karmalkar <[email protected]>

* Updated snap files

Signed-off-by: Koustubh Karmalkar <[email protected]>

* Removed commented code

Signed-off-by: Koustubh Karmalkar <[email protected]>

Signed-off-by: Koustubh Karmalkar <[email protected]>
  • Loading branch information
Koustubh5585 authored Oct 22, 2022
1 parent af3b3d3 commit a282bc9
Show file tree
Hide file tree
Showing 18 changed files with 217 additions and 1,921 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ describe('Render stats chart verfiy functionality for Tooltip text', () => {
cy.get('.euiButton__text.euiButtonGroupButton__textShift').eq(2).should('have.text', 'All');
cy.get('.euiButton__text.euiButtonGroupButton__textShift').eq(3).should('have.text', 'Dimension')
.click();
cy.get('.euiButton__text.euiButtonGroupButton__textShift').eq(4).should('have.text', 'Metrics')
cy.get('.euiButton__text.euiButtonGroupButton__textShift').eq(4).should('have.text', 'Series')
.click();
});
});
Expand Down
14 changes: 0 additions & 14 deletions dashboards-observability/common/constants/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,6 @@ export enum VIS_CHART_TYPES {
Pie = 'pie',
HeatMap = 'heatmap',
Text = 'text',
Gauge = 'gauge',
Histogram = 'histogram',
TreeMap = 'tree_map',
Scatter = 'scatter',
LogsView = 'logs_view',
Metrics = 'metrics',
TableView = 'data_table',
}

export const NUMERICAL_FIELDS = ['short', 'integer', 'long', 'float', 'double'];
Expand All @@ -96,13 +89,6 @@ export const ENABLED_VIS_TYPES = [
VIS_CHART_TYPES.Pie,
VIS_CHART_TYPES.HeatMap,
VIS_CHART_TYPES.Text,
VIS_CHART_TYPES.TreeMap,
VIS_CHART_TYPES.Gauge,
VIS_CHART_TYPES.Histogram,
VIS_CHART_TYPES.Scatter,
VIS_CHART_TYPES.LogsView,
VIS_CHART_TYPES.Metrics,
VIS_CHART_TYPES.TableView,
];

// Live tail constants
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
},
Object {
"id": "y",
"name": "Metrics",
"name": "Series",
},
],
},
Expand Down Expand Up @@ -647,7 +647,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
},
Object {
"id": "y",
"name": "Metrics",
"name": "Series",
},
],
},
Expand Down Expand Up @@ -1102,7 +1102,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
},
Object {
"id": "y",
"name": "Metrics",
"name": "Series",
},
],
},
Expand Down Expand Up @@ -1699,7 +1699,7 @@ exports[`Utils helper functions renders displayVisualization function 2`] = `
},
Object {
"id": "y",
"name": "Metrics",
"name": "Series",
},
],
},
Expand Down Expand Up @@ -2205,7 +2205,7 @@ exports[`Utils helper functions renders displayVisualization function 2`] = `
},
Object {
"id": "y",
"name": "Metrics",
"name": "Series",
},
],
},
Expand Down Expand Up @@ -2725,7 +2725,7 @@ exports[`Utils helper functions renders displayVisualization function 2`] = `
},
Object {
"id": "y",
"name": "Metrics",
"name": "Series",
},
],
},
Expand Down Expand Up @@ -3252,7 +3252,7 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
},
Object {
"id": "y",
"name": "Metrics",
"name": "Series",
},
],
},
Expand Down Expand Up @@ -3700,7 +3700,7 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
},
Object {
"id": "y",
"name": "Metrics",
"name": "Series",
},
],
},
Expand Down Expand Up @@ -4155,7 +4155,7 @@ exports[`Utils helper functions renders displayVisualization function 3`] = `
},
Object {
"id": "y",
"name": "Metrics",
"name": "Series",
},
],
},
Expand Down Expand Up @@ -4634,7 +4634,7 @@ exports[`Utils helper functions renders displayVisualization function 4`] = `
},
Object {
"id": "y",
"name": "Metrics",
"name": "Series",
},
],
},
Expand Down Expand Up @@ -5028,7 +5028,7 @@ exports[`Utils helper functions renders displayVisualization function 4`] = `
},
Object {
"id": "y",
"name": "Metrics",
"name": "Series",
},
],
},
Expand Down Expand Up @@ -5429,7 +5429,7 @@ exports[`Utils helper functions renders displayVisualization function 4`] = `
},
Object {
"id": "y",
"name": "Metrics",
"name": "Series",
},
],
},
Expand Down
Loading

0 comments on commit a282bc9

Please sign in to comment.