Jump to content
Software FX Community

Option "Stacked" in properties dialog


User (Legacy)

Recommended Posts

Posted

Dear SoftwareFx,

I use cfx version 5.0.10.4.. When I opening the property dialog I can chose

the option "Stacked:". But when I write "cfx.Series(0).YAxis = AXIS_Y" in

the debugwindow before, this option is disabled. What do I wrong.

Best regards,

Thorsten

Posted

This is by design.

Multi-Axis charts can not be stacked.

Multi-Axis - Multi-Stacked charts can only be done through code due to the

many restrictions they have.

For example, you can only stack series in the same axis, series on other

axis have to be in a separate stacked group.

--

FP

Software FX

Posted

Is you have only ONE axis why do cfx.Series(0).YAxis = AXIS_Y ?

This tell us that you want to set axis in a per-series basis. We don't go

checking whether all are the same or not, one you set axis in a per-series

basis we assume you are going to use more than one otherwise why would you

use this property.

To reset ALL series to have the same Y-Axis do:

cfx.Series(-1).YAxis = AXIS_Y

--

FP

Software FX

  • 4 weeks later...
Posted

Dear SoftwareFx,

I'm trying to visualize 4 series, 2 of them associated with one Y axis, 2 of them associated with the other one. When trying to display those series after setting the Stacked property to True for all of them, the following image is rendered. Is there a way how I can do this?

Best regards,

Thorsten

Posted

You need to stack them is two separate groups, sacking series on different

axis will produce unpredictable results.

For example:

chart.Series(0).Stacked = TRUE

chart.Series(1).Stacked = TRUE

chart.Series(2).Stacked = FALSE ' Breaks this series into a new group

chart.Series(3).Stacked = TRUE

Assuming series 0 and 1 are in one axis and series 2 and 3 are in the other,

this code will produce a chart with TWO side-by-side bars per point each of

these bars will be broken into two stacked segments.

--

FP

Software FX, Inc.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...