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


Example shows an xml file data source containing transposed array-style data with point labels and series labels.
<?xml version="1.0"?>
<!DOCTYPE chart-data SYSTEM "JCChartData.dtd">
<chart-data Name="MyChart">
  <data-series-label> Y Data </data-series-label>
  <data-series-label> Y 2 Data </data-series-label>
  <data-point>
    <data-point-label>Point Label 1</data-point-label>
    <x-data>1</x-data>
    <y-data>1</y-data>
    <y-data>1</y-data>
  </data-point>
  <data-point>
    <data-point-label>Point Label 2</data-point-label>
    <x-data>2</x-data>
    <y-data>2</y-data>
    <y-data>4</y-data>
  </data-point>
  <data-point>
    <data-point-label>Point Label 3</data-point-label>
    <x-data>3</x-data>
    <y-data>3</y-data>
    <y-data>9</y-data>
  </data-point>
  <data-point>
    <data-point-label>Point Label 4</data-point-label>
    <x-data>4</x-data>
    <y-data>4</y-data>
    <y-data>16</y-data>
  </data-point>
</chart-data>

Source code

File Loader Source code

More Examples...


Copyright© 2004 Quest Software Inc.