⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chart.zul

📁 非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应用程序更漂亮更易操作。 官网:www.zkoss.org
💻 ZUL
字号:
<?xml version="1.0" encoding="UTF-8"?><!--chart.zul{{IS_NOTE	Purpose:			Description:			History:		Tue Oct  4 11:31:13     2005, Created by henrichen}}IS_NOTECopyright (C) 2005 Potix Corporation. All Rights Reserved.{{IS_RIGHT}}IS_RIGHT--><window id="demo">	<vbox width="100%">		<html>			<attribute name="content"><![CDATA[				<h4>Chart</h4>				<p>Chart is used to show a set of data as a graph. 				In this demo, change the value of the grid and the chart 				will be redrawn accordingly. Also, the chart can be drill down with a click 				on the pie. </p>			]]></attribute>		</html>		<groupbox mold="3d" width="100%">			<caption label="View"><button label="Reload" height="18px" use="org.zkoss.zkdemo.userguide.ReloadButton"/></caption>			<window id="view">			</window>		</groupbox>		<groupbox id="tryView" mold="3d" open="false" width="100%">			<caption label="Source"><button label="Try me!" use="org.zkoss.zkdemo.userguide.TryMeButton"/></caption>			<textbox id="codeView" use="org.zkoss.zkdemo.userguide.CodeView" class="code" rows="15" width="100%">				<attribute name="value"><![CDATA[<vbox><grid><columns>  <column label="category" width="150px"/>  <column label="value"/></columns><rows>  <row><label id="c0" value="C/C++"/><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><checkbox label="3D Chart" checked="true" onCheck="mychart.setThreeD(self.isChecked())"/><chart id="mychart" title="Pie Chart Demo" width="500" height="250" type="pie" threeD="true" fgAlpha="128"><attribute name="onClick">  Area area = self.getFellow(event.getArea());  alert(""+area.getAttribute("entity")+": "+area.getTooltiptext());</attribute><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></chart></vbox>				]]></attribute>			</textbox>		</groupbox>	</vbox></window>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -