I'm calling a subroutine to create an indexed bar chart several times in order to get 6 bar charts across a page. They only want the charts to display the bars and a title - no grid lines, tick marks, labels, etc.
In the subroutine, I've found how to supress the Axis (MyColumnSeries1.YAxis.Visible = False), Labels (MyColumnSeries1.YAxis.Labels.Visible = False) and Major Tick Marks (MyColumnSeries1.XAxis.MajorTickMarks.Visible = False).
This works great for the first 5 charts that all have a rather large range in the data. However, my 6th chart has a range between 1 and 5. I'm getting tick marks (no numbers) all along the left side of the chart. My assumption is that these are Minor Tick Marks.
I've tried to clear them with: MyColumnSeries1.YAxis.MinorTickMarks.Visible = False, but I get an error when I try to add it to the code (not a VB error - when I try to load the page in a browser). This line of code is the only one I've added - works great without it.
Thanks
Indexed Bar Chart Question
Re: Indexed Bar Chart Question
Support · Oct 4, 2012Hello,
Can you please send over the sample code to our [^a|mailto:support@cete.com|opennewwindow|support^] team using which they can recreate the error? This information will help our support team to troubleshoot the error.
Thanks,
ceTe Software Support Team.
Re: Indexed Bar Chart Question
Support · Oct 15, 2012Hello,
The MinorTickMarks are only applicable to the charts that use numeric or percentage axis: http://www.dynamicpdf.com/Support/NET_Help_Library_12_07/Axis.html
. Indexed axis and Date Time axis do not use the MinorTickMarks.
The IndexedColumnSeries used in your code use indexed axis, so it is not necessary to set the MinorTickMarks.Visible property at all as MinorTickMarks object does not exist. MajorTickMarks are applicable to IndexedColumnSeries so if you do not want to see the tick marks please see the MajorTickMarks. Visible to false.
Thanks,
ceTe Software Support Team.
Re: Indexed Bar Chart Question
Support · Oct 16, 2012Hello,
You will need to handle this exception by checking respective YAxis and XAxis MinorTickMarks for Null and set its boolean Visible property accordingly.Below is the sample code for it.
If Not MyColumnSeries1.XAxis.MinorTickMarks Is Nothing Then
MyColumnSeries1.XAxis.MinorTickMarks.Visible = False
End If
If Not MyColumnSeries1.YAxis.MinorTickMarks Is Nothing Then
MyColumnSeries1.YAxis.MinorTickMarks.Visible = False
End If
Thanks,
ceTe Software Support Team.