Search found 6 matches

by NDoki
Tue Jun 19, 2012 11:12 am
Forum: .NET
Topic: Disabling Axis labels also disables grid
Replies: 11
Views: 11910

Re: Disabling Axis labels also disables grid

Yes! You made my day. This works for me:

Code: Select all

ChartControl.Axes.Bottom.TickOnLabelsOnly = false;
ChartControl.Axes.Bottom.Labels.Visible = false;
ChartControl.Axes.Bottom.Ticks.Visible = false;
ChartControl.Axes.Bottom.MinorTicks.Visible = false;
Thank you Sandra!
by NDoki
Mon Jun 18, 2012 3:55 pm
Forum: .NET
Topic: Disabling Axis labels also disables grid
Replies: 11
Views: 11910

Re: Disabling Axis labels also disables grid

Hi Sandra, Your solution works for me. But it still looks like some kind of 'hack'. I think I should be able to draw no labels if I want the chart to do that. Another solution should do the same but also is not working is: Axes.Bottom.Labels.Style = AxisLabelStyle.None; As the name is telling me I d...
by NDoki
Mon Jun 18, 2012 9:30 am
Forum: .NET
Topic: Disabling Axis labels also disables grid
Replies: 11
Views: 11910

Re: Disabling Axis labels also disables grid

I did made a mistake. I supplied string.empty instead of a space. This leaves the gridlines enabled but does consume the space needed for the labels. This space is too big for me. I need to be able to create a 2-3 pixels margin. I created an example to show the problem dl at: https://www.dropbox.com...
by NDoki
Fri Jun 15, 2012 3:31 pm
Forum: .NET
Topic: Disabling Axis labels also disables grid
Replies: 11
Views: 11910

Re: Disabling Axis labels also disables grid

I'm currently using the latest version: 4.1.2012.5103.
by NDoki
Fri Jun 15, 2012 2:28 pm
Forum: .NET
Topic: Disabling Axis labels also disables grid
Replies: 11
Views: 11910

Re: Disabling Axis labels also disables grid

I tried your solution but this also removes gridlines from the vertical axis. Why are they connected to each other if they can be separately disabled (visible is false)?
by NDoki
Fri Jun 15, 2012 9:11 am
Forum: .NET
Topic: Disabling Axis labels also disables grid
Replies: 11
Views: 11910

Disabling Axis labels also disables grid

I need to disable axis labels to be able to align better with some other controls in my application. Problem is disabling these labels also disables the gridlines. That's not what I want, I need the gridlines. Things i tried and not working: Axes.Bottom.Labels.Style = AxisLabelStyle.None; // hides g...