# How to create a scrollable chart in Compose Multiplatform

DevFeed: [How to create a scrollable chart in Compose Multiplatform](<https://devfeed.tech/articles/how-to-create-a-scrollable-chart-in-compose-multiplatform-24848.md>)

Original publisher: [Read original article](<https://alexzh.com/how-to-create-a-scrollable-chart-in-compose-multiplatform/>)

Author: Alex Zhukovich

Published: 2024-11-22T13:46:47Z

Content type: tutorial

Language: en

Sources: [Alex Zhuk](<https://devfeed.tech/sources/alex-zhuk-android-development-and-testing.md>)

Topics: [compose-multiplatform](<https://devfeed.tech/topics/compose-multiplatform.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>)

Tags: [charts](<https://devfeed.tech/tags/charts.md>), [compose-multiplatform](<https://devfeed.tech/tags/compose-multiplatform.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-multiplatform](<https://devfeed.tech/tags/kotlin-multiplatform.md>), [scrollable](<https://devfeed.tech/tags/scrollable.md>)

## AI overview

KoalaPlot 0.7.0 adds zoom and pan support across Android, iOS, Web, and Desktop, enabling a horizontally scrollable Compose Multiplatform bar chart. The excerpt's example uses 30 days of fake mood data; because plotting all points can be unreadable on mobile, it shows an initial range (days 1-15) and enables pan gestures for the chart components. The X-axis can be zoomed, and zoom can be enabled separately for either axis. The excerpt recommends passing chart data in as state rather than creating it inside the composable. It does not include the complete code or configuration details.

## Source excerpt

Explore how to create a scrollable chart with Compose Multiplatform using KoalaPlot library. This article guides you through creating dynamic, scrollable charts.