SYNC: chart labels for pie chart

This commit is contained in:
SPRINX0\prochazka
2025-06-09 10:15:23 +02:00
committed by Diflow
parent 171d58658a
commit e77b83bd92
4 changed files with 9 additions and 1 deletions

View File

@@ -49,6 +49,8 @@ export interface ChartDefinition {
xdef: ChartXFieldDefinition;
ydefs: ChartYFieldDefinition[];
useDataLabels?: boolean;
}
export interface ChartDateParsed {

View File

@@ -637,7 +637,7 @@ export function parseNumberSafe(value) {
return parseFloat(value);
}
const frontMatterRe = /^--\ >>>[ \t]*\n(.*)\n-- <<<[ \t]*\n/s;
const frontMatterRe = /^--\ >>>[ \t\r]*\n(.*)\n-- <<<[ \t\r]*\n/s;
export function getSqlFrontMatter(text: string, yamlModule) {
const match = text.match(frontMatterRe);

View File

@@ -24,6 +24,7 @@
"ace-builds": "^1.36.5",
"chart.js": "^4.4.2",
"chartjs-adapter-moment": "^1.0.0",
"chartjs-plugin-datalabels": "^2.2.0",
"cross-env": "^7.0.3",
"dbgate-datalib": "^6.0.0-alpha.1",
"dbgate-query-splitter": "^4.11.5",