Hi, I am a newer to Qt and Qwt and I got a problem with barchart:
When I set data with function "setSamples( QVector<double> &_data )",
if there is only one data in the QVector (means "_data.size() == 1" is true ) and the orientation is Qt::Horizontal,
charts goes wrong like this:
qwt_problem.png
What did I do is running the example named "distrowatch" and modified the codes like this:
qwt_problem_modify.PNG
This problem appears on both barchart and multi_barchart.
Actually I have try to figure out the problem with debuging the qwt for several hours.
Yet I can not figure out why, but I found the x axis is set wrongly to -0.6 to 0.6 and y axis is set wrongly to 0 to 1200 in this situation so transform and scale works wrongly due to the bad range.
I am working on a project with barchart so I really need your help.
Thanks.
Best regards.
I am using Qwt 6.1
Bookmarks