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

How to change the modal title & legend of indicators stockchart #1629

Closed
p3777dev opened this issue Jul 24, 2024 · 2 comments
Closed

How to change the modal title & legend of indicators stockchart #1629

p3777dev opened this issue Jul 24, 2024 · 2 comments

Comments

@p3777dev
Copy link

I want to change the name of the default name of the indicators in the modal as well as the legend.

For Example :

  1. I want to change the Typical Price to TP or anything.
    image

  2. Also the Indicator Legend of that indicator.

  3. And I have also created some of the custom Indicators by extending already existing indicator. In this case the parent Indicator name is shown in both modal and legend. I want to update/change it.

@martynasma
Copy link
Collaborator

Use custom theme to translate indicator name and legend:

const myTheme = am5.Theme.new(root);

myTheme.rule("TypicalPrice").setAll({
  name: "My Funny Indicator",
  shortName: "MFI"
});

root.setThemes([
  am5themes_Animated.new(root),
  myTheme
]);

And add locale translation for the Indicator Control:

root.language.setTranslationsAny({
  "Typical Price": "My Funny Indicator"
});

Copy link

This issue is stale because it has been open 30 days with no activity. It will be closed in 5 days unless a new comment is added.

@github-actions github-actions bot added the stale label Aug 24, 2024
@zeroin zeroin closed this as completed Aug 24, 2024
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

3 participants