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

Add custom draw control Line color icon instead of default color #1861

Open
abuhasan0319 opened this issue Feb 28, 2025 · 5 comments
Open

Add custom draw control Line color icon instead of default color #1861

abuhasan0319 opened this issue Feb 28, 2025 · 5 comments
Labels

Comments

@abuhasan0319
Copy link

abuhasan0319 commented Feb 28, 2025

Hi @martynasma ,

i want to add custom color in draw control line color icon instead of default purple.

Image

@martynasma
Copy link
Collaborator

Please refer to this documentation:
https://www.amcharts.com/docs/v5/charts/stock/toolbar/drawing-control/#Colors

I also kindly ask you to move the second question to a separate issue to adhere one-question-per-issue rule. Multi=question threads are complex and make it difficult to follow for you, us, and anyone else looking for the same information. Thank you.

@abuhasan0319 abuhasan0319 changed the title Custom colors in stock chart legend's gear icon Add custom draw control Line color icon instead of default color Mar 3, 2025
@abuhasan0319
Copy link
Author

But still i did not get the actual solution for draw control line color icon instead of default purple

@martynasma
Copy link
Collaborator

Do you mean you want to change default color for lines?

Or add new colors to the color dropdown?

@abuhasan0319
Copy link
Author

I have already changed the custom color for draw control line here is the code for that

Image

but i want to change the line color icon color also, means this color of icon.

Image

@martynasma
Copy link
Collaborator

am5stock.DrawingControl.new(root, {
  stockChart: stockChart,
  strokeColor: am5.color(0xff0000)
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants