|
Drill down (since version v1_30)
For drill-down for Swiftchart application see drill-down for swiftchart application.
The Swiftchart applet allows to open web pages in the same or another window by clicking on chart areas. The page to be called can be defined and content sensitive information such as serie label, x-axis value or data values can be added to the url. This functionality together with server side scripting (PHP, Perl, ASP, ...) will enable data drill down.
The following parameters can be used for setting up the url based data drill down:
- url_drill - url_drill_text - url_drill_newwindow
To add content sensitive data to the url, use the following within the url_drill_text parameter:
@XV@: x-axis value @SE@: serie label @DA@: data value
The url_drill_text parameter value for the below example is:
<B>Serie: </B>@se@<BR><B>X-Value: </B>@xv@<BR><B>Value: </B>@da@</P>
For further information on how to use the drill down parameters please go to the parameters section.
Example: URL drill down This example has been generated with the Swiftchart application version and is based on an image map. The Swiftchart applet version will not use image maps but has the same functionality.
Example: HTML source code
|
<HTML>
<BODY>
<applet name="app1" code="swiftchart.class" width="500" height=300">
<param name="url_drill" value="Y">
<param name="url_drill_newwindow" value="N">
<param name="url_drill_text" value="http://www.google.com/search?q=@se@+@xv@">
<param name="chart_type" value="bar3d">
<param name="grid_line_hor" value="Y">
<param name="grid_line_hor_color" value="999999">
<param name="grid_line_hor_type" value="0">
<param name="grid_line_ver" value="Y">
<param name="grid_line_ver_color" value="999999">
<param name="grid_line_ver_type" value="0">
<param name="applet_bg" value="FFFFFF">
<param name="chart_bg" value="FFFFFF">
<param name="title_text" value="URL drill down example">
<param name="title_font_color" value="000000">
<param name="title_font_size" value="16">
<param name="title_font_style" value="BOLD">
<param name="legend_position" value="right">
<param name="legend_font_size" value="12">
<param name="data_value" value="NONE">
<param name="x_value" value="Indonesia,China,India,Brazil">
<param name="s1_value" value="10,52,14,17">
<param name="s1_label" value="Rice">
<param name="s1_line_marker" value="n">
<param name="s1_line_WEIGHT" value="2">
<param name="s2_value" value="20,5,22,26">
<param name="s2_label" value="Potatoes">
<param name="s2_line_marker_type" value="8">
<param name="s2_line_WEIGHT" value="2">
<param name="s3_value" value="39,36,18,35">
<param name="s3_label" value="Wheat">
<param name="s3_line_WEIGHT" value="2">
</APPLET>
</BODY>
</HTML>
|
|