amcharts / amcharts5

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

Chart spacing #1184

Closed workingbuddy10 closed 11 months ago

workingbuddy10 commented 1 year ago

How to convert this period selector in the drop-down format? Is there any in-built feature to do this, if not then exactly which class should I target & what should I change in the CSS property.

As there can be more granular level period selector, so it will occupy whole space.

Image reference: image

martynasma commented 1 year ago

There's no built-in way to convert this to a dropdown.

You may consider implementing your own chart control though: https://www.amcharts.com/docs/v5/charts/stock/toolbar/dropdown-list-control/

You could catch its events and use standalone instance of PeriodSelector to do actual zooms: https://www.amcharts.com/docs/v5/charts/stock/toolbar/period-selector/#Standalone_usage_API

Hope it makes sense.