-
Notifications
You must be signed in to change notification settings - Fork 97
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
StockLegend customisation #1462
Comments
To remove the background or apply anything you can create your custom theme!! The easiest way to do this would be to create a custom theme and override things set in StockChartDefaultTheme, for example:
The above code will remove the background. |
You can use custom theme as @workingbuddy10 suggested. Or you can also use a template setup function: valueLegend.itemContainers.template.setup = function(target) {
target.get("background").set("fillOpacity", 0);
} |
Thanks @martynasma and @workingbuddy10 for prompt response and solution, such a great community and team support, looks like I made correct decision to build on top of AmCharts. I've understood most of the core functions, classes and setting, I just have few last question, please bare with me.
Thank you. |
Though there is no in-built or straight way (like using a couple of functions) to do that in amcharts, but ya you can write custom code to have this feature. |
@xdajay Let's keep this place clutter-free, both for our own sake and the other's. If you have other questions, not directly related to original topic, please post a separate issue. For the vertical toolbar, there's already a feature request open for the same functionality: #1009 Make sure you follow it. |
@martynasma Sure & Thanks, will mark this question/issue solved, will try to tweek around for few days for invoke/get drawing tools options and open new issue, for now I know how to invoke a tool via drawingControl.setAll. Thanks once again :) |
I've tried everything but unable to change to background for stock legend.
I 'm trying it to make to make transparent or apply any color, but i'm unable too. (v5.9.1)
`
`
The text was updated successfully, but these errors were encountered: