Bar Graph (android) disappear when go to negative x axis - android

I am creating a Bar graph in android using agraphchart library, when I go to negative x Axis and zero point then bar graph just disappear.
Can anyone help my with this?

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

Multiple x axis - on top and botton with different data - android mpchart

I would like to achieve the following using the bar chart. I went through the docs and I could not find an option to add x axis at the top of the bar chart and at the bottom of as well. So the dates would be at the bottom x axis and the day would be at the top. Is this possible at the moment?
Please let me know how I can achieve the following?

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.

Android - Using AChartEngine, is it possible to zoom in to a specific point upon displaying the graph?

I have a bar graph with 100+ bars and want to zoom in to a specific range upon displaying the graph. For example, when the graph is displayed on the screen I want only the bars 44-49 to be showing. It is important that the users will be able to zoom out to see all 100+ bars as well.
GraphicalView.zoomIn() would work if it allowed me to specify a point to zoom in to.
Thanks!
You can set the visible range on the X axis:
renderer.setXAxisMin(44);
renderer.setXAxisMax(49);

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