Added : dynamic data, zooming, adjust, move...

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Plamen Dragozov

Added : dynamic data, zooming, adjust, move...

Post by Plamen Dragozov » Thu Aug 30, 2001 7:21 pm

Hi all,
I've had a project where I needed to show dynamically changing data, so i played with JFreeChart package for a while and I've made an extension (without modifying the core package) which supports this:
- dynammically changing data. Some new DataSources designed that support this (and many more:))
- Limiting the count of the points / bars shown and scrolling to see the hidden ones.
- Zoom in, zoom out, auto adjust, show/hide legend, scroll the legend if it gets too big, print the chart and the legend separately, show the coordinates while moving the mouse. All this is available from a popup menu at the charts panel.
- Moving through the chart to left, right, down, up, left-up, left-down, right-up and right-down by moving the mouse near the end of the axis area of the chart until the cursor changes and dragging it outside the chart. If the axis supports this you scroll through the chart in that direction. If the axis is data or number it always supports this and if it is a category one you can move only if there are hidden bars.
As i've finished with this project and I know that these features are something very usefull i've made the package available for download (absolutely free) including the sources at:
http://www.webappcabaret.com/individual/index.html

Keep in mind that it was designed for my needs and you may need to change something.

Feel free to use it without any restrictions, as far as you support JFreeChart's license.

There is a demo and a .bat file for running it, but no help or instructions. If anything is unclear generate the javadocs or mail me.
However I don't promise a quick answer.
Best regards, Plamen Dragozov.

Navin Pathuru

RE: Added : dynamic data, zooming, adjust, move...

Post by Navin Pathuru » Wed Sep 05, 2001 2:04 am

JFreeChart is a great product and I have checked out your Charts and they are really great.

Regards,
Navin.

Plamen Dragozov

RE: Added : dynamic data, zooming, adjust, move...

Post by Plamen Dragozov » Thu Nov 01, 2001 9:36 am

If someone cares, I've moved the zip to :
http://www.crosswinds.net/~individual/
,as Webappcabaret expired my account (They were free and now they started asking for money, but this is another question).
Regards,
Plamen Dragozov

Ulrich

RE: Added : dynamic data, zooming, adjust, move...

Post by Ulrich » Thu Dec 20, 2001 5:28 pm

Hi,

i just downloaded and used your extension. looks great and is easier to implement than pure jchart. Unfortunately i can't get the zooming to work properly.

Therefore:
when will jchart implement region zooming?


regards,
Ulrich

www.die-horde.de/mainframe.html

Plamen Dragozov

RE: Added : dynamic data, zooming, adjust, move...

Post by Plamen Dragozov » Fri Dec 21, 2001 9:46 am

Hi,
1. I'm glad you find what I did useful. However, as I've said, it was made for a particular project, I worked on, and it may not be that suitable for your needs. That's why you may need to change some code. Maybe it should be used mainly as an example, how with little work, JFreeCharts can be changed to do your job. The zooming worked quite fine for me and some other people that used my charts, but as it was not tested that much there may be some problems. So would tou tell me exactly what your problem is, on what machine/OS did you try it and with which JDK? Could you run the demo and did the zooming worked there? What exceptions did you get if any (Change "javaw" in the rundemo.bat with "java"!)?
It was supposed to work in this way (and it worked for me and my project):
You go with your mouse at the point where you'd like the center of the new, zoomed area to be, right-click to see the popup menu and choose the function you need (Zoom In or Zoom Out). Then the axes' min and max values get recalculated ,so the point is in the center of the area and each area's side is 1/2 of the original. The times you can zoom in any direction are limited mainly because of some problems that the unlimited zooming may cause when you scale the axes.

If you give me an exact explanation of your problems, I'll try to fix them after the holidays (Sorry, I'll travel so no way to do it earlier).

2. As I'm not involved in any way in the development of JFreeChart I can't tell you if/when they will add zooming. You can send them a request or a question, I've noticed David Gilbert is very responsive. I just showed that it is not that hard to do it yourself with the existing package, so if you need it now it can be done with a little work.

If you have some other questions or problems feel free to contact me.

Best reguards,
Plamen Dragozov

missing url

Post by missing url » Mon Feb 16, 2004 12:00 pm

hi plamen,
the url which u specified in JFreeChart forum is not available now. Can u send me your updated url so i can use the zooming features and hiding and displaying legend features in my code.
my id is kiranmanohar@yahoo.com
regards
Kiran

anilp2
Posts: 3
Joined: Tue Dec 14, 2004 8:07 am

url's are not working

Post by anilp2 » Thu Dec 23, 2004 12:24 pm

hi
This seam to be good project.
But the url's u'v provided are not available.
So pls send this info to me at - anilp2@kpit.com

thanks in anticipation

anil

anilp2
Posts: 3
Joined: Tue Dec 14, 2004 8:07 am

Can you send working code snipet

Post by anilp2 » Thu Dec 23, 2004 12:49 pm

Hi
I want to craete TimeSeriesChart with 4 axis. Every second data is generated and add to series. this chart is working properly but when I try to implement zooming in this chart as given in zooming demo of jfreechart. it is zooming in but stops displaying dynamic chart time axis stops changing and all line in chart are getting removed from chart.

I hope you could understand my problem.
also hope you have solution for it.

thanks

Anil Patil

besthope

Re: Added : dynamic data, zooming, adjust, move...

Post by besthope » Wed Dec 29, 2004 12:03 am

Hi,

I am working on generating curves of the behavior simulation. So I am coding based on jfreechart.

May you email the advanced codes to me , qiong5cheng@yahoo.com

Thanks.
Qiong
Plamen Dragozov wrote:Hi all,
I've had a project where I needed to show dynamically changing data, so i played with JFreeChart package for a while and I've made an extension (without modifying the core package) which supports this:
- dynammically changing data. Some new DataSources designed that support this (and many more:))
- Limiting the count of the points / bars shown and scrolling to see the hidden ones.
- Zoom in, zoom out, auto adjust, show/hide legend, scroll the legend if it gets too big, print the chart and the legend separately, show the coordinates while moving the mouse. All this is available from a popup menu at the charts panel.
- Moving through the chart to left, right, down, up, left-up, left-down, right-up and right-down by moving the mouse near the end of the axis area of the chart until the cursor changes and dragging it outside the chart. If the axis supports this you scroll through the chart in that direction. If the axis is data or number it always supports this and if it is a category one you can move only if there are hidden bars.
As i've finished with this project and I know that these features are something very usefull i've made the package available for download (absolutely free) including the sources at:
http://www.webappcabaret.com/individual/index.html

Keep in mind that it was designed for my needs and you may need to change something.

Feel free to use it without any restrictions, as far as you support JFreeChart's license.

There is a demo and a .bat file for running it, but no help or instructions. If anything is unclear generate the javadocs or mail me.
However I don't promise a quick answer.
Best regards, Plamen Dragozov.

urmaniac
Posts: 5
Joined: Wed Dec 15, 2004 4:30 am
Contact:

Need the code

Post by urmaniac » Wed Dec 29, 2004 8:02 am

Hi,
can i have the code too since i'm working with dynamic data... plz email me urmaniac@hotmail.com..
tq

stufff
Posts: 2
Joined: Thu Dec 16, 2004 9:06 pm

Post by stufff » Thu Dec 30, 2004 6:46 pm

Hey guys, if any of you have the code, please send it to me and I will try to host it in an FTP site.
stufff@comcast.net

Thx.

Guest

Post by Guest » Fri Dec 31, 2004 3:20 pm

Hello,
Where I can this zip file from?

Thank you

cappnofree
Posts: 2
Joined: Mon Jan 03, 2005 6:59 am

Post by cappnofree » Mon Jan 03, 2005 7:04 am

I also need it, anyone still have the code?


pls help me and send it to capphome@yahoo.com

alejandro sierra

missing url

Post by alejandro sierra » Mon Jan 03, 2005 9:01 pm

Hi
the url is not available now.
Does any body has the code?
please email me alejandro.sierra@gmail.com

regards
Alejandro Sierra

adolf

Post by adolf » Fri Jan 21, 2005 3:21 am

Hi
Does anyone has the code?
please email me cjpan@tsmc.com

regards

Locked