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

📄 charttest2.xml

📁 ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.
💻 XML
字号:
<?xml version="1.0"?><Application>	<Window caption="Chart Test" width="500" height="400" centered="true"/>	<Resources>		<Package name="Charting"/>		<Script><![CDATA[function ChartTest2() {	var win = application.getWindow();	var cb = new BiComboBox(["line", "column", "stackedcolumn", "percentagestackedcolumn", "bar", "stackedbar", "percentagestackedbar", "pie", "grid"]);	win.add(cb);	cb.setLocation(10, 10);	cb.setWidth(150);	var d0 = new Date;	var oDoc = BiXmlLoader.load( "ronchart.xml" );	if (oDoc.parseError.errorCode != 0) {		alert("Error parsing chart XML file" +			"\n\nurl: " + oDoc.parseError.url +			"\nreason: " + oDoc.parseError.reason +			"srcText: " + oDoc.parseError.srcText +			"\nline: " + oDoc.parseError.line);		return;	}	var graph = BiGraph.fromXmlDocument(oDoc);	win.add(graph);	graph.update();	graph.setLocation(10, cb.getHeight() + 20);	graph.setRight(10);	graph.setBottom(10);	graph.setBorder( new BiBorder(1, "solid", "black") );	graph.setBackColor("#cfe0f2");	win.setCaption(win.getCaption() + " [" + (new Date - d0) + "ms]");	cb.findString(graph.getChartType()).setSelected(true);	cb.addEventListener("change", function (e) {		var s = win.getCaption();		var d0 = new Date;		graph.setChartType(cb.getSelectedItem().getText());		graph.update();		var t = new Date - d0;		win.setCaption( s.replace(/\[.+\]/, "[" + t + "]") );	}, this);	graph.addEventListener("pointclick", function (e) {		graph.getPresentationManager().setFillColor2ForPoint(			e.getSeries().getId(), e.getCategory().getId(),			"white"		);		graph.getPresentationManager().setFillTypeForPoint(			e.getSeries().getId(), e.getCategory().getId(),			"gradient"		);		return;		alert("type: " + e.getType() +			"\nseries: " + e.getSeries().getId() +			"\nCategory: " + e.getCategory().getId() );	});	oDoc = null;}ChartTest2.main = function () { new ChartTest2; };		]]></Script>	</Resources></Application>

⌨️ 快捷键说明

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