I want to visualize cross table data by Qt + free graph chart lib.
The structure is very simple .
I have 120 drivers and 15 cars.
Each driver has driven all/some of the cars. That means each car has been used by one or more drivers :)
So the result we have a table of numbers. Let say as below
| | Cra1 | Car2 | Car3 | ...... | Total D
Driver 1| 0 | 3 | 1 | ...... | 4
Driver 2| 1 | 7 | 9 | ...... | 17
Driver 3| 9 | 3 | 8 | ...... | 20
.... ... ... ...
Total C | 10 | 13 | 18 |
The chart must represent three things:
1-The crosses table values.
2-The number of cars that each driver has driven.
3-The a number of drivers that have driven a particular car.
Please see the attached file for more explanation.
I'll provide you with the base project (it has no graph just a sample data placed in a QTablewidget)