Comments (7)
What @Gowsky is referring to is that if you place your finger in an area not occupied by a chart (such as the empty space between two cards) and then swipe, you should be able to trigger a scroll. The charts consume all vertical swipes at the moment, but we’ll be looking into improving this.
from vico.
As a workaround, you could set isZoomEnabled
to false
. It looks like the zoom logic is what’s causing vertical swipes to be consumed. I’ve just resolved this bug.
from vico.
Hi @parrotcar00!
Your list is cut-off because of 0.8f
in your fillMaxHeight
Modifier
.
The inability to scroll is caused by one of gestures Modifier
s that are applied by Vico that steal touch events from scrollable Column
. We'll need to take a look on how to improve that. You can still perform scrolling by starting the scroll in area not taken by charts.
from vico.
If I remove the line .fillMaxHeight(0.8f) altogether, I get a little bit more of the chart but it's still not scrollable.
You can still perform scrolling by starting the scroll in area not taken by charts.
Can you expand more on this or any example?
from vico.
Got it, I'll try that.
Also, in the meantime, is there any way to disable all gestures in Chart area? I'm trying to think of a workaround?
If the charts are the main item inside a card, it'll be hard to keep the user from expecting to scroll while touching the chart. Maybe I can disable all gestures on Chart?
from vico.
As a workaround, you could set
isZoomEnabled
tofalse
. It looks like the zoom logic is what’s causing vertical swipes to be consumed. I’ve just corrected this bug.
Can confirm, setting isZoomEnabled = false on the Chart makes the list scrollable.
from vico.
Hello! As of Vico 1.5.1, which is now available, charts no longer consume vertical swipes. You should be able to change isZoomEnabled
back to true
without any impact to the scrolling behavior.
from vico.
Related Issues (20)
- unable to add ChartModelProducer<ChartEntryModel> HOT 3
- At the beginning and at the end the label of bottom axis is cut off if you add a point to the lineChart HOT 3
- WearOS NoClassDefFoundError / ClassNotFoundException HOT 1
- X Axis is wrapping HOT 1
- AxisValueFormatter lambda has values not in my list HOT 2
- Dataset for a single point on the x-axis causes "java.lang.IllegalArgumentException: The precision of the x values is too large. The maximum is two decimal places." HOT 1
- ChartValuesProvider "IllegalStateException" HOT 14
- Chart fails to load all sets after loading 0 values HOT 6
- Compose Recomposition causing an Error HOT 3
- Marker Color field is always overridden HOT 6
- Decoration is not drawn above chart in ComposedChart HOT 4
- StackOverflowError when calling ChartEntryModelProducer::setEntries() HOT 7
- MutableExtraStore is making tests fail HOT 6
- Chart does not update bar colors properly HOT 1
- Only One AxisValueOverrider Used HOT 3
- Unexpected background shader when using View Mode in examples Chart 7. HOT 2
- The library prevents effective minification (by depending on `androidx.compose.ui:ui-tooling`) HOT 4
- Crash and no display if only one value on X HOT 8
- Missing LinearGradientShader for view module HOT 1
- Not able to grab a screenshot test of a graph HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vico.