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

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?

Related

MPAndroid chart hide labels from X axis and show on double tap

I ma using MPAndroidChart bubble chart. when I run the app it shows x axis values hidden. like I have x-axis label January, February, march, April, may,june. but when app run it shows January , April
and June. on double tape on label it zoom the chart and show hidden labels. I want to show all in a sequence so that user troll horizontal and view all. no need to double tap
You can determinate the numbers of labels to display. This prevents them from hiding automatically.
XAxis xAxis = bubbleChart.getXAxis();
xAxis.setLabelCount(data.length);
Not sure why would you do that. The library does a great job in automatically deciding how many labels to show on either X or Y axis to make the chart nice and readable.
If the chart is narrow, it might happen that your values will overlap, that's why the library skips a few, to make the chart look good.
If that still doesn't help, you can play around with the spacings between axis labels - check out the library's documentation for these specific items
Other solution may be to rotate the labels of the X axis with the help of
xAxis.setLabelRotationAngle(35);
I found the solution after expanding MP Android Chart documentation.
you can do so set thee labels to skip 0. It will skip no label from xAxis.
XAxis xAxis = bubbleChart.getXAxis();
xAxis.setLabelsToSkip(0);

GraphView Axis Labels

I'm using GraphView to draw graphs in my android app, but I'm not able to set axis labels on the X and Y axis which denote what they represent. I checked the documentation, but couldn't find anything useful. How can I do it?
you're right. there is no build in method to do it. You have to place your label views yourself at the left resp. bottom of the graphview. This can be done for example with RelativeLayout.

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.

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

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?

achartengine - inclined labels position

I'm using achartengine to show a temperature graph. on X axis I put dates, to fit them I call setXLabelsAngle(45); this is the result:
As you can see, the labels are placed too high and go over the x-Axis. How could I fix this? I'm already using setMargins(), but labels don't move, only legend does.
This will help:
renderer.setXLabelsAlign(Align.LEFT);

Categories

Resources