Beispiel #1
0
        $groups[] = $day[$i]['groups']->created + 0;
        $active[] = $day[$i]['groups']->active + 0;
        $topics_bar_data[] = $day[$i]['groups']->total_topics + 0;
    }
    $max = max($max, $groups[$i], $active[$i], $topics_bar_data[$i]);
}
$total_bars = new bar_cylinder();
$total_bars->set_values($groups);
$total_bars->colour('#0066ff');
$total_bars->key('Total', 14);
$active_bars = new bar_cylinder();
$active_bars->set_values($active);
$active_bars->colour('#99cc00');
$active_bars->key('Active', 14);
$topics_bar = new bar_cylinder();
$topics_bar->set_values($topics_bar_data);
$topics_bar->colour('#BF3B69');
$topics_bar->key('Topics', 14);
//$max = $max+(round($max/2,0.49));
$steps = round($max / 5, 0.49);
$y = new y_axis();
$y->set_range(0, $max, $steps);
$chart = new open_flash_chart();
$chart->set_title($title);
$chart->add_element($total_bars);
$chart->add_element($active_bars);
$chart->add_element($topics_bar);
$x_labels = new x_axis_labels();
$x_labels->set_steps(1);
$x_labels->set_colour('#A2ACBA');
$x_labels->set_labels($year);
Beispiel #2
0
        $signups[] = $day[$i]['users']->signups + 0;
        $active[] = $day[$i]['users']->active + 0;
        $inactive[] = $day[$i]['users']->inactive + 0;
    }
    $max = max($max, $uploads[$i], $inactive[$i], $active[$i]);
}
$signups_bars = new bar_cylinder();
$signups_bars->set_values($signups);
$signups_bars->colour('#0066ff');
$signups_bars->key('Signups', 14);
$active_bars = new bar_cylinder();
$active_bars->set_values($active);
$active_bars->colour('#99cc00');
$active_bars->key('Active', 14);
$inactivebar = new bar_cylinder();
$inactivebar->set_values($inactive);
$inactivebar->colour('#BF3B69');
$inactivebar->key('Inactive', 14);
$max = $max + round($max / 2, 0.49);
$steps = round($max / 5, 0.49);
$y = new y_axis();
$y->set_range(0, $max, $steps);
$chart = new open_flash_chart();
$chart->set_title($title);
$chart->add_element($signups_bars);
$chart->add_element($active_bars);
$chart->add_element($inactivebar);
$x_labels = new x_axis_labels();
$x_labels->set_steps(1);
$x_labels->set_colour('#A2ACBA');
$x_labels->set_labels($year);
Beispiel #3
0
        $uploads[] = $day[$i]['video']->uploads + 0;
        $active[] = $day[$i]['video']->active + 0;
        $processing[] = $day[$i]['video']->processing + 0;
    }
    $max = max($max, $uploads[$i], $active[$i], $processing[$i]);
}
$total_bars = new bar_cylinder();
$total_bars->set_values($uploads);
$total_bars->colour('#0066ff');
$total_bars->key('Total', 14);
$active_bars = new bar_cylinder();
$active_bars->set_values($active);
$active_bars->colour('#99cc00');
$active_bars->key('Active', 14);
$processing_bar = new bar_cylinder();
$processing_bar->set_values($processing);
$processing_bar->colour('#BF3B69');
$processing_bar->key('Processing', 14);
//$max = $max+(round($max/2,0.49));
$steps = round($max / 5, 0.49);
$y = new y_axis();
$y->set_range(0, $max, $steps);
$chart = new open_flash_chart();
$chart->set_title($title);
$chart->add_element($total_bars);
$chart->add_element($active_bars);
$chart->add_element($processing_bar);
$x_labels = new x_axis_labels();
$x_labels->set_steps(1);
$x_labels->set_colour('#A2ACBA');
$x_labels->set_labels($year);