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


Example shows an xml file data source that includes array-style data with point labels and series labels.

<?xml version="1.0"?>
<!DOCTYPE chart-data SYSTEM "JCChartData.dtd">
<chart-data Name="My Chart">
  <data-point-label> Point Label 1 </data-point-label>
  <data-point-label> Point Label 2 </data-point-label>
  <data-point-label> Point Label 3 </data-point-label>
  <data-point-label> Point Label 4 </data-point-label>
  <data-series>
    <data-series-label> Y Axis #1 Data </data-series-label>
    <x-data>1</x-data>
    <x-data>2</x-data>
    <x-data>3</x-data>
    <x-data>4</x-data>
  <y-data>1</y-data>
    <y-data>2</y-data>
    <y-data>3</y-data>
    <y-data>4</y-data>
  </data-series>
  <data-series>
    <data-series-label> Y Axis #2 Data </data-series-label>
    <y-data>1</y-data>
    <y-data>4</y-data>
    <y-data>9</y-data>
    <y-data>16</y-data>
  </data-series>
</chart-data>

Source code

File Loader Source code

More Examples...


Copyright© 2004 Quest Software Inc.