Flashchart"

From Documentation
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{ZKComponentReferencePageHeader}}
 
{{ZKComponentReferencePageHeader}}
 +
{{Deprecated Content}}
 +
= Flashchart =
  
= Flashchart =
+
{{notice| text=This component is Deprecated, use [[ZK_Charts_Essentials | ZK Charts]] instead }}
  
*Demonstration: [http://www.zkoss.org/zkdemo/userguide/#d21 link]
+
*Demonstration: [http://www.zkoss.org/zkdemo/chart/flash_pie_chart Flash Pie Chart], [http://www.zkoss.org/zkdemo/chart/other_flash_charts Other Flash Charts]
 
*Java API: <javadoc>org.zkoss.zul.Flashchart</javadoc>
 
*Java API: <javadoc>org.zkoss.zul.Flashchart</javadoc>
 
*JavaScript API: <javadoc directory="jsdoc">zul.fchart.Flashchart</javadoc>
 
*JavaScript API: <javadoc directory="jsdoc">zul.fchart.Flashchart</javadoc>
Line 14: Line 16:
 
[[Image:ZKComRef_Flashchart_Examples.PNG]]  
 
[[Image:ZKComRef_Flashchart_Examples.PNG]]  
  
 
+
<source lang="xml">
<source lang="xml" >
+
<flashchart id="mychart" width="500" height="250" type="pie">
<vbox>
+
<zscript><![CDATA[
<grid width="400px">
+
PieModel model = new SimplePieModel();
<columns>
+
model.setValue("C/C++", new Double(56));
<column label="category" width="150px" />
+
model.setValue("VB", new Double(51));
<column label="value" />
+
model.setValue("Java", new Double(202));
</columns>
+
model.setValue("PHP", new Double(141));
<rows>
+
mychart.setModel(model);
<row>
+
]]></zscript>
<label id="c0" value="C/C++" />
+
</flashchart>
<decimalbox id="v0" value="21.2" constraint="no empty"
 
onChange="update(0)" />
 
</row>
 
<row>
 
<label id="c1" value="VB" />
 
<decimalbox id="v1" value="10.2" constraint="no empty"
 
onChange="update(1)" />
 
</row>
 
<row>
 
<label id="c2" value="Java" />
 
<decimalbox id="v2" value="40.4" constraint="no empty"
 
onChange="update(2)" />
 
</row>
 
<row>
 
<label id="c3" value="PHP" />
 
<decimalbox id="v3" value="28.2" constraint="no empty"
 
onChange="update(3)" />
 
</row>
 
</rows>
 
</grid>
 
<flashchart id="mychart" width="500" height="250"
 
type="pie">
 
<zscript>
 
void update(int rowIndex) {
 
Label lb = (Label) self.getFellow("c"+rowIndex);
 
Decimalbox db = (Decimalbox) self.getFellow("v"+rowIndex);
 
model.setValue(lb.value, new Double(db.getValue().doubleValue()));
 
  } 
 
  PieModel model = new SimplePieModel();
 
for(int j=0; j &lt; 4; ++j) {
 
update(j);
 
  }
 
  mychart.setModel(model);
 
</zscript>
 
</flashchart>
 
<toolbarbutton label="See More chart..." href="/userguide/data/moreflashchart.zul" target="zkdemo"/>
 
</vbox>
 
 
 
</source>
 
</source>
  
=Supported events=
+
=Supported Events=
  
{| border="1" | width="100%"
+
{| class='wikitable' | width="100%"
 
! <center>Name</center>
 
! <center>Name</center>
 
! <center>Event Type</center>
 
! <center>Event Type</center>
Line 74: Line 38:
 
| None
 
| None
 
|}
 
|}
 +
*Inherited Supported Events: [[ZK_Component_Reference/Multimedia_and_Miscellaneous/Flash#Supported_Events | Flash]]
  
 
=Supported Children=
 
=Supported Children=
Line 79: Line 44:
 
  *ALL
 
  *ALL
  
=Use cases=
+
=Use Cases=
  
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Description !! Example Location
 
! Version !! Description !! Example Location
 
|-
 
|-
Line 92: Line 57:
 
{{LastUpdated}}
 
{{LastUpdated}}
  
{| border='1px' | width="100%"
+
{| class='wikitable' | width="100%"
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-
 +
| '''5.0.12''', '''6.0.3.1''', and '''6.5.1'''
 
| &nbsp;
 
| &nbsp;
| &nbsp;
+
| Decouple Flashchart component from the zul to the addon package. Please download it from the [https://github.com/zkoss/flashchart Github].
| &nbsp;
 
 
|}
 
|}
  
 
{{ZKComponentReferencePageFooter}}
 
{{ZKComponentReferencePageFooter}}

Latest revision as of 08:55, 21 March 2022

Icon info.png Note: The content of this page has been deprecated/removed in the latest version.

Flashchart

Icon info.png Notice: This component is Deprecated, use ZK Charts instead

Employment/Purpose

The generic flash chart component.

Example

ZKComRef Flashchart Examples.PNG

<flashchart id="mychart" width="500" height="250" type="pie">
	<zscript><![CDATA[
		PieModel model = new SimplePieModel();
		model.setValue("C/C++", new Double(56));
		model.setValue("VB", new Double(51));
		model.setValue("Java", new Double(202));
		model.setValue("PHP", new Double(141));
		mychart.setModel(model);
	]]></zscript>
</flashchart>

Supported Events

Name
Event Type
None None
  • Inherited Supported Events: Flash

Supported Children

*ALL

Use Cases

Version Description Example Location
     

Version History

Last Update : 2022/03/21


Version Date Content
5.0.12, 6.0.3.1, and 6.5.1   Decouple Flashchart component from the zul to the addon package. Please download it from the Github.



Last Update : 2022/03/21

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.