Horizontal bar chart using Achartengine - android

I have created Horizontal bar chart successfully, but
in which i have 20 items but i want to display 5 items on y-axis and others are display when scroll down..
Is there any function or way to solve this.
I have asked question with image on this url : how to ellipsize label of y-axis with bar chart using achartengine

You can control the visibility of the items by restricting the visible area:
renderer.setXAxisMin(minX);
renderer.setXAxisMax(maxX);
There are similar APIs for the Y axis.

Related

MPAndroidChart bar values hide when zooming in

I have a horizontal bar chart using minimal code.
The problem is that when I am zooming in the values on the bars disappear.
Before:
After:
The values reappear if -while zoomed in- I drag the chart to the start of the Axis (and disappear again if I drag away).
Is this the expected behavior? Any way to change it?
edit: https://github.com/PhilJay/MPAndroidChart/issues/4131

Bar chart - bar title rotation

I'm using achartengine lib and I have problem with displaying of bars value. I want to display multiply bar chart, but when the values are similar, the text is not good for readability.
Does any one provide some ideas for improving this? Or exists another library for bar chart, where it is possible to do this?
Use this library MPAndroidChart
It supports multiple type of charts and also dragging, zooming etc.

How to display Y-axis grid lines in bar graph using AChart engine

The Y-Axis grid lines are not getting displayed in bar graph using A-Chart engine.Even after using setShowGrid(true) and using setShowGridY(true),the Y-axis grid lines are not getting displayed in bar graph chart.
It will be of great help,if somebody provides a correct way of doing that.
Use
renderer.setShowCustomTextGrid(true);
Courtesy #Beben06 How to show grid for a custom x axis label: achartengine?

Android achartengine : bar chart - bars appear upside down

Am trying out to plot some values using achartengine in an Android App. The values in y axis are usually negative. This is how the bar chart appears
But I want it to appear from the bottom i.e. I want each bar to start from -100, instead of the current 0. How do I do this? Please help.
I suggest you build a range bar chart instead of the current bar chart. Another suggestion is to use renderer.setBarWidth(widthInPixels) in order to set the width of the bars. This method works best when you have only one item per series.

AChartEngine move bar graph

I have implemented a bar graph using AChartEngine. I have added all the required values to the dataset as an XYSeries.The graph is drawn with the first 10 bars drawn when the app is started.I want to programmatically move the graph to a point further on the X-axis i.e I want to move the graph programmatically to display bars 25-35 or some other bars on X-axis.
Could someone please tell me how this can be achieved?
You first need to modify the visible range for the X axis:
renderer.setXAxisMin(25);
renderer.setXAxisMax(35);
Then, just call repaint() on your chart view:
chartView.repaint();

Categories

Resources