JFreeChart-如何反转轴顺序 [英] JFreeChart - how to reverse axis order

查看:88
本文介绍了JFreeChart-如何反转轴顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建XYPlot,我需要颠倒y轴上的顺序(也就是说,我需要较小的数字才能在y轴上增大).我将不胜感激如何做到这一点.

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)

这篇关于JFreeChart-如何反转轴顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆