JMSL Chart Programmer's Guide
|
XML >> Examples >> Pie Chart |
XML Example: Pie Chart
(Download Code)
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <!DOCTYPE Chart PUBLIC "-//Visual Numerics//DTD JMSL Chart//EN" "http://www.vni.com/products/jmsl/Chart.dtd"> <Chart> <ChartTitle> <Attribute name="Title">Pie Chart</Attribute> <Attribute name="FontSize" value="14"/> <Attribute name="FontStyle" value="3"/> </ChartTitle> <Pie y="{6,5,7,1}"> <Attribute name="LabelType" value="LABEL_TYPE_TITLE"/> <Attribute name="Explode" value="0.1"/> <PieSlice index="0"> <Attribute name="FillColor" value="green"/> <Attribute name="Title" value="Green"/> <ToolTip/> </PieSlice> <PieSlice index="1"> <Attribute name="FillColor" value="red"/> <Attribute name="Title" value="Red"/> <ToolTip/> </PieSlice> <PieSlice index="2"> <Attribute name="FillColor" value="blue"/> <Attribute name="Title" value="Blue"/> <ToolTip/> </PieSlice> <PieSlice index="3"> <Attribute name="FillColor" value="yellow"/> <Attribute name="Title" value="Yellow"/> <ToolTip/> </PieSlice> </Pie> </Chart>(Download Code)
© Visual Numerics, Inc. All rights reserved. |