Steema Issues Database

Note: 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.



Bug 1052 - Display axes ticks without labels
Summary: Display axes ticks without labels
Status: RESOLVED NOTABUG
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Axes (show other bugs)
Version: TeeChart.NET 2014 4.1.2014.02060
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-17 06:26 EST by narcís calvet
Modified: 2015-02-23 11:11 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description narcís calvet 2014-12-17 06:26:43 EST
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 = " "; 
      }
    }
Comment 1 christopher ireland 2015-02-23 11:11:07 EST
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;
    }