Skip to content

Commit

Permalink
label trend test run name (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy authored Apr 20, 2022
1 parent e9f1c03 commit cee6faf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/app/graphs/label-trend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@ export const labelTrendChartOptions = (data: LabelTrend) => {
lineWidth: 0,
crosshair: true,
categories: data.chartSeries.timePoints,
tickInterval: 5,
gridLineWidth: 0,
labels: {
useHTML: true,
formatter: (ctx) => {
const name = data.chartSeries.name[ctx.pos]
return `${ctx.isFirst || ctx.isLast ? ctx.value : ""}<br><span>
<p>${name?.length > 20 ? name.substring(0, 15) + "...": name}</p>
</span>`;
}
}
}],
yAxis: [{ // Primary yAxis
labels: {
Expand Down
1 change: 1 addition & 0 deletions src/app/items.service.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ export interface LabelTrend {
avgLatency: number[],
avgConnectionTime: number[],
avgResponseTime: number[],
name: string[],
},
chartSettings: {
virtualUsers: boolean,
Expand Down

0 comments on commit cee6faf

Please sign in to comment.