@@ -5,13 +5,13 @@ import type { ExploreAggregations } from '@kong-ui-public/analytics-utilities'
5
5
6
6
// Chart.js extended interfaces
7
7
export type Dataset = ChartDataset & {
8
- rawDimension : string ,
9
- rawMetric ?: string ,
10
- total ?: number ,
11
- lineTension ?: number ,
12
- fill ?: boolean ,
13
- isThreshold ?: boolean ,
14
- isSegmentEmpty ?: boolean ,
8
+ rawDimension : string
9
+ rawMetric ?: string
10
+ total ?: number
11
+ lineTension ?: number
12
+ fill ?: boolean
13
+ isThreshold ?: boolean
14
+ isSegmentEmpty ?: boolean
15
15
}
16
16
17
17
export interface KChartData extends ChartData {
@@ -21,8 +21,8 @@ export interface KChartData extends ChartData {
21
21
}
22
22
23
23
export interface AnalyticsDataPoint {
24
- x : number ,
25
- y : number ,
24
+ x : number
25
+ y : number
26
26
}
27
27
28
28
/**
@@ -38,9 +38,9 @@ export interface AnalyticsChartColors {
38
38
}
39
39
40
40
export interface LegendValueEntry {
41
- raw : number ,
42
- formatted : string ,
43
- isThreshold ?: boolean ,
41
+ raw : number
42
+ formatted : string
43
+ isThreshold ?: boolean
44
44
}
45
45
46
46
/**
@@ -70,33 +70,33 @@ export interface AnalyticsChartOptions {
70
70
* If stacked, the datasets are stacked on top of each other.
71
71
* Applies to timeseries charts as well as bar charts.
72
72
*/
73
- stacked ?: boolean ,
73
+ stacked ?: boolean
74
74
/**
75
75
* Title to display for the metric axis
76
76
* If not provided, show nothing
77
77
*/
78
- metricAxesTitle ?: string ,
78
+ metricAxesTitle ?: string
79
79
/**
80
80
* Title to display for the dimension axis
81
81
* If not provided, show nothing
82
82
*/
83
- dimensionAxesTitle ?: string ,
83
+ dimensionAxesTitle ?: string
84
84
/**
85
85
* Chart dataset color palette
86
86
*/
87
- chartDatasetColors ?: AnalyticsChartColors | string [ ] ,
87
+ chartDatasetColors ?: AnalyticsChartColors | string [ ]
88
88
/**
89
89
* Sort the datasets as they are displayed in the legend and tooltip
90
90
*/
91
- chartLegendSortFn ?: ChartLegendSortFn ,
91
+ chartLegendSortFn ?: ChartLegendSortFn
92
92
/**
93
93
* Sort tooltip entries
94
94
*/
95
- chartTooltipSortFn ?: ChartTooltipSortFn ,
95
+ chartTooltipSortFn ?: ChartTooltipSortFn
96
96
/**
97
97
* A static or dynamic metric threshold to be displayed on a timeseries chart
98
98
*/
99
- threshold ?: Record < ExploreAggregations , number > ,
99
+ threshold ?: Record < ExploreAggregations , number >
100
100
}
101
101
102
102
/**
@@ -117,23 +117,23 @@ export interface SimpleChartOptions {
117
117
/**
118
118
* Chart dataset color palette
119
119
*/
120
- chartDatasetColors ?: AnalyticsChartColors | string [ ] ,
120
+ chartDatasetColors ?: AnalyticsChartColors | string [ ]
121
121
/**
122
122
* Determines how much detail about the metric (eg: value, info text, etc) is to be shown in the center
123
123
*/
124
- metricDisplay ?: SimpleChartMetricDisplay ,
124
+ metricDisplay ?: SimpleChartMetricDisplay
125
125
/**
126
126
* Determines whether the dataset order will be reversed
127
127
*/
128
- reverseDataset ?: boolean ,
128
+ reverseDataset ?: boolean
129
129
/**
130
130
* Determines which dataset value will be display as large text
131
131
*/
132
- numerator ?: number ,
132
+ numerator ?: number
133
133
/**
134
134
* Determines number of decimal points to display in SingleValue chart
135
135
*/
136
- decimalPoints ?: number ,
136
+ decimalPoints ?: number
137
137
}
138
138
139
139
export interface LegendValues {
@@ -148,8 +148,8 @@ export interface DonutChartData {
148
148
}
149
149
150
150
export interface DatasetLabel {
151
- name : string ,
152
- id : string ,
151
+ name : string
152
+ id : string
153
153
}
154
154
155
155
export interface TopNTableRecord {
0 commit comments