Use other composition for multiple graphs

"lighten" would result in a disappearing graph when too many graphs
overlapped, "exclusion" looks much better in this situation.
This commit is contained in:
Dunedan 2025-06-15 07:43:48 +02:00
parent ff754b8bb1
commit 256e3819df
No known key found for this signature in database
GPG key ID: 885B16854284E0B2

View file

@ -121,7 +121,7 @@ function draw_frequency_graph()
nb.textContent = type + " - n=" + time_by_frame.length;
legend.appendChild(nb);
context.globalCompositeOperation = "lighter";
context.globalCompositeOperation = "exclusion";
context.beginPath();
context.strokeStyle = colour;
context.lineWidth = 1;
@ -226,7 +226,7 @@ function draw_history_graph()
const time_by_frame = series_data[type];
context.beginPath();
context.globalCompositeOperation = "lighten";
context.globalCompositeOperation = "exclusion";
context.strokeStyle = colour;
context.lineWidth = 0.75;