Skip to content

Commit

Permalink
fix blue color in charts
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Sep 15, 2024
1 parent 500cd0f commit 555519e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- **Important note**: this version removes support for the `SET $variable = ...` syntax in SQLite. This worked only with some databases. You should replace all occurrences of this syntax with `SET variable = ...` (without the `$` prefix).
- slightly reduce the margin at the top of pages to make the content appear higher on the screen.
- fix the display of the page title when it is long and the sidebar display is enabled.
- Fix an issue where the color name `blue` could not be used in the chart component.

## 0.28.0 (2024-08-31)
- Chart component: fix the labels of pie charts displaying too many decimal places.
Expand Down
2 changes: 1 addition & 1 deletion sqlpage/apexcharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

function sqlpage_chart() {

const tblrColors = Object.fromEntries(['azure', 'red', 'lime', 'purple', 'yellow', 'gray-600', 'orange', 'pink', 'teal', 'indigo', 'cyan', 'green', 'blue-lt', 'yellow-lt', 'pink-lt', 'green-lt', 'orange-lt', 'gray-500', 'gray-400', 'gray-300', 'gray-200', 'gray-100', 'gray-50', 'black']
const tblrColors = Object.fromEntries(['azure', 'red', 'lime', 'purple', 'yellow', 'gray-600', 'orange', 'pink', 'teal', 'indigo', 'cyan', 'green', 'blue-lt', 'yellow-lt', 'pink-lt', 'green-lt', 'orange-lt', 'blue', 'gray-500', 'gray-400', 'gray-300', 'gray-200', 'gray-100', 'gray-50', 'black']
.map(c => [c, getComputedStyle(document.documentElement).getPropertyValue('--tblr-' + c)]));

/** @typedef { { [name:string]: {data:{x:number,y:number}[], name:string} } } Series */
Expand Down

0 comments on commit 555519e

Please sign in to comment.