Comments (2)
Thanks @baptistelabat-syroco!
Looks like the SVG engine treats the start and end points as identical in this case, so it can't figure out how to draw the nearly-360-degree arc. We already catch this when the arc is exactly 360 degrees:
plotly.js/src/traces/pie/plot.js
Lines 101 to 111 in f316a7a
Seems like we just need to loosen this criterion. Might as well do this for any slice bigger than 50%. Should be as simple as changing pt.v === cd0.vTotal
to pt.v > cd0.vTotal / 2
and changing a couple of those pt.px0
to pt.px1
(probably the last one in the main arc and the first in the hole)... then adding the condition you found to a test image. Feel like making a PR???
from plotly.js.
Hi alexcjohnson, I am coding more in python than javascript, so not sure how to handle and test this.
We have a workaround in python, but better to correct it at root.
values=np.round(np.array(values) / max(values), 6)*max(values)
I'll let you know if I can find more time to invest or find support for this.
from plotly.js.
Related Issues (20)
- Special characters in plotly.js causing minification and packaging issues HOT 3
- Relayout not provided with event data after mousewheel zoom
- Add option to hide that would otherwise be too large to fit or too small to read HOT 1
- Weird ordering of elements in Parallel Categories Plot HOT 8
- Scatterpolargl texttemplate displays incorrectly
- text only used for leaves not "branches" in treemap HOT 1
- Axis labels are not shown for all subplots when using plotly express, facets and string labels HOT 3
- Inner div breaks the border of outer div when there is a scroll bar
- Adding Belarusian language HOT 1
- wrong bar height if y values contains negative number, but the sum is postive HOT 2
- omitted base in index.d.ts
- Cannot reference single-string `text` or `hovertext` in `hovertemplate` HOT 3
- Feature request: `'toggleitem'` for `layout.legend.groupdoubleclick`
- Shared axis for Scattergeo and other map plots HOT 1
- scattergl: categorical data is not drawn while zooming or panning
- Controls bugged on Safari
- Adding a hoveron for lines+points and having marker height and width style HOT 1
- A way to make the lasso selection of a plotly express scatter_matrix restrictive instead of additive
- Plotly fails when using "scattergl" and value greater than 2^24 [Only on M1] HOT 16
- Issue Related to Plotting large set of data approx(90k) in latest versions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plotly.js.