Skip to content

LiveData Chart #841

Answered by Gowsky
DSanjulian asked this question in Questions
Aug 10, 2024 · 3 comments · 18 replies
Discussion options

You must be logged in to vote

First, there are some issues with your usage of Vico and Flow. The main problem however was caused by a growing list of x axis labels. Your axis settings added a label for every entry. The number of entries was very large and drawing hundreds (or more) labels slowed down the main thread. Ultimately, such settings don't make sense in this case as all the labels would get truncated. Here's an updated version of LiveData.kt (for Vico 2) with issues fixed and suggested bottom axis settings. This should perform as expected.

package com.example.bichomaker

import MockBTReader
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.c…

Replies: 3 comments 18 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
17 replies
@DSanjulian
Comment options

@Gowsky
Comment options

@DSanjulian
Comment options

@Gowsky
Comment options

Answer selected by DSanjulian
@DSanjulian
Comment options

@Gowsky
Comment options

@DSanjulian
Comment options

@Gowsky
Comment options

Comment options

You must be logged in to vote
1 reply
@Gowsky
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants