revert: roll back signature quality period trends
This commit is contained in:
@@ -31,30 +31,6 @@ export function createLineOption(params: {
|
||||
};
|
||||
}
|
||||
|
||||
export function createQualityTrendOption(params: {
|
||||
labels: string[];
|
||||
sent: number[];
|
||||
delivered: number[];
|
||||
rates: number[];
|
||||
}): EChartsOption {
|
||||
return {
|
||||
color: [...chartPalette],
|
||||
grid: { left: 12, right: 18, top: 42, bottom: 8, containLabel: true },
|
||||
legend: { top: 0, right: 0, textStyle: { color: themeColors.textMuted } },
|
||||
tooltip: { trigger: 'axis' },
|
||||
xAxis: { type: 'category', data: params.labels, ...axisStyle },
|
||||
yAxis: [
|
||||
{ type: 'value', name: '业务条数', minInterval: 1, ...axisStyle },
|
||||
{ type: 'value', name: '到达率', min: 0, max: 100, ...axisStyle, axisLabel: { formatter: '{value}%', color: themeColors.textMuted } },
|
||||
],
|
||||
series: [
|
||||
{ name: '发送业务条数', data: params.sent, type: 'line', smooth: true, symbolSize: 6, lineStyle: { width: 3 } },
|
||||
{ name: '到达业务条数', data: params.delivered, type: 'line', smooth: true, symbolSize: 6, lineStyle: { width: 3 } },
|
||||
{ name: '到达率', data: params.rates, type: 'line', yAxisIndex: 1, smooth: true, symbolSize: 6, lineStyle: { width: 3 } },
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
export function createBarOption(params: {
|
||||
labels: string[];
|
||||
series: Array<{ name: string; data: number[] }>;
|
||||
|
||||
Reference in New Issue
Block a user