Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add a label or description field to Calendar coordinate system #20748

Open
DevitX opened this issue Feb 11, 2025 · 0 comments
Open
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.

Comments

@DevitX
Copy link
Contributor

DevitX commented Feb 11, 2025

What problem does this feature solve?

Hi,
it seems that currently the "calendar" coordinate system doesn't support any field to add a string to a date on a chart. This could be useful to add memos or notes to specific dates on the tooltip of charts like: scatter, effectScatter and graph,

What does the proposed API look like?

Currenlty in Calendar.ts this dimensions are specified:

`

static getDimensionsInfo() {
    return [{
        name: 'time', type: 'time' as const
    }, 'value'];
}

`
My proposal is to add a 'tooltip' or 'description' field to the data/dataset. This is a example of how should it be defined:
data: [['2025-01-01', 300, 'String']]

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

1 participant