Skip to content

Commit

Permalink
[FEATURE]: Breakdown added in Bar Chart (opensearch-project#1051)
Browse files Browse the repository at this point in the history
* Uncommented code for breakdown

Signed-off-by: ruchika-narang <ruchika_narang@persistent.com>

* Fixed constant issue after rebasing with main

Signed-off-by: ruchika-narang <ruchika_narang@persistent.com>

Signed-off-by: ruchika-narang <ruchika_narang@persistent.com>
  • Loading branch information
ruchika-narang authored Sep 29, 2022
1 parent dcf304c commit 0c617de
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dashboards-observability/common/constants/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const AGGREGATION_OPTIONS = [
];

// numeric fields type for metrics
export const numericalTypes = [
export const NUMERICAL_TYPES = [
'float',
'double',
'bigint',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,16 @@ export const DataConfigPanelItem = ({
<h3>Date Histogram</h3>
</EuiTitle>
{DateHistogram}
{/* <EuiTitle size="xxs">
<h3>Breakdowns</h3>
</EuiTitle>
{Breakdowns} */}
<EuiSpacer size="s" />
{(visualizations.vis.name === VIS_CHART_TYPES.Bar ||
visualizations.vis.name === VIS_CHART_TYPES.HorizontalBar) && (
<>
<EuiTitle size="xxs">
<h3>Breakdowns</h3>
</EuiTitle>
{Breakdowns}
</>
)}
</>
) : (
<>
Expand Down

0 comments on commit 0c617de

Please sign in to comment.