apache / apache/echarts

[Bug] The showMinLabel, showMaxLabel, and color properties in angleAxis are not functioning as expected.

Open
#20,899 0 comments 2 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.6.0

### Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?code=PYBwLglsB2AEC8sDeAoWszGAG0iAXMgL4A0asIOAhgE6Grro1UAmEArgM6EBEAbAAYApD3KlyzNlwCCADwjdk5dGACeIAKaEA5AGMqYDQHNgNVdrKMK1GgEloLDbMIDLjFgaqEA2toCyMBaw2gAq7BpB2gDqGizaALpu6FTynAAyVABGGtj0yoy6OKaEAG5U2OEIAHywZRUaCPCIPGEaPLAA_LA8AMQAZgIC7byZ9TxJjJwAFsAA7n4Q0BnZubB95ZwaE-jTc34pyzmE69ib-URiblTQRtgacgp5VmqaOnXhFvmU2LT2js6wVz5FIKQ6rBhWWAAeihsGgwDAsFmpgA1osjPkdjN5oswccNltMbBdvMDlkjmsCdtYIVsMVauVKvAau8Gk1EAJOt0wMxoJwQLQNNAwMNuqNwqIrBd0OIdhoaBANIpvPkIc91FoxbRxkTCqY2NADBoAMqqTiGAC2vG-2upHjAXlg3gAjABWVywABMAGYPZ7PQAWeLncjBogAbiAA

### Steps to Reproduce

1. Create a chart using the `polar` coordinate system with both `radiusAxis` and `angleAxis` configured.

2. Define `axisLabel.color`, `showMinLabel`, and `showMaxLabel` in both axes.

3. Apply a function to `axisLabel.color` that conditionally returns different colors.

4. Observe the behavior — the configuration works correctly on `radiusAxis`, but not on `angleAxis`.

### Current Behavior

In `angleAxis`, the `axisLabel.showMinLabel` and `showMaxLabel` properties are not respected — the minimum and maximum labels still appear.
Additionally, the `axisLabel.color` function does not apply the specified colors in `angleAxis`.

On the other hand, the exact same settings work correctly in `radiusAxis`, where min/max labels are hidden as expected and the dynamic color is applied properly.

### Expected Behavior

The `angleAxis.axisLabel` should behave consistently with `radiusAxis`. Specifically:

1. `showMinLabel: false` and `showMaxLabel: false` should hide the corresponding labels in `angleAxis`.

2. The `color` function should apply dynamic label coloring based on the value.

### Environment

```markdown
- OS:
- Browser:
- Framework:
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.