ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  LegendBox ordering
Posted by Darryl on Jan-25-2011 04:20
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.

  Please disregard, it was my own error
Posted by Darryl on Jan-25-2011 04:48
Please disregard my question above... it was indeed my own fumbling that caused the strange behavior. I apologize for jumping the gun, closer inspection before posting would have pointed out my obvious error.

The code does indeed behave exactly as documented and expected.