Giter Site home page Giter Site logo

Comments (7)

PhilJay avatar PhilJay commented on May 5, 2024

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.

Mrkhagol avatar Mrkhagol commented on May 5, 2024

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.

PhilJay avatar PhilJay commented on May 5, 2024

Of course there is. Just call Chart.invalidate() at any time you want to refresh.
I hope this helps.

Regards,
PHilipp

from mpandroidchart.

Mrkhagol avatar Mrkhagol commented on May 5, 2024

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.

PhilJay avatar PhilJay commented on May 5, 2024

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.

Mrkhagol avatar Mrkhagol commented on May 5, 2024

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.

PhilJay avatar PhilJay commented on May 5, 2024

Should be fixed as of release v1.6.5

Regards,
Phil

from mpandroidchart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.