I have a C++ (MFC) XY chart with 12 layers (line and step line), each with its own dataset. I have two Y axes, and a single X axis.
For the purposes of this message, I'll refer to those datasets as 0-11
I've created the layers in a specific order (to group them in the legend):
0, 3, 6, 9, 1, 4, 7, 10, 2, 5, 8, 11
I've verified that the layers are indeed getting created in the desired order.
I've added a legend box with addLegend2 to specify 4 columns.
According to the documentation (if I am interpreting it correctly), I would then expect the legend to include four columns as shown below (left-to-right and top-to-bottom in layer creation order):
0, 3, 6, 9,
1, 4, 7, 10,
2, 5, 8, 11
However, I'm not seeing that behavior. Instead, I get:
0, 1, 2, 3
4, 5, 6, 7,
8, 9, 10, 11
What am I missing? (code is available, if desired).
I'm fairly certain I must be doing something wrong, because this class set has proven to be very reliable, intuitive and amazingly well documented. |