General-Style XML Data Source Example (Series/Point Labels)


Example shows an xml file data source that includes general-style data with point labels and series labels.
<?xml version="1.0"?>
<!DOCTYPE chart-data SYSTEM "JCChartData.dtd">
<chart-data Name="Fred" Hole="MAX">
  <data-point-label> Mercury </data-point-label>
  <data-point-label> Venus </data-point-label>
  <data-point-label> Earth </data-point-label>
  <data-point-label> Mars </data-point-label>
  <data-point-label> Jupiter </data-point-label>
  <data-series>
    <data-series-label> Series 1 </data-series-label>
    <x-data>1</x-data>
    <x-data>3</x-data>
    <x-data>5</x-data>
    <y-data>5</y-data>
    <y-data>14</y-data>
    <y-data>24</y-data>
  </data-series>
  <data-series>
    <data-series-label> Series 2 </data-series-label>
    <x-data>1</x-data>
    <x-data>2</x-data>
    <x-data>3</x-data>
    <x-data>4</x-data>
    <x-data>5</x-data>
    <y-data>11</y-data>
    <y-data>15</y-data>
    <y-data>18</y-data>
    <y-data>21</y-data>
    <y-data>22</y-data>
  </data-series>
  <data-series>
    <data-series-label> Series 3 </data-series-label>
    <x-data>2</x-data>
    <x-data>4</x-data>
    <y-data>16</y-data>
    <y-data>15.2</y-data>
  </data-series>
</chart-data>

Source code

File Loader Source code

More Examples...


Copyright© 2004 Quest Software Inc.