Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
322 views
in Technique[技术] by (71.8m points)

Is there a way to change color bar range of values interactively in Plotly JavaScript?

I am working on an application that shows a heatmap with a colorbar with plotly.js library, as follows:

enter image description here

I have set in the configuration editable:true. That allows to change the xaxis and yaxis limits, title and labels of the heatmap. However, it does not allow to change the limits of the colorbar.

Looking into plotly reference, I know they can be changed by setting the values of zmax, zmid and zmin (https://plotly.com/javascript/reference/heatmap/). However, I was looking for a more interactive way of doing this with the editable feature, just as it can be done for the xaxis and yaxis.

Does anyone knows a way of doing this? Thank you in advance.

question from:https://stackoverflow.com/questions/65843116/is-there-a-way-to-change-color-bar-range-of-values-interactively-in-plotly-javas

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...