Skip to content

Create a "stick-inside" mode for ticks labels #3292

Closed
@EBoisseauSierra

Description

@EBoisseauSierra

Context

Say we have a first quadrant chart:

ticks1

One can notice that ticks' labels are horizontally/vertically centred (compared to the ticks themselves) on the horizontal/vertical axis, respectively.

This makes that first and last ticks value "stick out" from the graph; what can be a bit ungainly — especially if one shows one axis only:

ticks3

This is also inconvenient when you want to precisely align you axes with elements surrounding your picture (e.g., in the example above, if you want the 0% tick mark to be the most-left point of the picture).

Question

➥ Could it be possible to have a "stick inside" mode for ticks values?

The idea is to change the vertical/horizontal alignment of the first and last ticks values:

  • left and right aligned, respectively, for the horizontal axis:
    ticks3

  • bottom and top aligned, respectively, for the vertical axis:
    ticks4

Our first example would then look like this:
ticks5

Variant

An even more super-duper mode would enable us to choose which end on the axis to "stick inside", so that one could make such graph:
ticks6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions