Chart lines

Chart lines

Forum member · Apr 24, 2013
Is it possible to hide the lines and tick marks of a bar chart? So that all that's visible are the bars themselves? I've been able to hide the labels and legends...but I don;t see anything to hide the lines, tick marks, etc.

Re: Chart lines

Support · Apr 25, 2013
Hello, Can you please send over the following details to our [^a|mailto:support@cete.com|opennewwindow|support@cete.com^] team so that they can look into it further? 1.Sample code which uses static data. 2.Output PDF document. 3.More details about your requirement by referring the output PDF document. Thanks, ceTe Software Support Team.

Re: Chart lines

Support · May 8, 2013
Hello, You can hide the X-axis and Y-axis lines ,labels ,major tick marks and minor tick marks by setting the Visible property to false. Below is the sample code to set the X-axis attributes and similarly you can use the respective property of Y-axis to achieve your requirements. Please make sure you are laying out the chart using Layout method before hiding the labels and tick marks. chart.Layout(); // Removing the tickmarks and lbels of X-Axis. if (barSeries1.XAxis.MinorTickMarks != null) { barSeries1.XAxis.MinorTickMarks.Visible = false; } if (barSeries1.XAxis.MajorTickMarks != null) { barSeries1.XAxis.MajorTickMarks.Visible = false; } barSeries1.XAxis.Labels.Visible = false; barSeries1.XAxis.Visible = false; // Removing the tickmarks and lables of Y-Axis. if (barSeries1.YAxis.Labels.Count > 0) { barSeries1.YAxis.Labels.Visible = false; } if (barSeries1.YAxis.MinorTickMarks != null) { barSeries1.YAxis.MinorTickMarks.Visible = false; } if (barSeries1.YAxis.MajorTickMarks != null) { barSeries1.YAxis.MajorTickMarks.Visible = false; } barSeries1.YAxis.Visible = false; chart.Legends[0].Visible = false; Thanks, ceTe Software Support Team.