Coder Social home page Coder Social logo

Comments (10)

lecho avatar lecho commented on August 24, 2024 2

Hi, by default chart will try to automatically adjust X and Y ranges to current chart's data. If you want to change that, for example show more on Y axis like in LineChart sample you need to modify chart's viewport. Look at resetViewport() method in samples.

//set chart data to initialize viewport, otherwise it will be[0,0;0,0]
//get initialized viewport and change if ranges according to your needs.
final Viewport v = new Viewport(chart.getMaximumViewport());
v.bottom = 0;
v.top = 100;
chart.setMaximumViewport(v);
chart.setCurrentViewport(v);

//Optional step: disable viewport recalculations, thanks to this animations will not change viewport automatically.
//chart.setViewportCalculationEnabled(false);

from hellocharts-android.

yoavst avatar yoavst commented on August 24, 2024

Works. By the way, for some steps, it doesn't show the 100 at the end. is there a way to force it show the start and end?

from hellocharts-android.

lecho avatar lecho commented on August 24, 2024

Sorry, there is no option for that, I will see if I can change calculation to always display min/max values.

from hellocharts-android.

yoavst avatar yoavst commented on August 24, 2024

ok, thanks! :)

from hellocharts-android.

yoavst avatar yoavst commented on August 24, 2024

@lecho any update?

from hellocharts-android.

lecho avatar lecho commented on August 24, 2024

No, sorry, busy times, I'll reopen this issue.

from hellocharts-android.

yoavst avatar yoavst commented on August 24, 2024

Was it added?

from hellocharts-android.

lecho avatar lecho commented on August 24, 2024

Sorry, not yet.

from hellocharts-android.

Zamuzo avatar Zamuzo commented on August 24, 2024

Hi,

I have the same problem. @lecho when do you think it will be fixed ?

capture d ecran 2015-10-02 a 17 25 27

from hellocharts-android.

windherd avatar windherd commented on August 24, 2024

Hi,

I have the same problem too. @lecho i would be appreciate that if you can fix it .thanks!

screenshot_1_1466494765

from hellocharts-android.

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.