![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | Display axes ticks without labels | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | narcís calvet <narcis> |
| Component: | Axes | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED NOTABUG | ||
| Severity: | enhancement | CC: | chris |
| Priority: | --- | ||
| Version: | TeeChart.NET 2014 4.1.2014.02060 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=4&t=15339 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
This is already possible using the TickOnLabelsOnly property, e.g.
Line series = new Line();
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
tChart1.Series.Add(series);
series.FillSampleValues();
tChart1.Axes.Bottom.Labels.Visible = false;
tChart1.Axes.Bottom.Ticks.Visible = true;
tChart1.Axes.Bottom.TickOnLabelsOnly = false;
}
|
Is it possible to have an Axis to display only tick marks an no labels? It looks like when I set labels visible to false the ticks go away. A workaround is setting label text to a blank space in the GetAxisLabel event, for example: void tChart1_GetAxisLabel(object sender, GetAxisLabelEventArgs e) { if (sender.Equals(tChart1.Axes.Left)) { e.LabelText = " "; } }