Skip to content

Commit 64546c4

Browse files
committed
Update charting library and fix chart bugs
fixes #659
1 parent 6c94a5d commit 64546c4

File tree

4 files changed

+199
-181
lines changed

4 files changed

+199
-181
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG.md
22

3+
## unreleased
4+
- [update apexcharts.js to v4.0.0](https://github.com/apexcharts/apexcharts.js/releases)
5+
- Fix a bug where the chart library would be loaded multiple times when the page contained multiple charts. This made the page load slower and could cause issues with the chart library.
6+
- Fix a bug where [timeline chart tooltips displayed the wrong labels](https://github.com/sqlpage/SQLPage/issues/659).
7+
38
## 0.30.1 (2024-10-31)
49
- fix a bug where table sorting would break if table search was not also enabled.
510

examples/official-site/sqlpage/migrations/01_documentation.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ INSERT INTO component(name, icon, description) VALUES
542542
INSERT INTO parameter(component, name, description, type, top_level, optional) SELECT 'chart', * FROM (VALUES
543543
-- top level
544544
('title', 'The name of the chart.', 'TEXT', TRUE, TRUE),
545-
('type', 'The type of chart: "line", "area", "bar", "column", "pie", "scatter", "bubble", or "heatmap".', 'TEXT', TRUE, FALSE),
545+
('type', 'The type of chart. One of: "line", "area", "bar", "column", "pie", "scatter", "bubble", "heatmap", "rangeBar"', 'TEXT', TRUE, FALSE),
546546
('time', 'Whether the x-axis represents time. If set to true, the x values will be parsed and formatted as dates for the user.', 'BOOLEAN', TRUE, TRUE),
547547
('ymin', 'The minimal value for the y-axis.', 'REAL', TRUE, TRUE),
548548
('ymax', 'The maximum value for the y-axis.', 'REAL', TRUE, TRUE),
@@ -649,7 +649,7 @@ The `color` property sets the color of each series separately, in order.
649649
]')),
650650
('chart', 'A timeline displaying events with a start and an end date',
651651
json('[
652-
{"component":"chart", "title": "Project Timeline", "type": "rangeBar", "time": true, "color": ["teal", "cyan"], "labels": true },
652+
{"component":"chart", "title": "Project Timeline", "type": "rangeBar", "time": true, "color": ["teal", "cyan"], "labels": true, "xmin": "2021-12-28", "xmax": "2022-01-04" },
653653
{"series": "Phase 1", "label": "Operations", "value": ["2021-12-29", "2022-01-02"]},
654654
{"series": "Phase 2", "label": "Operations", "value": ["2022-01-03", "2022-01-04"]},
655655
{"series": "Yearly maintenance", "label": "Maintenance", "value": ["2022-01-01", "2022-01-03"]}

0 commit comments

Comments
 (0)