Profile Picture

How do I set up zooming a cartesian chart with a vertical x-axis?

Posted By Kevin Harrison 7 Years Ago

How do I set up zooming a cartesian chart with a vertical x-axis?

Author
Message
Kevin Harrison
Question Posted 7 Years Ago
View Quick Profile
Supreme Being

Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)Supreme Being (79 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 176, Visits: 1,865
How do I set up the RangeSelection to do this please?

For a standard horizontal x-axis, I use:

NRangeSelection rangeSelection = new NRangeSelection
{
HorizontalAscendingZoom = true,
ZoomOutResetsAxis = true,
HorizontalAxisId = (int) StandardAxis.PrimaryX,
VerticalAxisId = (int) StandardAxis.PrimaryY
};
chart.RangeSelections.Add(rangeSelection);

If I set
chart.SetPredefinedChartStyle(PredefinedChartStyle.HorizontalLeft);

What do I change the rangeSelection to? I've tried various permutations, but none of them allow me to zoom. I get a red rectangle dragging the selection area in all directions.

Thanks

Kevin




Similar Topics


Reading This Topic