amcharts5 icon indicating copy to clipboard operation
amcharts5 copied to clipboard

Stock Charts Custom Indicators Legend Creation

Open cwooldridge1 opened this issue 2 years ago • 3 comments

I've been playing around with the new stock charts and I've liked it a lot so far. In the application, I have been working on I have created a lot of custom indicators that I want to implement in the new stock charts. I can get them to plot how I want them to be plotted however what I have noticed is that the pre built indicators have these really cool custom legends where it shows the name and then the current values for each series in the panel e.g. image

Then when you click the setting button on the indicator you can customize the colors of all the other series in the panel as the below photo depicts image

I essentially want to be able to create this legend that groups the series in the panel and displays the values just how the above MACD indicator you guys provide does.

Do you guys plan on eventually allowing a way for users to create their own custom indicators and or allowing them to customize legends and how they are displayed as the pre-built indicators demonstrate?

Note that I asked a similar question in https://github.com/amcharts/amcharts5/issues/325 however I decided to open this question because of the new functionality that legends can offer and provide in the new stock charts is far more advance then any other legends in Amcharts

cwooldridge1 avatar May 27 '22 05:05 cwooldridge1

Thank you for this issue.

It's all doable right now, but warrants a proper tutorial. Give us a week or so to whip it up :)

martynasma avatar May 30 '22 07:05 martynasma

Awesome thanks. Just an idea, in the tutorial, it would also be appreciated if you added documentation for creating event listeners for when an input/color/ on save event happens in the legend input settings so users could create custom events based on these input changes as I am sure a lot of users will be using there own custom indicators that will be able to respond to user input.

cwooldridge1 avatar May 30 '22 17:05 cwooldridge1

Any updates on this?

cwooldridge1 avatar Jun 28 '22 14:06 cwooldridge1

Sorry for the wait.

We now have a custom indicator tutorial ready: https://www.amcharts.com/docs/v5/tutorials/creating-custom-indicators-for-a-stock-chart/

It also deals with legend and settings dialog.

Hope you find it useful.

martynasma avatar Aug 22 '22 09:08 martynasma