Результаты освоения программы
false,
'enablePushState' => false,
'options' => ['id' => '_chart'],
'clientOptions' => ['method' => 'POST']
]);
echo Html::beginTag('div', ['id' => 'chart_graphics']);
if (isset($array)) {
echo ChartJs::widget($array);
if (!empty($array['data']['datasets'])) {
$renderMethod = 'render';
if (Yii::$app->request->isAjax) {
$renderMethod = 'renderAjax';
}
echo $this->{$renderMethod}('_legend', [
'datasets' => $array['data']['datasets'],
]);
}
} else {
echo Html::tag('div', 'Выберите учебный план', ['class' => 'alert alert-info', 'role' => 'alert']);
}
echo Html::endTag('div');
Pjax::end(); ?>
session->getFlash('chartErrorFrom1C');
if ($alert) {
echo Html::tag('div', $alert, ['class' => 'alert alert-danger', 'role' => 'alert']);
} ?>