|
@@ -53,7 +53,7 @@ type ContainerProps = WithRouterProps & {
|
|
|
|
|
|
type Props = Pick<ContainerProps, 'organization' | 'isLoading' | 'error' | 'totals'> & {
|
|
|
chartData: {
|
|
|
- chartOptions: Record<string, any>;
|
|
|
+ chartOptions: Omit<LineChartProps, 'series'>;
|
|
|
errored: boolean;
|
|
|
loading: boolean;
|
|
|
reloading: boolean;
|
|
@@ -252,7 +252,7 @@ function SidebarChartsContainer({
|
|
|
},
|
|
|
};
|
|
|
|
|
|
- const chartOptions = {
|
|
|
+ const chartOptions: Omit<LineChartProps, 'series'> = {
|
|
|
height: 480,
|
|
|
grid: [
|
|
|
{
|
|
@@ -280,7 +280,7 @@ function SidebarChartsContainer({
|
|
|
},
|
|
|
xAxes: Array.from(new Array(3)).map((_i, index) => ({
|
|
|
gridIndex: index,
|
|
|
- type: 'time' as const,
|
|
|
+ type: 'time',
|
|
|
show: false,
|
|
|
})),
|
|
|
yAxes: [
|
|
@@ -289,7 +289,7 @@ function SidebarChartsContainer({
|
|
|
gridIndex: 0,
|
|
|
interval: 0.2,
|
|
|
axisLabel: {
|
|
|
- formatter: (value: number) => formatFloat(value, 1),
|
|
|
+ formatter: (value: number) => `${formatFloat(value, 1)}`,
|
|
|
color: theme.chartLabel,
|
|
|
},
|
|
|
...axisLineConfig,
|
|
@@ -320,9 +320,9 @@ function SidebarChartsContainer({
|
|
|
utc,
|
|
|
isGroupedByDate: true,
|
|
|
showTimeInTooltip: true,
|
|
|
- colors: [colors[0], colors[1], colors[2]] as string[],
|
|
|
+ colors: [colors[0], colors[1], colors[2]],
|
|
|
tooltip: {
|
|
|
- trigger: 'axis' as const,
|
|
|
+ trigger: 'axis',
|
|
|
truncate: 80,
|
|
|
valueFormatter: tooltipFormatter,
|
|
|
nameFormatter(value: string) {
|