Skip to content

Commit 56f62ec

Browse files
committed
Refine chart styling: alpha=0.5 default, smaller font hierarchy, line fill, centered containers
1 parent 857466a commit 56f62ec

File tree

12 files changed

+65
-18
lines changed

12 files changed

+65
-18
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@ For grouped bars, use multiple datasets with `type: bar`.
561561
| `data` || Comma-separated values (single dataset) |
562562
| `datasets` || Multiple datasets (see multi-dataset example) |
563563
| `palette` | `cdl` | Color palette name |
564+
| `alpha` | `0.5` | Fill opacity (0.0–1.0) |
564565
| `caption` || Caption text below the chart |
565566
| `width` | `85%` | Chart container width |
566567
| `height` | `350px` | Chart container height |

docs/screenshots/chart-02-bar.png

9.39 KB
Loading

docs/screenshots/chart-03-line.png

-14 KB
Loading
12.2 KB
Loading

docs/screenshots/chart-05-pie.png

11.6 KB
Loading
8.18 KB
Loading
-2.88 KB
Loading
-11.4 KB
Loading

docs/screenshots/poster-sample.png

12.6 KB
Loading

src/cdl_slides/assets/js/chart-defaults.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@
100100
// ==========================================================================
101101
const FONT_CONFIG = {
102102
sizes: {
103-
title: 32, // Chart title
104-
subtitle: 28, // Subtitle
105-
legend: 28, // Legend labels
106-
axisTitle: 28, // Axis titles
107-
axisTicks: 26, // Axis tick labels
108-
tooltip: 24, // Tooltip text
109-
dataLabels: 24, // Data labels on charts
103+
title: 24, // Chart title
104+
subtitle: 20, // Subtitle
105+
legend: 18, // Legend labels (same as ticks)
106+
axisTitle: 20, // Axis titles
107+
axisTicks: 18, // Axis tick labels
108+
tooltip: 16, // Tooltip text
109+
dataLabels: 16, // Data labels on charts
110110
},
111111
weight: {
112112
normal: 400,

0 commit comments

Comments
 (0)