Skip to content

Commit

Permalink
Merge pull request #6928 from plotly/fix6685-case-insenstive-colors-s…
Browse files Browse the repository at this point in the history
…cattergl

Fix `scattergl` rendering when colors include capital letters
  • Loading branch information
archmoj authored Mar 15, 2024
2 parents c5fdc36 + a70265f commit a7df816
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 14 deletions.
2 changes: 2 additions & 0 deletions draftlogs/6928_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Fix scattergl rendering when colors include capital letters [[#6928](https://github.com/plotly/plotly.js/pull/6928)],
with thanks to @28raining and @dy for the contribution!
58 changes: 45 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"canvas-fit": "^1.5.0",
"color-alpha": "1.0.4",
"color-normalize": "1.5.0",
"color-parse": "1.3.8",
"color-parse": "2.0.0",
"color-rgba": "2.1.1",
"country-regex": "^1.1.0",
"d3-force": "^1.2.1",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions test/image/mocks/zz-gl2d-case-insenstive-colors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"data": [
{
"type": "scatter",
"name": "svg - `RED`",
"x": [
1,
2,
3,
4
],
"y": [
10,
15,
13,
17
],
"mode": "markers",
"marker": {
"color": "RED",
"size": 12
}
},
{
"type": "scattergl",
"name": "GL - `BLUE`",
"x": [
1,
2,
3,
4
],
"y": [
9,
14,
12,
16
],
"mode": "markers",
"marker": {
"color": "BLUE",
"size": 12
}
}
],
"layout": {
"title": {
"text": "ScatterGL named-colors should be case-insensitive"
},
"showlegend": true
}
}

0 comments on commit a7df816

Please sign in to comment.