I'm creating a QChart bar plot. I have a previously unknown number of QBarSets (I know the number of QBarSets during runtime - but maybe between 1-10) and a, possibly high number of categories (10-1000).
QVector<QBarSet*> barSets;
for(int i=0; i<n; ++i){ // n between 1-10
QBarSet *set = new QBarSet("");
for(int j=0; j<m; ++j){ // m between 1-1000
*set << someValue;
}
barSets.push_back(set);
}
QBarSeries* series = new QBarSeries();
for(int i=0; i<barSets.count(); ++i){
series->append(barSets.at(i));
}
everything else is almost the same as described here.
My problem is that every bar gets very very tiny. I would like to plot each bar with a fixed width and maybe use a Horizontal Scroll Bar to scroll through the categories.
Does someone have a tiny example how to do this?