Title: autocolorscale doesn't seem to pickup on diverging numberlines · Issue #3064 · plotly/plotly.js · GitHub
Open Graph Title: autocolorscale doesn't seem to pickup on diverging numberlines · Issue #3064 · plotly/plotly.js
X Title: autocolorscale doesn't seem to pickup on diverging numberlines · Issue #3064 · plotly/plotly.js
Description: I have a data set for employment in the US. When I use autocolorscale with a diverging set (i.e numbers that are negative and positive), many positive numbers get picked up as negative ones. Below is a Choropleth figure that this can be ...
Open Graph Description: I have a data set for employment in the US. When I use autocolorscale with a diverging set (i.e numbers that are negative and positive), many positive numbers get picked up as negative ones. Below ...
X Description: I have a data set for employment in the US. When I use autocolorscale with a diverging set (i.e numbers that are negative and positive), many positive numbers get picked up as negative ones. Below ...
Opengraph URL: https://github.com/plotly/plotly.js/issues/3064
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"autocolorscale doesn't seem to pickup on diverging numberlines","articleBody":"I have a data set for employment in the US. When I use autocolorscale with a diverging set (i.e numbers that are negative and positive), many positive numbers get picked up as negative ones. \r\n\r\nBelow is a Choropleth figure that this can be tested on. Only a few numbers are negative, yet the colorscale makes many of the states appear negative. This could easily be fixed if a zero could be applied to the scale, rather than percentage of zmin/zmax. \r\n\r\n```\r\nChoropleth({\r\n 'autocolorscale': True,\r\n 'hoverinfo': 'location+text',\r\n 'locationmode': 'USA-states',\r\n 'locations': [AL, AK, AZ, AR, CA, CO, CT, DE, DC, FL, GA, HI, ID, IL, IN, IA,\r\n KS, KY, LA, ME, MD, MA, MI, MN, MS, MO, MT, NE, NV, NH, NJ, NM,\r\n NY, NC, ND, OH, OK, OR, PA, RI, SC, SD, TN, TX, UT, VT, VA, WA,\r\n WV, WI, WY, GU, PR, VI],\r\n 'marker': {'line': {'color': '#ffffff', 'width': 1}},\r\n 'text': [9,580, -5,330, 51,060, 8,810, 728,430, 47,620, -11,860, 1,930, 5,840,\r\n 197,000, 89,120, 870, 22,140, 24,040, 27,230, 550, -5,070, 6,780,\r\n -20,110, 2,790, 23,430, 68,160, 63,950, 27,870, 2,190, 30,830, 6,000,\r\n 2,230, 39,290, 4,900, 52,120, -4,360, 110,220, 67,370, -8,530, 32,750,\r\n -13,890, 39,850, 34,590, 720, 29,640, 1,950, 22,710, 145,630, 35,770,\r\n 440, 29,360, 119,500, -8,910, 20,160, -8,140, 0, -7,580, 170],\r\n 'z': [9580.0, -5330.0, 51060.0, 8810.0, 728430.0, 47620.0, -11860.0, 1930.0,\r\n 5840.0, 197000.0, 89120.0, 870.0, 22140.0, 24040.0, 27230.0, 550.0,\r\n -5070.0, 6780.0, -20110.0, 2790.0, 23430.0, 68160.0, 63950.0, 27870.0,\r\n 2190.0, 30830.0, 6000.0, 2230.0, 39290.0, 4900.0, 52120.0, -4360.0,\r\n 110220.0, 67370.0, -8530.0, 32750.0, -13890.0, 39850.0, 34590.0, 720.0,\r\n 29640.0, 1950.0, 22710.0, 145630.0, 35770.0, 440.0, 29360.0, 119500.0,\r\n -8910.0, 20160.0, -8140.0, 0.0, -7580.0, 170.0]\r\n})\r\n```","author":{"url":"https://github.com/mbkupfer","@type":"Person","name":"mbkupfer"},"datePublished":"2018-10-01T22:48:20Z","url":"https://github.com/plotly/plotly.js/issues/3064"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ee0db8c8-2f4e-0c22-8b92-fc8f29f196cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC1E:3DA1E8:D14E75:116BB18:6B01CDC3 |
| html-safe-nonce | a895638ee1883867896ef6bf681cc7e13f40b54056a34cd99eb17fbded845315 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzFFOjNEQTFFODpEMTRFNzU6MTE2QkIxODo2QjAxQ0RDMyIsInZpc2l0b3JfaWQiOiIyMDE5ODI0NzM5NTYwODUxODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c7b878de6e004079e055a8e3034d1a59e1a0ce0db03d374376b7bc36490fbe40 |
| hovercard-subject-tag | issue:365673077 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/3064/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f530d66ae5e948a21bf06c2a05c00b517bc82bcb1bcc187e267ff187f601e9f/plotly/plotly.js/issues/3064 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f530d66ae5e948a21bf06c2a05c00b517bc82bcb1bcc187e267ff187f601e9f/plotly/plotly.js/issues/3064 |
| og:image:alt | I have a data set for employment in the US. When I use autocolorscale with a diverging set (i.e numbers that are negative and positive), many positive numbers get picked up as negative ones. Below ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mbkupfer |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width