|
Is there a way to put two plotareas in an xychart object with zoomscroll using chart director using jsp |
Posted by KK on Oct-09-2010 01:26 |
|
Is there a way to put two plotareas in an xychart object with zoomscroll using chart
director using jsp.
Kindly send me some examples on the above subject. Thanks in advance
With Regards,
KK |
Re: Is there a way to put two plotareas in an xychart object with zoomscroll using chart director using jsp |
Posted by Peter Kwan on Oct-09-2010 05:19 |
|
Hi KK,
There are two methods:
(A) You may put two XYCharts (and therefore two plot areas) in the web page, and allow them to zoom/scroll. See the following for an example:
http://www.chartdir.com/forum/download_thread.php?bn=chartdir_general&thread=1177009173#N1187895184
(B) You may combine two XYCharts (and therefore two plot areas) into a single chart using the MultiChart object, and put the MultiChart on the web page. When the user zooms on the chart, your code can update the MultiChart.
Hope this can help.
Regards
Peter Kwan |
Re: Is there a way to put two plotareas in an xychart object with zoomscroll using chart director using jsp |
Posted by KK on Oct-12-2010 01:53 |
|
Dear Peter Kwan,
Thank you very much for providing the information.
Please find the attached screenshot of the SampleGraph which i required in that format.
Kindly send me the example code which are like the screenshot putting two plotareas in an
xychart in same chart area object with zoomscroll using jsp.
Thanks in advance..
With Regards,
KK |
Re: Is there a way to put two plotareas in an xychart object with zoomscroll using chart director using jsp |
Posted by Peter Kwan on Oct-13-2010 01:28 |
|
Hi KK,
I have written an example for you as attached, in which the two plot areas are within the same XYChart frame.
Hope this can help.
Regards
Peter Kwan
|
Re: Is there a way to put two plotareas in an xychart object with zoomscroll using chart director using jsp |
Posted by KK on Oct-13-2010 02:50 |
|
Hi Peter,
Thanks for providing very useful information.
In addition to the above request, i need your help to fix the following:
1) X-axis Title (Label) is getting invisible while doing ZoomIn or ZoomOut. I want to get the
X-axis (Label) title visible throughout any updation on the chart.
2) on the Chart2 object i'm not able to get the ToolTip?
3) By default the loading of the chart x-axis should be fixed to last three days i.e, from last
three days to the current day.
Please find the attached code. Kindly update the solution to the above and send me back.
Hope you'll send the solution. Thanks in advance.
Can you send me your e-mail-id and contact details.
With Regards,
KK
|
Re: Is there a way to put two plotareas in an xychart object with zoomscroll using chart director using jsp |
Posted by Peter Kwan on Oct-13-2010 15:53 |
|
Hi KK,
1) X-axis Title (Label) is getting invisible while doing ZoomIn or ZoomOut. I want to get the X-axis (Label) title visible throughout any updation on the chart.
The spacing between your two charts is too small. When you zoom in, your code configures the x-axis labels to have two lines, and the x-axis title of the top chart is pushed down and is hidden behind the bottom chart. The x-axis title of the bottom chart is pushed down too, and overlaps with the bottom bar that shows the x-axis range.
To solve the problem, please leave more space under the x-axis of the two charts, so there are enough space to show the x-axis title.
2) on the Chart2 object i'm not able to get the ToolTip?
In my original code, I configure the page to show the tooltip of both charts (I used m.getHTMLImageMap). In your code, you change it to show only the tooltip of the first chart (your code uses c.getHTMLImageMap). If you want to show the tooltip of both charts, please change it back to using m.getHTMLImageMap.
3) By default the loading of the chart x-axis should be fixed to last three days i.e, from last three days to the current day.
In the original code, there is a comment that says:
// The initial selected date range is last 1 year
GregorianCalendar viewPortCalendar = (GregorianCalendar)endCalendar.clone();
viewPortCalendar.add(Calendar.YEAR, -1);
If you want to change it to 3 days, please change the "viewPortCalendar.add(Calendar.YEAR, -1);" to "viewPortCalendar.add(Calendar.DAY_OF_YEAR, -3);"
My email address is pkwan@advsofteng.net.
Hope this can help.
Regards
Peter Kwan
|
|