Skip to content

Axis Insets #93

@escape-llc

Description

@escape-llc

Summary

It is desirable to not have the limits directly on the edge of the data area. This is particularly noticeable with value axis, which places tick labels directly at the location. This can cause tick labels to be (partially) outside the data area's edges (mostly noticeable on horizontal).

Actual Behavior

The minimum and maximum are mapped directly to the edges of their respective rectangles.

Expected Behavior

Have the ability to "inset" the axis limits by a number of px.

Additional Details

This can open up the ability to have multiple axes on the same side of the chart, using different insets to keep them from overlapping.

Unfortunately, this requires the layout algorithm to "know" about these, because the location of the data area must account for these so it scales and aligns properly. This also now means that the data area would be specific to the axes involved, because insets could be in effect on both axes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    axisfeatureitem is a feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions