1,935 questions
Score of 0
0 answers
82 views
MPAndroidChart CombinedChart load more candle data: chart jumps and zooms out when loadmore candle
I’m working with MPAndroidChart (CombinedChart) for a cryptocurrency app (Android, Kotlin). My chart is a typical Binance-like candle chart (candlestick + volume below) with “load more” support:
When ...
Score of 0
0 answers
159 views
MPAndroid Chart: How to set up a scrollable horizontal barchart
I am using MPAndroidChart to display a horizontal bar chart in portrait mode with vertical scrolling enabled. Here's my current code snippet:
Map<String, Integer> genreData = new LinkedHashMap&...
Score of 0
0 answers
51 views
MPAndroidChart real-time plot glitch when updating entries with static viewport and live cursor
I am developing a real-time BLE audio application on Android. The audio sampling rate is 16,000 samples per second, and I receive data in 100 packets per second, each packet having 160 samples (so ...
Score of 0
1 answer
155 views
Can't import MPAndroidChart libraries into Activity declaring in TOML and build.gradle (app)
I'm in Sdk 35. I've declared MPAndroidChart in my Android project:
in TOML as mpandroidchart = "3.1.0" and mpandroidchart = { group = "com.github.PhilJay", name = "...
Score of 0
1 answer
70 views
Grouped barchart not grouping datasets with AndroidChart
First of all english isn't my first language so please excuse errors.
I'm using Android Studio, some years ago i wrote a simple app to store some data and generate different graphs (not in real time), ...
Score of 1
0 answers
221 views
How to make perfect Pie Chart in android jetpack compose
How to make pie chart code like this, I have used many libraries like MPAndroidChart for it but none of them prevents overlapping of labels
my current approach with MPAndroidChart is
val ds = ...
Score of 0
1 answer
68 views
How to move a chart to a specific X and Y point in your CANVAS in Kotlin?
The following code takes a linechart view, turns into an PNG image and saves it on the phone. However, I want to adjust vertical or Top location of the linechart on the canvas. No matter what I try, ...
Score of 0
1 answer
58 views
MPAndroidChart phantom legend over landscape legend
I am using MPAndroidChart to chart weather data. The app supports both portrait and landscape modes. The legend looks fine in portrait mode, however in landscape more there appears to be white text, ...
Score of 2
1 answer
81 views
Why are LineChart lines plotting above the correct grid line?
I have a LineChart where axisLeft.axisMinimum = -0.5f a set of points that are y=[0,0,3,0,0]. For some reason, the line starts plotting above the 0 grid line even though the value is 0. Why would a -0....
Score of 0
1 answer
55 views
MPAndroidChart. How do I make LineChart plot y=0 at the x-axis without disappearing?
I am on MPAndroidChart v.3.1.0 and I am using a LineChart. I have a continuous plot of data that starts at (0,0). Some Y will be positive but some points will be 0. My current graph looks like the ...
Score of 0
0 answers
61 views
MPAndroid Line chart cannot draw from right to left?
I'm trying to draw a graph using MPAndroid line chart like the one below
My issue is that I'm able to plot the loop above the X axis, but when I start drawing backwards, It gives me java.lang....
Score of 1
0 answers
51 views
How do i change the HorizontalBarChart's gridlines and axis color to another color? And how do i show text on the bars for MPAndroidChart in Kotlin?
I'm working with a HorizontalBarChart in MPAndroidChart and need to customize the appearance of the labels, text and grid lines. Here's what I've tried so far:
Removing and Adding bar labels: I've ...
Score of 0
1 answer
68 views
MPAndroidChart Scatter Chart data getting clipped
I have been exploring MPAndroidChart and came across this issue where the data point seem to be clipped off.
Any ways to go about this without changing the axis minmax?
Current Situation
Tried various ...
Score of 0
1 answer
48 views
Issue with non-filling bars in a chart: why are the colors not displaying correctly?
i am facing an issue with a bar chart where the bars are not filling with the assigned colors properly. Instead, they appear as empty. I have tried various methods to set custom colors for the bars, ...
Score of 0
1 answer
291 views
Errors in importing MPAndroidChart: INVALID CATALOG DEFINITION
I'm trying to import MPAndroidChart in my application in android studio. This is what I did so far.
Added this in my settings.gradle.kts under repositories
dependencyResolutionManagement {
...