Skip to content

Commit

Permalink
Add padding to markline
Browse files Browse the repository at this point in the history
andrewbaldwin44 committed Aug 14, 2024
1 parent 2d595a0 commit 001e876
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locust/webui/src/components/LineChart/LineChart.utils.ts
Original file line number Diff line number Diff line change
@@ -131,7 +131,7 @@ export const createOptions = <ChartType>({
formatter: formatTimeAxis,
},
},
grid: { left: 50, right: 10 },
grid: { left: 60, right: 40 },
yAxis: createYAxis({ splitAxis, yAxisLabels }),
series: getSeriesData<ChartType>({ charts, lines, scatterplot }),
color: colors,
@@ -165,6 +165,7 @@ export const createMarkLine = <ChartType extends Pick<ICharts, 'markers'>>(
symbol: 'none',
label: {
formatter: (params: DefaultLabelFormatterCallbackParams) => `Run #${params.dataIndex + 1}`,
padding: [0, 0, 8, 0],
},
lineStyle: { color: isDarkMode ? CHART_THEME.DARK.axisColor : CHART_THEME.LIGHT.axisColor },
data: (charts.markers || []).map((timeMarker: string) => ({ xAxis: timeMarker })),

0 comments on commit 001e876

Please sign in to comment.