初始化JFreeChart范围轴值 [英] Initialize JFreeChart range axis values

查看:53
本文介绍了初始化JFreeChart范围轴值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在JFreeChart初始化期间加载数据集.但是每次我尝试创建具有更高每个系列中的项目数"的数据集时,图表中显示的可见数据(所有数据)越多(数据集越大,图表越小).但是实际上我想要的是在图表上显示固定范围的数据集值,而其余部分仍被隐藏.就像通常在实际交易平台中显示数据的方式一样,假设使用Metatrader(MT4).第一次打开图表时,我可以看到屏幕上充满了图表的唯一可见数据集,如果我向左滚动图表,则也可以看到旧的/历史数据集.有谁知道如何使用JFreechart实现这一目标?

I am trying to load dataset during initialization of the JFreeChart. But every time I tried to create a dataset with higher "number of item per series", the more data (all data) displayed visible in the chart (the bigger the dataset, the smaller the graph). But actually what I wanted is to have the fixed range of dataset values displayed on the chart while the rest is still hidden. Just the same way the data would normally be displayed in the actual trading platform, let's say Metatrader (MT4). First time when I open the chart I can see the screen filled with the only visible dataset of the chart and if I left-scroll the chart I will be able to see the old/history dataset as well. Does anyone have idea how to achieve this using JFreechart?

非常感谢我提供的任何帮助或任何事物/文章.非常感谢!

Really appreciate for any help or any thing/articles I can refer. Thanks so much!

推荐答案

您可以在域或范围轴上使用 setRange(),如此 sscce 和/或图像您遇到的任何问题.

You can use setRange() on either the domain or range axis, as shown in this fragment. If you've already tried this, it may help to edit your question to include an sscce and/or image that exhibits any problems you encountered.

这篇关于初始化JFreeChart范围轴值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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