Size>400</YSize>
</chart>
</root>
代码段6 dfconfig.xml
<?xml version="1.0"?>
<chart>
<Type>10</Type>
<Title>Points By Defender</Title>
<CatTitle>Player Name</CatTitle>
<ValTitle>Points</ValTitle>
<SeriesTitles>Points Scored</SeriesTitles>
</chart>
代码段7 muconfig.xml
<?xml version="1.0"?>
<chart>
<Type>9</Type>
<Title>Points Breakdown</Title>
<CatTitle>Player Number</CatTitle>
<ValTitle>Points</ValTitle>
<SeriesTitles>Goals, Assists</SeriesTitles>
</chart>
用Java从XML文件中获取业务图表(7)
时间:2010-12-06
代码段8 players.xml
<Players team="New York Power">
<Player>
<Number>30</Number>
<Position>MID</Position>
<Name>Justi Baumgardt-Yamada</Name>
<GamesPlayed>5</GamesPlayed>
<GamesStarted>2</GamesStarted>
<Minutes>233</Minutes>
<Goals>0</Goals>
<Assists>1</Assists>
<Points>1</Points>
<Shots>6</Shots>
<ShotsOnGoal>2</ShotsOnGoal>
<Blocks>0</Blocks>
<FoulsCommitted>2</FoulsCommitted>
<FoulsSuffered>5</FoulsSuffered>
<Cautions>0</Cautions>
<Ejections>0</Ejections>
</Player>
<Player>
<Number>12</Number>
<Position>MID</Position>
<Name>Kirsta Davey</Name>
<GamesPlayed>15</GamesPlayed>
<GamesStarted>1</GamesStarted>
<Minutes>357</Minutes>
<Goals>2</Goals>
<Assists>0</Assists>
<Points>4</Points>
<Shots>8</Shots>
<ShotsOnGoal>5</ShotsOnGoal>
<Blocks>0</Blocks>
<FoulsCommitted>6</FoulsCommitted>
<FoulsSuffered>7</FoulsSuffered>
<Cautions>1</Cautions>
<Ejections>0</Ejections>
</Player>
代码段 9 pmconfig.xml
<?xml version="1.0"?>
<chart>
<Type>1</Type>
<Title>Points By Player</Title>
<CatTitle>Player Name</CatTitle>
<ValTitle>Points</ValTitle>
<SeriesTitles>Points Scored</SeriesTitles>
</chart>
|