amcharts / amcharts5

The newest, fastest, and most advanced amCharts charting library for JavaScript and TypeScript apps.
Other
353 stars 94 forks source link

unable to add label in percent mode #1730

Closed workingbuddy10 closed 2 weeks ago

workingbuddy10 commented 1 month ago

In stock chart, while applying to comparison series I want to have the label of both [ base product + comparison product] . But it not coming/working specifically when its in percentage mode. Rest in other scenarios ( like new price scale or panel) it works.

Codepen : https://codepen.io/Ansh-m-the-reactor/pen/Rwzzawq?editors=0011

martynasma commented 1 month ago

I'm afraid I'm not sure what "label" you are referring to. Can you explain?

workingbuddy10 commented 1 month ago

The last candle close price label @martynasma

I guess In the percentage mode the valueAxis changes that's it disturbs the close price label?

martynasma commented 1 month ago

Here's an updated CodePen: https://codepen.io/team/amcharts/pen/VwJoNNz/0d152b89047548bc6213ff5ad48ae940

It will now use percent value when chart is in percent mode, and switch automatically.

workingbuddy10 commented 1 month ago

Just one minor update that, we want all the comparison series to have there labels ( showing the close price) and label also gets removed when user remove any respective comparison series.

Is it possible @martynasma ? Like without explicitly targeting and storing the label reference.

martynasma commented 1 month ago

Yes, it's possible. Feel free to modify your code to add such label for each required series accordingly.

github-actions[bot] commented 3 weeks ago

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.