Skip to content

Commit

Permalink
Add missing Server Performance chart legend (#96960)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekn authored Dec 4, 2024
1 parent b2580e1 commit ea8747a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ interface SeriesProp {
scale?: string;
unit?: string;
showInLegend?: boolean;
showInTooltip?: boolean;
}

export function formatChartHour( date: Date ): string {
Expand Down
4 changes: 4 additions & 0 deletions client/sites/tools/monitoring/components/site-monitoring.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -587,13 +587,17 @@ export const SiteMonitoring = ( { className }: { className?: string } ) => {
fill: colorToAlpha( 'WordPress Blue 50', 0.1 ),
label: __( 'Requests per minute' ),
stroke: colorStudio.colors[ 'WordPress Blue 50' ],
showInLegend: true,
showInTooltip: true,
},
{
fill: colorToAlpha( 'Yellow 30', 0.2 ),
label: __( 'Average response time (ms)' ),
stroke: colorStudio.colors[ 'Yellow 30' ],
scale: 'average-response-time',
unit: 'ms',
showInLegend: true,
showInTooltip: true,
},
] }
isLoading={ isLoadingLineChart }
Expand Down

0 comments on commit ea8747a

Please sign in to comment.