Profile Picture

Changing color and width of Major Gridlines

Posted By Benjamin Haas 14 Years Ago
Author
Message
Benjamin Haas
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 0, Visits: 1
Hello again, and thank you for your help yesterday with changing Legend size.

Today I am working with a Cartesian chart, and attempting to change the color and width of the major gridlines. I am attempting to follow the documentation (http://helpdotnetvision.nevron.com/UsersGuide_Axes_Scale_ScaleConfigurators_Major_and_Minor_Gridlines.html), but am not having any luck. Here is my code:

Dim yAxis As NAxis = chart7.Axis(StandardAxis.PrimaryY)
Dim scaleConfiguratorY As NStandardScaleConfigurator = yAxis.ScaleConfigurator
scaleConfiguratorY.MajorTickMode = MajorTickMode.AutoMaxCount
scaleConfiguratorY.AutoLabels = False
scaleConfiguratorY.MajorGridStyle.SetShowAtWall(ChartWallType.Back, True)
scaleConfiguratorY.MajorGridStyle.LineStyle.Color = Color.Red
scaleConfiguratorY.MajorGridStyle.LineStyle.Width = New NLength(5)

However, the color and width of the major gridlines do not change, no matter the values that I use. Note, these gridlines do not fall inside a scale section. Would you happen to have any suggestions?

Thanks,
Ben





Similar Topics


Reading This Topic