GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — fix: Convert CSS color specifiers to rgba in gl traces by camdecoster · Pull Request #8119 · plotly/plotly.js Conversation
|
| Before | After |
|---|---|
![]() |
![]() |
const c = 'oklch(0.7 0.15 30)'; const trace = { x: [1, 2, 3], y: [1, 3, 2], mode: 'lines+text', text: ['a', 'b', 'c'], textposition: 'top center', line: { color: c, width: 4 }, fill: 'tozeroy', fillcolor: c, textfont: { color: c, size: 20 }, error_y: { array: [0.5, 0.5, 0.5], color: c, thickness: 3 } }; Plotly.newPlot(gd, [ { ...trace, type: 'scatter', name: 'scatter' }, { ...trace, type: 'scattergl', name: 'scattergl', xaxis: 'x2', yaxis: 'y2' } ], { grid: { rows: 1, columns: 2, pattern: 'independent' }, width: 800, height: 400 });
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good here! 💃
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[BUG]:scattergl renders line.color, fillcolor, error_x.color, error_y.color, and textfont.color incorrectly with modern CSS color spaces
There was an error while loading. Please reload this page.