Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add New Colors for the Locust Charts #2589

Merged
merged 1 commit into from Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion locust/webui/dist/assets/auth-b54b80c4.js.map

This file was deleted.

1 change: 1 addition & 0 deletions locust/webui/dist/assets/auth-e7925d10.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion locust/webui/dist/auth.html
Expand Up @@ -7,7 +7,7 @@
<meta name="theme-color" content="#000000" />

<title>Locust</title>
<script type="module" crossorigin src="/assets/index-f31faefc.js"></script>
<script type="module" crossorigin src="/assets/index-dc1c0e5b.js"></script>
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion locust/webui/dist/index.html
Expand Up @@ -7,7 +7,7 @@
<meta name="theme-color" content="#000000" />

<title>Locust</title>
<script type="module" crossorigin src="/assets/index-f31faefc.js"></script>
<script type="module" crossorigin src="/assets/index-dc1c0e5b.js"></script>
</head>
<body>
<div id="root"></div>
Expand Down
6 changes: 0 additions & 6 deletions locust/webui/src/components/LineChart/LineChart.tsx
Expand Up @@ -37,15 +37,9 @@ interface ILineChart extends ILineChartProps {

const CHART_TEXT_COLOR = '#b3c3bc';
const CHART_AXIS_COLOR = '#5b6f66';
const CHART_COLOR_PALETTE = ['#00ca5a', '#ffca5a'];

registerTheme('locust', {
color: CHART_COLOR_PALETTE,
backgroundColor: '#27272a',
xAxis: { lineColor: '#f00' },
graph: {
color: CHART_COLOR_PALETTE,
},
textStyle: { color: CHART_TEXT_COLOR },
title: {
textStyle: { color: CHART_TEXT_COLOR },
Expand Down
2 changes: 2 additions & 0 deletions locust/webui/src/components/SwarmCharts/SwarmCharts.tsx
Expand Up @@ -27,10 +27,12 @@ const availableSwarmCharts: ILineChartProps[] = [
...percentilesToChartLines,
{ name: 'Average Response Time', key: 'totalAvgResponseTime' },
],
colors: ['#00ffee', '#eeff00'],
},
{
title: 'Number of Users',
lines: [{ name: 'Number of Users', key: 'userCount' }],
colors: ['#0099ff'],
},
];

Expand Down