amcharts / amcharts5

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

Add current volume label to stock chart #1659

Closed shishima123 closed 2 weeks ago

shishima123 commented 1 month ago

Hello

I want to add a label that displays the volume similar to the price label. Its position will change based on the height of the last volume column.

I don't know how to convert the height value of the volume to the corresponding price on the value axis.

Can you give me some advice?

My JSFiddle

it will look like this image

martynasma commented 1 month ago

Well, you don't have to convert anything. You just need to add an axis range to the same value axis that your volume series uses.

https://jsfiddle.net/gt68j0mr/1/

shishima123 commented 1 month ago

Genius! It's working perfect Thanks

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.