Group: Forum Members
Last Active: 11 Years Ago
Posts: 43,
Visits: 1
|
Hello. I use several vertical axes on NCartesianChart, they are displaying one above the other. Now I need to make the gap between axes like in your example All Examples/Layout/Stacking Charts. Is it possible to do it without multiply charts, with only one NCartesianChart and several axes? Here is my current code: int axesCount = verticalAxes.Count; float step = 100f / axesCount; for (int i = 0; i < axesCount; i++) { NDockAxisAnchor anchor = (NDockAxisAnchor)verticalAxes[i].Anchor; anchor.CreateNewZoneLevel = false; anchor.BeginPercent = i * step; anchor.EndPercent = (i + 1) * step; } I tried to do the gap between first axis EndPercent and second axis BeginPercent. But this is not exactly what I need because the horizontal axis stripes and constlines persist in such gap. My second idea was to use axis scale breaks but i can't understand how to configure the scale break to achieve the result. Thank you for any help.
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
Hi Ereona, Yes it is generallly possible to achieve this, however the approach with multiple charts is probably better. The stripes should be constrained to the axis they scale on so most lilkely there is a problem with your configuration of those stripe, or you probably have an axis that fill the entire dock level.
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 11 Years Ago
Posts: 43,
Visits: 1
|
Thank you for reply. Could you tell me how to configure stripes of horizontal axis? Is it possible to do the same with const lines and scale configurator's MajorGridStyle?
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
Hi Ereona, What is the result you actually want to achieve? You can take a look at the examples located at All Examples\Axes\General on how to configure stripes, strip lines, const lines etc. Most of the examples show stripes on the Y axis, however the code is identical in the case of the X axis you simply need to apply the changes to the x axis scale configurator. Let us know if you meet any problems.
Best Regards, Nevron Support Team
|