Skip to content

[Feature] [visualMap] add support for name on visualMap #17895

@jjdiazbaquero

Description

@jjdiazbaquero

What problem does this feature solve?

I would like to have the ability to set a name on visualMaps. In a similar fashion as for the xAxis and yAxis.

visual map title proposal

This is a feature present in other visualization libraries, and a way to do something similar is to use the labels on one of the ends of the map, but this reduce flexibility and the user have to choose between have labels on both ends or have a name for the visualMap on one of the ends

What does the proposed API look like?

It would be best to keep consistency with other elements such as xAxis or yAxis, something like:

  visualMap: {
    name: 'My visualMap name',
    nameLocation: 'center',
    nameTextStyle: {...},
    nameGap: 15,
    nameRotate: 0,
    ...
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishnew-featurependingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions