Sample 3: Accessing data via remote or local webserver

Chart Parameters: {flashchart data="url"
url="http://www.jschmidt-systemberatung.de/php-apps/flashchart/samples/getCSV_data.php"

type="bar_stack" tooltip="#x_label#: #val# kWh <br>>Total #total# kWh" title="PV System" height="300" dimension=" kWh" label_fontsize="11" x_label_rotate="40" x_step="4"
legend="SMA Sunnyboy 1,SMA Sunnyboy 2" right_legend="0"
bg_image="plugins/content/flashchart/images/pv_system.jpg"}sample03{/flashchart}

{flashchart data="url" url="http://www.jschmidt-systemberatung.de/php-apps/flashchart/samples/getCSV_data.php" type="bar_stack" precision="2" tooltip="#x_label#: #val# kWh
Total #total# kWh" title="PV System" height="300" dimension=" kWh" label_fontsize="11" bg_image="plugins/content/flashchart/images/pv_system.jpg" x_label_rotate="40" x_step="4" legend="SMA Sunnyboy 1,SMA Sunnyboy 2" right_legend="0"}sample03{/flashchart}

Note: Via parameter "url" you can not only request data (files), but you may also have a program or script deliver the data. Here PHP-Script "getCSV_data.php" will be executed on our webserver, which transforms CSV-data to flashChart's format and delivers the data back for further processing by flashChart.

  • {flashchart width="655" height="490" data="popup_window" url="php-apps/flashchart/samples/getCSV_data-en.html" title="Click to see PHP-Script for this sample"}chart01{/flashchart}

Important: If you want to test this sample via copy/paste, ensure that you paste with option "paste as plain text" otherwise imbedded html-codes may invalidate your input.

go back...