Hello to all,
This is a general problem in all histogram-based visualizations of the dynamic data, but can you share your solutions to the bars1->setWidth(40/(double)x.size());
for the bar charts (I mean the dynamic setWidth method in general or specific for QCustomPlot)?
The issue arises since the input data (in the app that I make) is not of the same length each time, so when I want bars with constant (or nearly so) size, I get too wide bins when the data length is small, so that they cover the entire plot area. The opposite is true for the longer inputs.