JFreeChart - how to reverse axis order - axis

I'm creating XYPlot and I need to reverse the order on y-Axis (that is, I need lower numbers to be higher on the axis). I would appreciate any hints how to do that.

I had the same problem as you. I found this:
ChartPanel.getChart().getXYPlot().getRangeAxis().setInverted(boolean)

to reverse the Y-axis ... you can use
ChartPanel.getChart().getXYPlot().getDomainAxis().setInverted(boolean)
Source:
Reverse X-axis numeric labels in JFreeChart

Related

Sort negative dimension values in Qliksense?

I have a bar chart in Qlik sense. X- axis dimension looks like -5,-4,-3,-2,-1,0,1,2,3,4,5 but I am not able to sort the x-axis.
Please help me to resolve this sorting issue.
It looks like your chart is sorted by your measure on the Y axis rather than the dimension on the X axis. You should just be able to go to the chart properties and change the sort order to sort by your dimension on the X axis.
However if the numbers are stored as text you may first need to convert them as Qlik Sense may not recognise the correct sort order.
You can selection the dimension as numeric and apply sorting on it

How to reverse one of the axes in a 3D Barplot Matlab

I have created the following 3-D barplot:
enter image description here
Now I want to reverse the order of the axis labeled 1 to 5. The reverse function does not work. If I say reverse Y then it reverses the axis labeled 10 to 50 and with Z it reverses the up-down direction.
And I cannot tackle the axis of interest specifically at least I have not yet figured out how to and I am trying since quite a while.
Does anyone know how to handle such a problem specifically in a 3D barplot?
Thank you very much
yannick

Second Y-axis labelling in cognos chart

I have a simple line graph that shows daily pricing for 3 months. I need another Y-axis on the right to be label as the same scale on the left. How can it be done?
I'm now using secondary axis to do this which will have 2 lines overlapping together which is ok as it does not affect my graph. However it shows an extra element for that secondary axis in the legend. How can it be removed?
Please help. Thank you.
You can install the customizer and go to chart properties in order to see if you can use second Y axis labelling or not.

Google charts scatterplot turning OFF autoscaling

I am using a GWT scatter plot. Data values are going to range from 0 to 100 and are arriving in in time. I am plotting the data points as they arrive as a time sequence. I would like to fix the range of y values so that the y axis does not auto-scale. Right now, the max and min y values keep changing with time and this is quite confusing to the user.
Does anybody know how I can achieve this?
Thank you in advance for your replies.
Regards,
Ranga
I figured out how to do this. Create a vertical axis and set the max and min values for that vertical axis. Then use that vertical axis to create the plot.
VAxis vaxis = VAxis.create("Occupancy %");
vaxis.setMaxValue(100.0);
vaxis.setMinValue(0);
occupancyPlotOptions.setVAxis(vaxis);
Hope the answer (to my own question) helps others.
Ranga

iOS Line charts with multiple y-axis

I am able to displaying multiple Y-axis using core plot, but my problem is I need to display different values on two Y-axis with different interval difference.
How to draw graphs using core plot same as above images.
Is it possible to draw graphs or not. If not possible please tell me reason.
If possible give me some suggestion or provide sample code using core plot.
Please help me.
Thanks in advance.
You need to use a separate "plot space" for each different axis scale. For these graphs, you would need two—one for the left y-axis and the x-axis and another for the right y-axis. See the Plot Gallery (the Plot Space demo) and CPTTestApp (Mac version) example apps for sample code.
For LineChartDataSet you have property axisDependency. This property could be
AxisDependencyLeft
AxisDependencyRight
For swift
.Left
.Right