Skip to content

Commit

Permalink
fix: sw-747 apply line instead of area for consistent on-demand displays
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera committed May 5, 2023
1 parent 82aca5a commit 492d453
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ exports[`Product OpenShift Metrics config should apply graph configuration: filt
"header": [Function],
},
],
"chartType": "line",
"color": "#06c",
"fill": "#8bc1f7",
"groupMetric": [
Expand All @@ -259,7 +260,7 @@ exports[`Product OpenShift Metrics config should apply graph configuration: filt
"metric": undefined,
"metrics": [
{
"chartType": "area",
"chartType": "line",
"color": "#06c",
"fill": "#8bc1f7",
"id": "Cores",
Expand Down
2 changes: 2 additions & 0 deletions src/config/product.openshiftMetrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
RHSM_API_RESPONSE_INSTANCES_DATA_TYPES as INVENTORY_TYPES,
RHSM_INTERNAL_PRODUCT_DISPLAY_TYPES as DISPLAY_TYPES
} from '../services/rhsm/rhsmConstants';
import { ChartTypeVariant } from '../components/chart/chartHelpers';
import { dateHelpers, helpers } from '../common';
import { SelectPosition } from '../components/form/select';
import { translate } from '../components/i18n/i18n';
Expand Down Expand Up @@ -63,6 +64,7 @@ const config = {
fill: chartColorBlueLight.value,
stroke: chartColorBlueDark.value,
color: chartColorBlueDark.value,
chartType: ChartTypeVariant.line,
isStacked: false,
yAxisChartLabel: ({ id } = {}) => translate('curiosity-graph.label_axisY', { context: id })
}
Expand Down

0 comments on commit 492d453

Please sign in to comment.