How does one create a QChart Colorbar?
-
Hello,
I am using Qt Charts for a project. It can do almost everything I want, but I cannot figure out how to create a plot colorbar (like this one in Matplotlib https://matplotlib.org/3.4.3/gallery/axes_grid1/simple_colorbar.html). I don't see any examples with a colorbar and google searches for a QT colorbar aren't turning up much. I want to make sure that colorbar's don't already exist before I go recreating the wheel. Is there an existing Qt Charts colorbar object? If not is there another QT library with a colorbar
Thanks
-
Hello,
I am using Qt Charts for a project. It can do almost everything I want, but I cannot figure out how to create a plot colorbar (like this one in Matplotlib https://matplotlib.org/3.4.3/gallery/axes_grid1/simple_colorbar.html). I don't see any examples with a colorbar and google searches for a QT colorbar aren't turning up much. I want to make sure that colorbar's don't already exist before I go recreating the wheel. Is there an existing Qt Charts colorbar object? If not is there another QT library with a colorbar
Thanks
@Stewman-Phil
Looking at the Matplotlib simple_colorbar I have absolutely no idea what it is telling me! :)
I suppose the "stacked bar" stuff in https://doc.qt.io/qt-6/qtcharts-overview.html#bar-charts does not do whatever you want? -
My apologies. I am looking for something like this.

I want to be able to give a numerical range and get a colored bar with tick marks.
-
My apologies. I am looking for something like this.

I want to be able to give a numerical range and get a colored bar with tick marks.
@Stewman-Phil Can you do this with the "stacked bar" stuff?
-
I don't believe one could do this with the stacked bar chart, but maybe I am mistaken?
-
I don't believe one could do this with the stacked bar chart, but maybe I am mistaken?
@Stewman-Phil
have you found the method ? i have the same problem