We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Try out the following example and click on "No Text" link.
<head> <!-- Plotly.js --> <script src="https://cdn.plot.ly/plotly-latest.min.js"></script> </head> <body> <div id="myDiv"><!-- Plotly chart will be drawn inside this DIV --></div> <script> var xValue = ['Product A', 'Product B', 'Product C']; var yValue = [20, 14, 23]; var trace1 = { x: xValue, y: yValue, type: 'bar', text: yValue, textposition: 'auto', hoverinfo: 'none', marker: { color: 'rgb(158,202,225)', opacity: 0.6, line: { color: 'rbg(8,48,107)', width: 1.5 } } }; var data = [trace1]; var layout = { title: 'January 2013 Sales Report' }; Plotly.newPlot('myDiv', data, layout); function no_text() { Plotly.restyle('myDiv', {textposition: ['none']}, [0]); } </script> <a href="javascript:no_text()">No Text</a> </body>
The text was updated successfully, but these errors were encountered:
Thanks @kochelmonster - there's another bug if you delete the text array:
Plotly.restyle(gd, {text: null})
The text doesn't disappear, and gets stuck in place if you pan/zoom on the plot:
Sorry, something went wrong.
@etpinard seems like these came in with some of the 🐎 optimizations between 1.36 and 1.37 https://codepen.io/alexcjohnson/pen/jKbmmV
optimizations between 1.36 and 1.37
Ok. On it!
It's from #2574, where we 🔪 that ugly selectAll('.trace') on each Cartesian.plot call.
selectAll('.trace')
Cartesian.plot
Successfully merging a pull request may close this issue.
Try out the following example and click on "No Text" link.
The text was updated successfully, but these errors were encountered: