JMSL Chart Programmer's Guide
|
XML >> Examples >> Bar Chart of States |
XML Example: Bar Chart of States
(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> <!-- Data from http://www.census.gov/population/estimates/state/st-99-3.txt --> <Array id="population"> <NumberList> 4369862,619500,4778332,2551373,33145121,4056133,3282031,753538, 519000,15111244,7788240,1185497,1251700,12128370,5942901,2869413, 2654052,3960825,4372035,1253040,5171634,6175169,9863775,4775508, 2768619,5468338,882779,1666028,1809253,1201134,8143412,1739844, 18196601,7650789,633666,11256654,3358044,3316154,11994016, 990819,3885736,733133,5483535,20044141,2129836,593740,6872912, 5756361,1806928,5250446,479602 </NumberList> </Array> <Array id="states"> <String value="Alabama"/> <String value="Alaska"/> <String value="Arizona"/> <String value="Arkansas"/> <String value="California"/> <String value="Colorado"/> <String value="Connecticut"/> <String value="Delaware"/> <String value="District of Columbia"/> <String value="Florida"/> <String value="Georgia"/> <String value="Hawaii"/> <String value="Idaho"/> <String value="Illinois"/> <String value="Indiana"/> <String value="Iowa"/> <String value="Kansas"/> <String value="Kentucky"/> <String value="Louisiana"/> <String value="Maine"/> <String value="Maryland"/> <String value="Massachusetts"/> <String value="Michigan"/> <String value="Minnesota"/> <String value="Mississippi"/> <String value="Missouri"/> <String value="Montana"/> <String value="Nebraska"/> <String value="Nevada"/> <String value="New Hampshire"/> <String value="New Jersey"/> <String value="New Mexico"/> <String value="New York"/> <String value="North Carolina"/> <String value="NorthDakota"/> <String value="Ohio"/> <String value="Oklahoma"/> <String value="Oregon"/> <String value="Pennsylvania"/> <String value="Rhode Island"/> <String value="South Carolina"/> <String value="South Dakota"/> <String value="Tennessee"/> <String value="Texas"/> <String value="Utah"/> <String value="Vermont"/> <String value="Virginia"/> <String value="Washington"/> <String value="West Virginia"/> <String value="Wisconsin"/> <String value="Wyoming"/> </Array> <Attribute name="TextColor" value="blue"/> <Background> <Attribute name="FillColor" value="white"/> <Attribute name="FontSize" value="24"/> </Background> <ChartTitle> <Attribute name="Title">Population of the United States</Attribute> <Attribute name="FontSize" value="24"/> <Attribute name="FontStyle" value="3"/> </ChartTitle> <AxisXY> <AxisY> <AxisTitle><Attribute name="Title" value="Population"/></AxisTitle> <Attribute name="TextFormat">###,###</Attribute> </AxisY> <AxisX> <AxisTitle><Attribute name="Title" value="State"/></AxisTitle> <AxisLabel><Attribute name="TextAngle" value="270"/></AxisLabel> </AxisX> <Bar y="#population"> <Attribute name="BarType" value="BAR_TYPE_VERTICAL"/> <Attribute name="Labels" value="#states"/> <Attribute name="FillColor" value="red"/> <Attribute name="FillOutlineType" value="FILL_TYPE_NONE"/> <Attribute name="LabelType" value="LABEL_TYPE_Y"/> <Attribute name="TextAngle" value="270"/> <Attribute name="TextFormat" value="0.00E0"/> <Attribute name="FontSize" value="10"/> </Bar> </AxisXY> </Chart>
© Visual Numerics, Inc. All rights reserved. |