Help for this page

Select Code to Download


  1. or download this
    <chart caption='Monthly Sales Summary' subcaption='For the year 2006' 
    +xAxisName='Month' yAxisName='Sales' numberPrefix='$'>
        <set label='January' value='17400' />
    ...
        <set label='November' value='32900' />
        <set label='December' value='39800' />
    </chart>
    
  2. or download this
        my %xml_hash;
        print $xml->chart({caption => 'Chart Title', subcaption => 'Subtit
    +le', xAxisName => 'xAxis', yAxisName => 'yAxis'});
    ...
        }
        my $xmlOut = XMLout(\%xml_hash, NoAttr => 1, RootName => 'chart');
        print $xmlOut;
    
  3. or download this
    <chart caption="Chart Title"
           xAxisName="xAxis"
    ...
    ..
    ...
    </chart>
    
  4. or download this
    print $xml->chart({caption => 'Chart Title', subcaption => 'Subtitle',
    + xAxisName => 'xAxis', yAxisName => 'yAxis'},
    foreach my $key ( sort keys %hash) {
        my ( $date, $cust ) = split( /:/, $key );
        $xml->data({set => },['set'], $hash{$key}[2]);
    });