Comments (7)
Thank you for your input. The reason therefore is, that the Chart draws the color white by default over the whole drawing surface. This will be fixed in the next update alongside other things like major improvements and new features.
As a quick fix, you could simply draw the desired color you want by modifying the library. You can do that by changing code line 304 in the Chart.java file (inside onDraw(...)
method) of the current master branch:
mDrawCanvas.drawColor(Color.WHITE); // specify the background color you like
Then, the background should be drawn in the color you specified. Please let me know if this quick fix solved your issue.
from mpandroidchart.
Thanks for the response and good other major updates so far. I have another question for you though
..I am doing two charts where I select a category and it changes the chart based on array of data. I am looking at log and y draw values to see if it's caching the right value. It is doing that but the chart view doesn't refresh. What I have found is if I select the same category again it refreshes the view and proper y bar axis values and chart view shows up.
Is there a way to do force refresh of chart?
from mpandroidchart.
Of course there is. Just call Chart.invalidate()
at any time you want to refresh.
I hope this helps.
Regards,
PHilipp
from mpandroidchart.
That's something...I had that in my method all along. It just wasn't at right place where it should be called from. Now it changes chart view just fine. Thank you.
By the way, is there manual type read besides readme.md file so that way you don't get bothered for things like this.
from mpandroidchart.
Good, I am glad you could figure it out.
At this moment there is nothing else except the readme and the example project because this library is still very new and I have just written it.
Nevertheless I am already working on something similar to what you mentioned.
Regards,
Philipp
from mpandroidchart.
Is there a way to set multi line chart lines to set at different widths?
Is there also a way to over ride that it just plots from less than 2 data points. So chart draws anyway if it's just one point in array list.
Thank you.
from mpandroidchart.
Should be fixed as of release v1.6.5
Regards,
Phil
from mpandroidchart.
Related Issues (20)
- combined chart issue
- Update repository
- Animate only selected bars in BarChartSelectable
- Android Studio: disabled warning when using SDK features unavailable at SDK 21 (e.g. @FunctionalInterface or streaming)? HOT 1
- Barchart is not displaying properly for 15 days. HOT 2
- Granularity is not working when set to 6f.
- Highlight issues after i applied RoundedSlicesPieChartRenderer in piechart
- 可以设置初始化Y轴数据的数量 之后一个一个的动态加载吗?
- Help: Dotted Background
- 使用implementation ("com.github.PhilJay:MPAndroidChart:v3.0.2")报错
- Values above the Horizontal bars Disappears when I zoomed in
- dataSet.gradientColors = gradientColors not working
- Fatal Exception: java.lang.NegativeArraySizeException HOT 4
- LineDataSet: shader with multiple color
- Getting crash while selection camera cropping only in Android 10
- How to rotate the Tooltip arrow Based on the touch points
- Documentation Link Failed! HOT 4
- When drawing Bezier curves vertically in LineChart, the curve flickers.
- Fatal Exception: java.lang.NullPointerException Attempt to read from null array
- Fatal Exception: java.lang.ArrayIndexOutOfBoundsException
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 mpandroidchart.