Ejemplo n.º 1
0
<?php

require_once 'innomatic/wui/Wui.php';
require_once 'innomatic/wui/widgets/WuiWidget.php';
require_once 'innomatic/wui/widgets/WuiContainerWidget.php';
require_once 'innomatic/wui/dispatch/WuiEventsCall.php';
require_once 'innomatic/wui/dispatch/WuiEvent.php';
require_once 'innomatic/wui/dispatch/WuiEventRawData.php';
require_once 'innomatic/wui/dispatch/WuiDispatcher.php';
global $gXml_def;
$gWui = Wui::instance('wui');
$gWui->LoadWidget('innomaticpage');
$gWui->LoadWidget('xml');
$gXml_def = '';
$gMain_disp = new WuiDispatcher('view');
$gMain_disp->AddEvent('default', 'main_default');
function main_default($eventData)
{
    global $gXml_def;
    $example_data = array(array("80", 0.0, 20, 4, 5, 6), array("81", 2.0, 30, 5, 6, 7), array("82", 3.0, 40, 5, 7, 8), array("83", 4.0, 50, 3, 6, 3), array("84", 4.4, 40, 3, 6, 5), array("85", 5.4, 40, 5, 6, 5), array("86", 5.5, 40, 7, 6, 5), array("87", 7, 35, 0.0, 0.0, ""), array("88", 7.4, 40, 14, 16, 25), array("89", 7.6, 40, 6, 6, 5), array("90", 8.199999999999999, 40, 3, 6, 5), array("91", 8.5, 40, 8, 6, 9), array("92", 9.300000000000001, 40, 5, 6, 5), array("93", 9.6, 40, 9, 6, 7), array("94", 9.9, 40, 2, 6, 5), array("95", 10.0, 40, 3, 6, 8), array("96", 10.4, 40, 3, 6, 5), array("97", 10.5, 40, 3, 6, 5), array("98", 10.8, 40, 3, 6, 5), array("99", 11.4, 40, 3, 6, 5), array("00", 12.0, 40, 3, 7, 5), array("01", 13.4, 40, 3, 5, 3), array("02", 14.0, 30, 3, 5, 6));
    $legend = array('Prodotto A', 'Prodotto B', 'Prodotto C', 'Prodotto D', 'Prodotto E');
    $gXml_def = '<vertgroup>
  <children>

    <label>
      <args>
        <label>Grafico</label>
      </args>
    </label>

    <vertframe>