Hi Mikey,
As you have not provided your charting code "AutomaticAlarm.jsp", I am not exactly sure if
you would really want to remove the upper x-axis and right y-axis, or if you would like to
remove the plot area border.
In brief, if you have not used the upper x-axis or right y-axis, there would not be such an
axis in your chart, and so you do not need to remove it. If you do use those axes, but you
do not want people to see them, you can remove them by setting their colors to
transparent (using Axis.setColors).
If what you mean is to remove the plot area border, you can set it to transparent or the
same color as the chart background. The plot area border color can be configured using
setPlotArea (the 7th parameter is the border color). There are a number of ChartDirector
sample code that demonstrates charts without the plot area border. For example, see the
"Soft Multi-Bar Chart" sample code.
http://www.advsofteng.com/doc/cdjava.htm#softmultibar.htm
For updating the HTML table, as ChartDirector is a charting program, it can only draw charts
and update the charts. It cannot create or update other parts of your web page, such as
your HTML table. You would need to use your own code to update them.
(If I were you, I will just use XMLHttpRequest to ask your server for the data, and the
parse them, and update the table. You may find examples by searching the web.)
Regards
Peter Kwan |