Closed p3777dev closed 1 month ago
I am able to change the legend and setting modal name if I create the indicator using the am5stock.Indicator . By adding in the _afterNew() method.
I don't see any issues with this approach, if it works for you.
@martynasma As you can see in the image the modal color changed but the legend didn't changed .
You can check the codepen too.
Do you mean that there is no colored marker in the legend?
No @martynasma , You can see in the custom indicator legend is showing MA ( ideally it should have shown My Indicator) .
the custom indicator modal is showing correct info as My Indicator Whereas the custom indicator legend was showing the inherited class name only.
@workingbuddy10 are you working with @p3777dev?
Can I assume this is @p3777dev reply?
No @martynasma , You can see in the custom indicator legend is showing MA ( ideally it should have shown My Indicator) .
Legend uses indicator's shortName
by default. You can specify it just like name
:
this._setDefault("name", "My Indicator");
this._setDefault("shortName", "My Indicator");
This worked!
But this doesn't works in the case of Volume profile indicator. @martynasma https://codepen.io/Ansh-m-the-reactor/pen/xxvGXNO?editors=0010
We'll fix that in the next version. Thanks.
Fixed in 5.10.6.
hideDrawingGrips
setting (default: false
) added to StockChart
. If set to true, grips of drawings will be hidden when not in drawing mode.toggleDrawing(enabled: boolean)
method added to StockChart
. Toggles drawing mode on or off.autoOpenSettings
setting (default: true
) added to Indicator
. If set to false
, a settings modal will not pop up automatically when the indicator is added to chart via indicator control.StockChart
labels and icons are no longer draggable to avoid interfering with chart drag/zoom.StockChart
. Grip at the end of the arrow removed.shortName
(which is "Volume Profile", too, by default but can be changed to anything else).Modal
content will now have its contents aligned to start
, rather than left
, to properly handle RTL direction.MapChart
were not correctly importing geodata.clearDrawings()
was erroring if there was "Line Arrow" drawings added to StockChart
.scrollToChild
method of Container
was not working properly.Make sure you clear your browser cache after upgrading. And feel free to contact us again if you are still experiencing this issue.
I am using the custom indicator feature to create my custom indicators. But I got an issue that I am not able to change the legend and setting modal name of the custom indicator .
Note : I am creating the custom indicator by extending the class of the pre-Existing indicators.
I am able to change the legend and setting modal name if I create the indicator using the
am5stock.Indicator
. By adding in the _afterNew() method.https://codepen.io/prince-work/pen/JjgjBMZ