I don't even really know how to search for this, so I apologize if this has been asked already. I couldn't find anything.
I have data for a bunch of tests which is structured like so:
+---------+---------+-----------+-----------+
| TESTNUM | TEST_HR | CHEM1_HRX | CHEM2_HRX |
+---------+---------+-----------+-----------+
| 1 | 1 | 5 | 3 |
| 1 | 2 | 6 | 7 |
| 1 | 3 | 10 | 15 |
| 1 | 4 | 15 | 25 |
| 2 | 1 | 4 | 3 |
| 2 | 2 | 5 | 9 |
| 2 | 3 | 9 | 18 |
| 2 | 4 | 12 | 30 |
+---------+---------+-----------+-----------+
This chart is being pumped in by a database query, so I want it to be expandable and dynamic. It's basically two tests worth of chemical analysis, where a sample is taken every hour and tested. I cannot seem to wrap my head around a method of using a pivot table to display a scatter plot of TEST_HR and CHEM_1_HRX, and similar for CHEM_2_HRX. I had a method going using just tables, and it worked well, but required rework every time I updated the query to include more tests.