From 7839ee9b7f99706c2465c32db862de96eb5755f6 Mon Sep 17 00:00:00 2001 From: Austen Stone Date: Wed, 20 Nov 2024 16:23:23 -0500 Subject: [PATCH] Refactor copilot seat component by standardizing object property syntax and enhancing chart options for better readability --- .../copilot-seat/copilot-seat.component.ts | 31 ++++++++++++------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/frontend/src/app/main/copilot/copilot-seats/copilot-seat/copilot-seat.component.ts b/frontend/src/app/main/copilot/copilot-seats/copilot-seat/copilot-seat.component.ts index e13a76f..cc7f454 100644 --- a/frontend/src/app/main/copilot/copilot-seats/copilot-seat/copilot-seat.component.ts +++ b/frontend/src/app/main/copilot/copilot-seats/copilot-seat/copilot-seat.component.ts @@ -30,25 +30,34 @@ export class CopilotSeatComponent implements OnInit { Highcharts: typeof Highcharts = Highcharts; updateFlag = false; chartOptions: Highcharts.Options = { - "title": { - "text": "Seat Activity by Editor" + title: { + text: "Seat Activity by Editor" }, - "xAxis": { - "type": "datetime" + xAxis: { + type: "datetime" }, legend: { enabled: false }, - "series": [ + series: [ { - "name": "Seat Activity", - "type": "gantt", - "data": [] + name: "Seat Activity", + type: "gantt", + data: [] } ], - "tooltip": {}, - "yAxis": { - "categories": [ + plotOptions: { + gantt: { + borderWidth: 0, + borderColor: undefined, + dataLabels: { + enabled: true + } + } + }, + tooltip: {}, + yAxis: { + categories: [ "vscode", "copilot-summarization-pr" ]