Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
540
Y-Axis Range on Gantt-chart
posted

Hi,

 

I'm trying to implement a range on a Y-axis on a Gantt-chart and I'm stuck (again ...) I have a number of GanttSeries which I populate in code. Afterwards I want to omit one of the series from the gantt-chart.A Ganttserie has a property Visible but setting it to false only results in not showing the serie BUT IS STILL GETS DRAWN ON THE CANVAS !!! Since it still gets drawn it still takes room on the canvas, resulting in a graph where all other data gets resised.

You can't see the series but when you hover over it you still can see it's there ...

So I was thinking of resolving this issue by using a range on the Y-axis but this doesn't work. I have tried the following :

chartHouseHistoryData.Axis.Y.RangeType =

AxisRangeType.Custom;

 

 

chartHouseHistoryData.Axis.Y.RangeMin = 0.0;

chartHouseHistoryData.Axis.Y.RangeMax = 50.0;

 

I have tried different values in RangeMax but nothing happens !! I find it strange to have to work with a double because the Y-axis works on a Ganttseries-base and would suspect that I need to provide the RangeMax with the MaximumSerie I want to display. That doens't work either ...

Please provide some code regarding this specific problem ...

 

Thanks,

 

Wim