Example #1
0
echo "</div>";
#ColumnChart
echo "<div class='col-sm-6'>";
$line_column_chart = new LineAndColumnChart();
$line_column_panel = new Panel();
$line_column_chart->demo();
$line_column_panel->data["content"] = "<div class='ichart' id='chart4'></div>";
$line_column_panel->addOptionCreate();
$line_column_panel->show();
echo '<script>' . '$("#chart4").highcharts(' . $line_column_chart->getChartJson() . ');' . '</script>';
echo "</div>";
#PieChart
echo "<div class='col-sm-6'>";
$pie_chart = new PieChart();
$pie_panel = new Panel();
$pie_chart->demo();
$pie_panel->data["content"] = "<div class='ichart' id='chart5'></div>";
$pie_panel->addOptionCreate();
$pie_panel->show();
echo '<script>' . '$("#chart5").highcharts(' . $pie_chart->getChartJson() . ');' . '</script>';
echo "</div>";
#Dim2PieChart
echo "<div class='col-sm-6'>";
$dim2pie_chart = new Dim2PieChart();
$dim2pie_panel = new Panel();
$dim2pie_chart->demo();
$dim2pie_panel->data["content"] = "<div class='ichart' id='chart6'></div>";
$dim2pie_panel->addOptionCreate();
$dim2pie_panel->show();
echo '<script>' . '$("#chart6").highcharts(' . $dim2pie_chart->getChartJson() . ');' . '</script>';
echo "</div>";