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)
- hoversubplots="axis" with hovermode="x" on stacked traces, shows x-axis label on first trace
- Feature Request: GeoJSON Layer Display
- Handle empty data in heatmaps
- Documentation for heatmap, boxplot, etc
- different spacing between tick labels and axis title with multi line text
- Colorbar Orientation Change Causes Render Issue
- Support `text-shadow` in SVG text
- Support `text-overflow` in SVG text
- Support `user-select` text from the graph elements HOT 2
- Clickmode "event+select" activated and Clicking outside of Graph calls onUpdate incorrectly HOT 1
- how can we set tick for bar
- Need help with multiple axes and subplots
- Hovertemplate use html tag is not working
- [FR] Change the height of the legend graphic (specifically for fill)
- Plotly-basic.js + table HOT 2
- Display tooltips on zero value bars HOT 2
- Histograms on splom diagonals HOT 3
- Improve `scattermapbox.textfont` family options and descriptions
- Y-axis autoscaling with X-axis range change
- how to replace the color chunk in top heatmap
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.