Coder Social home page Coder Social logo

Comments (8)

lecho avatar lecho commented on July 22, 2024

Hi, not sure if that's what you need but you can set manual labels for axis, library will hide some of them if there will be no place to display them, that will happens automatically. Look at LineColumnDependency sample in repository, there is X axis with months names, on small screen in portrait orientation some of them will not be displayed but when you zoom in you will be able to see every month name.

from hellocharts-android.

jaichandra avatar jaichandra commented on July 22, 2024

yes.. looks like its working that way right now. But my x-axis labels are a little longer and the chart is still showing too many labels at a time, causing overlap. My x-axis date label format is MM-DD-YY. Does the chart caculate the width of labels to decide how many labels to show at a time. Or, can specify the number of items to display on the x-axis?

from hellocharts-android.

lecho avatar lecho commented on July 22, 2024

You can specify maximum number or characters for labels with method Axis.setMaxLabelChars(int), default are 4 or 3.

from hellocharts-android.

jaichandra avatar jaichandra commented on July 22, 2024

Thanks that works in the master branch. Doesn't work in the last release version 1.3.

from hellocharts-android.

lecho avatar lecho commented on July 22, 2024

Hmm, that possible, I made some changes in AxisRenderer last month, I will release version 1.4 in the next week.

from hellocharts-android.

jaichandra avatar jaichandra commented on July 22, 2024

Great.. another request would be to add a feature to reset the chart's zoom level. May be long press on the chart's viewport.

from hellocharts-android.

johnjohndoe avatar johnjohndoe commented on July 22, 2024

@jaichandra Please open a separate issue for your feature request and remove it here.

from hellocharts-android.

lecho avatar lecho commented on July 22, 2024

@jaichandra you can already reset zoom:

chart.setCurrentViewport(chart.getMaximumViewport());

I will not add new gesture/touch event for that, you will have to implement it by yourself.

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.