[Feature Request] expose the colorbar as a standalone graph object
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 24.4k
- Forks
- 2.3k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 13
Description
I tried to post my issue/feature request on the forum but OAuth with Google was not working anymore.
Is your feature request related to a problem? Please describe.
I need to build a custom colorbar for an object that comes from outside of dash but for consistency with the rest of the application, I would like to use a dash based colorbar. My problem is that i don't found any ways to build one without building a graph next to it.
The most promising solution I found on the web is this: https://stackoverflow.com/questions/76963287/plotly-create-standalone-colorbar
but it's just a trick where i would make the real bar disapear.
Describe the solution you'd like
I would like to get access to the colorbar object the same way I have access to it in the matplotlib interface:
import matplotlib.pyplot as plt
import matplotlib as mpl
fig = plt.figure()
ax = fig.add_axes([0.05, 0.80, 0.9, 0.1])
cb = mpl.colorbar.ColorbarBase(ax, orientation='horizontal',
cmap='RdBu')
plt.savefig('just_colorbar', bbox_inches='tight')
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how Dash graphs currently expose colorbars and compare that behavior with the linked Stack Overflow example and the matplotlib ColorbarBase example. No repository file, test, or entry point is named in the issue; done would mean providing a supported standalone Dash colorbar object without requiring a neighboring graph.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100