Skip to content

Labelled axis

lucymukh edited this page Dec 27, 2018 · 8 revisions

Labelled axis is an axis with manually assigned text labels in a specified places.

It can be in one of two modes:

  • each label corresponds to a tick;
  • each label corresponds to an interval between ticks and is placed between two neighboring ticks.

To have labels in the first mode the number of ticks should equal the number of labels. To make labels correspond to intervals the number of ticks should be one more than number of labels.

Note

If ticks are not defined they are considered to be sequential indexes.

Create a labelled axis

Labelled axis is union case of type FSharpIDD.Chart.Axis and is of a record type LabelledAxisRecord. Create a labelled axis is convenient using a helper function:

createLabelledAxis ticks labels

Create a tilted labelled axis

Labels on an axis can be tilted. In this case another helper function can be used:

createTiltedLabelledAxis ticks labels angle

Note

By now only labels that correspond to intervals can be tilted.

Clone this wiki locally