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

dynamically add more icone controller to Legend Controls #42

Open
2 tasks done
majid1605 opened this issue Jan 7, 2023 · 0 comments
Open
2 tasks done

dynamically add more icone controller to Legend Controls #42

majid1605 opened this issue Jan 7, 2023 · 0 comments

Comments

@majid1605
Copy link

majid1605 commented Jan 7, 2023

Description

Hi
In order to have more control over the chart and make changes on t
he chart dynamically, I suggest adding a possibility to add different icons to the legend. Something like Trading View. By owning any event, people can implement whatever they want

Screenshot_20230107_114025

Suggested solution

It is better for each overlays to have settings for this. For example:

overlays: [
      {
        name: "name",
        type: "Candles",
        main: true,
        settings: {},
        props: {},
        legendSettings: [
          {
            event: "handler1",
            icon: "myIcon1",
            tooltip: "tools1",
          },
          {
            event: "handler2",
            icon: "myIcon2",
            tooltip: "tools2",
          },
        ],
      },
    ]

Alternative

No response

Additional context

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants