Skip to content

Commit 006dd36

Browse files
Fix metrics single data-point visability (#1781)
* fix single data-point not showing in metrics analytics Signed-off-by: YANGDB <yang.db.dev@gmail.com> * fix single data-point not showing in metrics analytics Signed-off-by: YANGDB <yang.db.dev@gmail.com> --------- Signed-off-by: YANGDB <yang.db.dev@gmail.com> (cherry picked from commit 4450b23) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 8e1e7d7 commit 006dd36

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

common/constants/shared.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@ export interface DefaultChartStylesProps {
214214
}
215215

216216
export const DEFAULT_CHART_STYLES: DefaultChartStylesProps = {
217-
DefaultModeLine: 'lines',
217+
DefaultModeLine: 'lines+markers',
218218
Interpolation: 'spline',
219219
LineWidth: 0,
220220
FillOpacity: 100,
221-
MarkerSize: 5,
221+
MarkerSize: 25,
222222
ShowLegend: 'show',
223223
LegendPosition: 'v',
224224
LabelAngle: 0,

public/components/visualizations/plotly/plot.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ export function Plt(props: PltProps) {
5454
zeroline: false,
5555
rangemode: 'normal',
5656
},
57+
layout: {
58+
annotations: [
59+
{
60+
showarrow: true,
61+
xanchor: 'right',
62+
},
63+
],
64+
},
5765
...darkLayout,
5866
...props.layout,
5967
};

0 commit comments

Comments
 (0)