Skip to content

Commit

Permalink
Fix metrics single data-point visability (opensearch-project#1781)
Browse files Browse the repository at this point in the history
* fix single data-point not showing in metrics analytics

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

* fix single data-point not showing in metrics analytics

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

---------

Signed-off-by: YANGDB <[email protected]>
  • Loading branch information
YANG-DB authored May 1, 2024
1 parent cda380f commit 4450b23
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/constants/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,11 @@ export interface DefaultChartStylesProps {
}

export const DEFAULT_CHART_STYLES: DefaultChartStylesProps = {
DefaultModeLine: 'lines',
DefaultModeLine: 'lines+markers',
Interpolation: 'spline',
LineWidth: 0,
FillOpacity: 100,
MarkerSize: 5,
MarkerSize: 25,
ShowLegend: 'show',
LegendPosition: 'v',
LabelAngle: 0,
Expand Down
8 changes: 8 additions & 0 deletions public/components/visualizations/plotly/plot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ export function Plt(props: PltProps) {
zeroline: false,
rangemode: 'normal',
},
layout: {
annotations: [
{
showarrow: true,
xanchor: 'right',
},
],
},
...darkLayout,
...props.layout,
};
Expand Down

0 comments on commit 4450b23

Please sign in to comment.