Added : dynamic data, zooming, adjust, move...
Added : dynamic data, zooming, adjust, move...
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.
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.
RE: Added : dynamic data, zooming, adjust, move...
JFreeChart is a great product and I have checked out your Charts and they are really great.
Regards,
Navin.
Regards,
Navin.
RE: Added : dynamic data, zooming, adjust, move...
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
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
RE: Added : dynamic data, zooming, adjust, move...
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
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
RE: Added : dynamic data, zooming, adjust, move...
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
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
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
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
url's are not working
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
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
Can you send working code snipet
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
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
Re: Added : dynamic data, zooming, adjust, move...
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
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.
Need the code
Hi,
can i have the code too since i'm working with dynamic data... plz email me urmaniac@hotmail.com..
tq
can i have the code too since i'm working with dynamic data... plz email me urmaniac@hotmail.com..
tq
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.
stufff@comcast.net
Thx.
-
- Posts: 2
- Joined: Mon Jan 03, 2005 6:59 am
missing url
Hi
the url is not available now.
Does any body has the code?
please email me alejandro.sierra@gmail.com
regards
Alejandro Sierra
the url is not available now.
Does any body has the code?
please email me alejandro.sierra@gmail.com
regards
Alejandro Sierra