ngx-t-reports
Version:
Angular module for creating dynamic reports and dashboards. Supports various data sources, custom templates, and real-time updates.
198 lines (197 loc) • 4.82 kB
TypeScript
import { EChartsOption } from "echarts";
export declare function createADonutChart(id: string, title: string, dataSeries: {
value: number;
name: string;
}[]): {
title: string;
id: string;
chart: {
toolbox: {
show: boolean;
feature: {
mark: {
show: boolean;
};
dataView: {
show: boolean;
readOnly: boolean;
};
restore: {
show: boolean;
};
saveAsImage: {
show: boolean;
};
};
};
grid: {
top: number;
};
tooltip: {
trigger: string;
};
legend: {
top: string;
left: string;
};
series: {
name: string;
type: string;
radius: string[];
avoidLabelOverlap: boolean;
itemStyle: {
borderRadius: number;
borderColor: string;
borderWidth: number;
};
label: {
show: boolean;
};
emphasis: {
label: {
show: boolean;
fontSize: string;
fontWeight: string;
};
};
labelLine: {
lineStyle: {
color: string;
};
};
data: {
value: number;
name: string;
}[];
}[];
};
};
export declare function createABarChart(id: string, title: string, dataSeries: {
value: number;
name: string;
}[]): {
title: string;
id: string;
chart: {
toolbox: {
show: boolean;
feature: {
mark: {
show: boolean;
};
dataView: {
show: boolean;
readOnly: boolean;
};
restore: {
show: boolean;
};
saveAsImage: {
show: boolean;
};
};
};
tooltip: {
trigger: string;
axisPointer: {
type: string;
};
};
grid: {
left: string;
right: string;
bottom: string;
containLabel: boolean;
};
xAxis: {
type: string;
data: string[];
axisTick: {
alignWithLabel: boolean;
};
}[];
yAxis: {
type: string;
}[];
series: {
name: string;
type: string;
label: {
show: boolean;
};
emphasis: {
label: {
show: boolean;
fontSize: string;
fontWeight: string;
};
};
labelLine: {
lineStyle: {
color: string;
};
};
data: {
itemStyle: {
color: string | undefined;
};
value: number;
name: string;
}[];
}[];
};
};
export declare function createRoseTypeChart(id: string, title: string, dataSeries: {
value: number;
name: string;
}[]): {
title: string;
id: string;
chart: {
legend: {
top: string;
};
toolbox: {
show: boolean;
feature: {
mark: {
show: boolean;
};
dataView: {
show: boolean;
readOnly: boolean;
};
restore: {
show: boolean;
};
saveAsImage: {
show: boolean;
};
};
};
series: {
name: string;
type: string;
radius: number[];
center: string[];
roseType: string;
itemStyle: {
borderRadius: number;
};
data: {
value: number;
name: string;
}[];
}[];
};
};
export declare function createAPolarChart(id: string, title: string, dataSeries: {
value: number;
name: string;
}[]): {
title: string;
id: string;
chart: EChartsOption;
};
export declare const colors: string[];
export declare function getColors(n: number): (string | undefined)[];