ChartDirector例如手册.docx
- 文档编号:28061480
- 上传时间:2023-07-08
- 格式:DOCX
- 页数:35
- 大小:549.19KB
ChartDirector例如手册.docx
《ChartDirector例如手册.docx》由会员分享,可在线阅读,更多相关《ChartDirector例如手册.docx(35页珍藏版)》请在冰豆网上搜索。
ChartDirector例如手册
ChartDirector例如手册
简介
ChartDirector控件利用方便,快捷,灵活,功能壮大,交互性强。
在web效劳器和嵌入式应用程序开发中,它是一种超级理想的工具,拥有丰硕的图表图形组件库.
特点描述
∙高效快捷
∙采纳多线程结构,专门应用于具有高性能要求的效劳器端应用程序开发。
∙灵活性
∙拥有基于API(应用编程接口)的对象,许诺用户操纵和定制图表细节,从而设计出用户中意的图表。
∙丰硕而全面的图表样式
∙圆形图表(饼状图),圆环图,柱形图(条形图),直线图,曲线图,梯级线图,趋势线图,曲线拟合图,线间色图,区域图,散布图(散形图),泡沫图,floatingbox,box-whisker,瀑布图,金融类图表,甘特图表,向量图,雷达图,极线图,rose,XY轴互换(旋转图表)和3D成效。
∙金融类图表库(附有源代码)
∙拥有成熟的金融类图表(具有46种技术指标)库。
∙仪表和量表
∙含有能够测量任意角度的测角仪表和能够进行横向和纵向测量的线性仪表。
∙层结构
∙具有同步处置能力的图表层许诺不同的图表样式重叠,从而取得任意的组合图表,而且达到特殊的成效。
例如,box-whisker能够用来添加错误标记到任意的XY图表样式上;还有散布图层能够用来加亮具有个性化标记的数据点。
∙CDML(图表制作向导标记语言)
∙图表制作向导标记语言这项创新性技术能够给内嵌有图标和图片的文档提供丰硕的样式。
该语言是基于所有的CharDirector文档定位符,其中包括有图表题目,图例关键字,轴标签,和数据标签等等。
∙高级的着色系统
∙除ARGB颜色(具有阿尔法透明性的真彩色)之外,在ChartDirector中所有对象还能够着上“奇异的颜色”——这种颜色依托于定位。
该系统还包括:
颜色式样,颜色梯度,金属颜色,依托于数据取值的颜色(比如,指示阀)
∙图像映射自动生成
∙生成的图像映射能够支持工具利用提示和鼠标与图形控件的交互。
具有对图像进行细化处置的能力。
工具提示能够用户定做,包括一些具有个性化的文字和数据。
图像映射是可扩展的,能够包括用户自概念的区域,比如公司标志,标签,和按钮。
∙阅读器的兼容性
∙生成的图表是PNG,JPEG,BMP,WBMP,和GIF格式的,这些图表格式对所有阅读器都是可见的,其中包括移动设备和手持设备。
图表能够作为图片嵌入到E-Mail(电子邮件),WORD文档,PDF格式文档等等,而且客户端不需要利用任何Java或ActiveX控件。
∙快捷的图表生成和传输
∙图表能够快捷地生成并传输到阅读器端,而且作为一个标准的Http图像数据进行存储,而不需要占用临时的图像文件。
∙节约带宽
∙采纳优化的颜色缩减算法,来制作基于调色板的图表,其成效等同于真彩色图表,而且文件所占空间变得更小。
专门是关于因特网应用开发是一款超级理想的工具。
∙国际化标准
∙支持统一字符编码,可自行设置数字,日期/时刻格式。
∙支持语言
∙支持多种语言,例如.NET, Java, ASP, COM,VB, PHP, Perl, Python,Ruby, ColdFusion, C++等;
例如
一、饼图
一、SimplePieChart
例如代码:
<%@pageimport="ChartDirector.*"%>
<%
18pt
"%>
<%
18pt
"%>
<%
18pt
"%>
<%
18pt
"%>
<%
15ptsetBackground(0xff9999));
Settheline
Fordatasortedin
(135);
18pt
"%>
<%@pageimport=""%>
<%!
Useajoin
(20,;
}
Thevalue999willbeformattedasUS$999K.
("{label}\nUS${value}K\n({percent}%)");
18pt
"%>
<%
etServletContext(),request);
15ptsetBackground(0xccccff,0x,());
(225);
18pt
"%>
<%
etServletContext(),request);
etBackground(""));
Useapinkmarblepattern
Thelegendboxistop-right
8pts("ArialBold",8,0x);
12ptsetLabelStyle("ArialBold",12,0xff0000);
8ptsAddabackgroundbox
(4).setLabelStyle("Arial",8,0x).setBackground,
0x,2);
8ptsAdd
(0).setLabelStyle("ArialItalic",8,0xff9999).setBackground(0x,
2);
8pts(6).setLabelStyle("TimesNewRomanBoldItalic",8,0x).setBackground(
0xffff00,0x);
18pt
"%>
<%@pageimport=""%>
<%!
9c3cetServletContext(),request);
0c0c18pt
"%>
<%
().setLabels(labels);
18pt
"%>
<%
etTitle("MBytes");
etTitle("WorkWeek25");
et3D();
().setLabels(labels);
18pt
"%>
<%
XYChartc=newXYChart(500,280);
8f8f8f8f14pts().setLabels(labels);
etTitle("Frequency");
etTitle("Shapes");
18pt
"%>
<%
Drawthetitleupright(fontangle=0)
().setTitle("Average\nWorkload\n(MBytes\nPerHour)").setFontAngle(0);
etLabels(labels);
18pt
"%>
<%
14ptsUsetwoalternative
8f8f8f8fetBackground;
etLabels(labels);
etTickOffset;
etTitle("Revenue(USDinmillions)");
etTitle("Year2005");
18pt
"%>
<%
14ptsUsetwoalternative
8f8f8f8fUse8ptsArialasfont,with
(50,25,false,"Arial",8).setBackground;
etLabels(labels);
etTickOffset;
etTitle("Revenue(USDinmillions)");
18pt
"%>
<%
Drawthetitleupright(fontangle=0)
().setTitle("Average\nWorkload\n(MBytes\nPerHour)").setFontAngle(0);
etLabels(labels);
Thebarsaredrawnin
(data0,0xff,"Server#1",5);
(data1,0x80ff0000,"Server#2",5);
(data2,0x8000ff00,"Server#3",5);
18pt
"%>
<%
electGEZ(null,.result(),
0x6666ff);
electLTZ(null,.result(),
0xff6600);
8ptThefontcoloris
("ArialBold",8,(0,0xcc3300,0x3333ff)
);
etLabels(labels).setFontStyle("ArialBold");
etLabelStyle("ArialBold");
etTitle("Percentage");
ddZone(0,9999,0xccccff);
ddZone(-9999,0,0xffcccc);
18pt
"%>
<%
().setLabels(labels);
().setLabelStep(3);
18pt
"%>
<%
12ptsetTitle("MBytes");
etTitle("June12,2001");
et3D();
().setLabels(labels);
().setLabelStep(3);
18pt
"%>
<%
Use9pts
SetthebackgroundandbordercolortoTransparent.
(50,30,false,"ArialBold",9).setBackground;
15ptswhite(0xffffff)onadarkred(0x)
("ApplicationServerThroughput","TimesNewRomanBoldItalic",15
).setBackground(0xccccff,0x,());
etTitle("MBytesperhour");
().setLabels(labels);
().setLabelStep(3);
etTitle("Jun12,2006");
Fordemopurpose,weuseadashline
18pt
"%>
<%
XYChartc=newXYChart(600,300,0xcccccc,0x,1);
etServletContext(),request);
Use9pts
SetthebackgroundandbordercolortoTransparent.
(55,32,false,"ArialBold",9).setBackground;
15ptsThetitleisin
Thetextiswhite(ffffff)ona
(
"<*block,valign=absmiddle*><*img=*><*img=*>Performance"+
"Enhancer<*img=*><*img=*><*/*>","TimesNewRomanBoldItalic",
15,0xffffff).setBackground(0x,-1,1);
etTitle("Temperature");
etTitle(
"<*block,valign=absmiddle*><*img=*>ElapsedTime(hour)<*/*>");
etWidth
(2);
().setWidth
(2);
etAlignment;
18pt
"%>
<%
XYChartc=newXYChart(600,300,0xeeeeee,0x,1);
();
etServletContext(),request);
Sethorizontalandverticalgridlinestogrey(cccccc).
(55,55,520,195,0xffffff,-1,-1,0xcccccc,0xcccccc);
15ptsThetitleisin
Thetextisonalightgrey
(
"<*block,valign=absmiddle*><*img=*><*img=*>Molecular"+
"TemperatureControl<*img=*><*img=*><*/*>",
"TimesNewRomanBoldItalic",15).setBackground(0xdddddd,0,()
);
etTitle("Temperature");
etTitle(
"<*block,valign=absmiddle*><*img=*>ElapsedTime(hour)<*/*>");
().setLabels(labels);
Showminorticksforremaininglabels.
().setLabelStep(3,1);
etWidth
(2);
().setWidth
(2);
etDataSymbol,12,0xffff80)
;
Usetheupperandlowermarkofthebox
Theupperandlowermarksarecomputedusing
BoxWhiskerLayererrLayer=(null,null,newArrayMath(data).add(
errData).result(),newArrayMath(data).sub(errData).result(),data,
0xbb6633);
etAlignment;
Weonlyneedtoshowthetooltipforthebox
StringimageMap1=("","",
"title='Temperatureathour{xLabel}:
{med}+/-{={med}-{min}}C'");
%>
18pt;font-family: verdana;font-weight: bold"> LinewithErrorSymbols
file=<%=()%>">
"+chart1URL)%>' usemap="#map1"border="0">