Skip to content

Custom Tick Labels Support in Chart Axis #12266

@rowheat02

Description

@rowheat02

Description

Introduce support for custom axis tick values and tick labels in the Chart widget.

This allows mapping data values to user-defined labels (e.g., Label-1, Label-2, Label 3)

The configuration will be manually defined in the chart settings with a 1:1 mapping between tick values and tick labels.

Image

What kind of improvement you want to add? (check one with "x", remove the others)

  • Minor changes to existing features
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Other useful information

Proposed configuration example

tickValues: [
  "2023-08-29T11:10:00Z",
  "2023-08-29T11:30:00Z",
  "2023-08-29T11:50:00Z",
  "2023-08-29T12:10:00Z"
],
tickLabels: ["Label-1", "Label-2", "Label-3", "Label-4"]

Tick values are mapped 1-to-1 with tickLabels.

So in the chart(for above example config), for the data value 2023-08-29T11:10:00Z, the label will be "Label-1"/

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions