Skip to content

Ability to scroll the piecewise visual map similar to legend #13759

Open

Description

@dirslashls

What problem does this feature solve?

When there are a lot of categories in the piecewise visual map, the categories are clipped in the chart. There should be an option to scroll them like it is provided for legend.

What does the proposed API look like?

Legend has a type option which is scroll or plain. However, visualMap already has type used for continous and piecewise. So, either a new option like 'scroll: true/false' or support scrolling automatically if it doesn't fit the chart.

Activity

  1. echarts-bot commented on Dec 4, 2020

    @echarts-bot

    Hi! We've received your issue and please be patient to get responded. 🎉
    The average response time is expected to be within one day for weekdays.

    In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

    If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical question.

    If you are interested in the project, you may also subscribe our mailing list.

    Have a nice day! 🍵

  2. added
    en
    pending
    on Dec 4, 2020
  3. jonavila commented on Feb 4, 2021

    @jonavila
    Contributor

    @Ovilia @pissang Any chance this can be considered for the 5.x line?

  4. removed
    pending
    on Feb 5, 2021
  5. added this to the 5.2.0 milestone on Feb 5, 2021
  6. modified the milestones: 5.2.0, 5.3.0 on May 6, 2021
  7. jacquie commented on Oct 6, 2021

    @jacquie

    I would appreciate this feature too, please :)

  8. KrzysztofMadejski commented on Oct 22, 2021

    @KrzysztofMadejski

    Would it work for you if you hide visualMap and add legend with scroll? you can still use visualMap to do the color coding.

    {
      legend: {
        type: 'scroll',
      },
      visualMap: {
        show: false
      }
    }
  9. dirslashls commented on Oct 22, 2021

    @dirslashls
    Author

    It might work but shouldn't the legend node be within the visualMap node as there can be multiple visualMaps? That way, this setting will be specific to the visualMap and not impact the overall legend option of the chart.

  10. AkashRanjan95 commented on Jan 14, 2022

    @AkashRanjan95

    please, release this in v4, we need it in heatmap.

  11. KrzysztofMadejski commented on Jan 14, 2022

    @KrzysztofMadejski
  12. modified the milestones: 5.3, TBD on Sep 1, 2022
  13. sclydon commented on Jan 16, 2023

    @sclydon

    I need this feature as well.

  14. anthony-bt commented on May 4, 2023

    @anthony-bt

    It could be very nice to have this feature.

  15. DanielBogenrieder commented on May 31, 2023

    @DanielBogenrieder

    Are there any news on this? Is someone already working on a PR? We would also benefit from this :)

  16. Barrylimarti commented on Mar 18, 2024

    @Barrylimarti

    Any updates or workaround for this? It will be great help.

  17. modified the milestones: TBD, 6.x on Jun 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ennew-featurewaiting-for: community

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions