Comments (7)
@archmoj Updated the description with codesandbox link. Thanks!
from plotly.js.
Interesting, thanks @hatienloi!
I suspect this is due to the fact that with JS floating point, 171.95 actually IS closer to 171.9 than to 172.0:
> 171.95-171
0.9499999999999886
And if so it's going to be tough to fix without breaking numbers that are just a little bit lower, like 171.949999, so really SHOULD round down.
If anyone is interested in taking a crack at this, it will be crucial to add good unit tests
from plotly.js.
Interesting, thanks @hatienloi!
I suspect this is due to the fact that with JS floating point, 171.95 actually IS closer to 171.9 than to 172.0:
> 171.95-171 0.9499999999999886And if so it's going to be tough to fix without breaking numbers that are just a little bit lower, like 171.949999, so really SHOULD round down.
If anyone is interested in taking a crack at this, it will be crucial to add good unit tests
@alexcjohnson Yes, so weird. Could we have a fix for it
from plotly.js.
Thanks for the report.
Please provide a link to your codepen in the issue description.
from plotly.js.
@archmoj Updated the description with codesandbox link. Thanks!
Please note the "latest" bundle you are using is last v1.
In this codepen I use latest v2 plotly.js and I get 172.0
in the hover. Do you get the same number?
from plotly.js.
@archmoj Updated the description with codesandbox link. Thanks!
Please note the "latest" bundle you are using is last v1. In this codepen I use latest v2 plotly.js and I get
172.0
in the hover. Do you get the same number?
@archmoj With 171.9599999
i got the same number like you. But with 171.95
it stills 171.9
from plotly.js.
Hi @archmoj Any update for it? Do we have a patch fix for it?
from plotly.js.
Related Issues (20)
- Plotly-basic.js + table HOT 2
- Display tooltips on zero value bars HOT 2
- Histograms on splom diagonals HOT 4
- Improve `scattermapbox.textfont` family options and descriptions
- Y-axis autoscaling with X-axis range change
- how to replace the color chunk in top heatmap
- Bug: `zorder` not working on overlaying subplots
- Add size option for layout.legend.itemsizing : 'constant' HOT 1
- Color array or color scale do not work in patterned markers hover x unified hovermode HOT 1
- *axis* `hoversubplots` should work with `matches` axes HOT 1
- Shape labels not working anymore - since v2.33.0
- Add `word-spacing` option to SVG text fonts
- Enhancement of Plotly Parallel Coordinates Plot with Hover Data Functionality HOT 1
- Fast scroll zoom results in out of memory error
- Change single point color
- Multiple legends no longer work starting with v2.25.0
- partial autorange gets overridden on subsequent `react` calls
- Port v3 Chord diagrams to v4
- Replace country-regex Part 2
- [Request] Level-of-detail for scatter plots (and geo/sf plots) (re-open: #4190)
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.