'Analytics',
'toolbarLayout' => false,
]
); ?>
'serial',
'dataProvider' => $data[ 'plot' ],
'categoryField' => 'day',
'graphs' => [
[
"balloon" => [
"drop" => true,
"adjustBorderColor" => false,
"color" => "#ffffff",
],
"bullet" => "round",
"bulletBorderAlpha" => 1,
"bulletColor" => "#FFFFFF",
"bulletSize" => 5,
"hideBulletsCount" => 50,
"lineThickness" => 2,
"title" => "red line",
"useLineColorForBulletBorder" => true,
"valueField" => "users",
"balloonText" => "[[users]]",
"lineColors" => '#9ABCC3',
],
[
"balloon" => [
"drop" => true,
"adjustBorderColor" => false,
"color" => "#ffffff",
],
"bullet" => "round",
"bulletBorderAlpha" => 1,
"bulletColor" => "#FFFFFF",
"bulletSize" => 5,
"hideBulletsCount" => 50,
"lineThickness" => 2,
"title" => "red line",
"useLineColorForBulletBorder" => true,
"valueField" => "sessions",
"balloonText" => "[[sessions]]",
"lineColors" => '#A8E3D6',
],
],
];
echo speixoto\amcharts\Widget::widget(
[
'chartConfiguration' => $chartConfiguration,
'width' => '100%',
]
);
?>
'Analytics',
'toolbarLayout' => false,
]
); ?>
[
'exporting' => [
'enabled' => false,
],
'colors' => [
'#9ABCC3',
'#A8E3D6',
],
'chart' => [
'plotBackgroundColor' => null,
'plotBorderWidth' => null,
'plotShadow' => false,
'type' => 'pie',
],
'title' => [
'text' => 'Analytics',
],
'series' => [
[
'name' => 'Sessions',
'data' => [
[
'name' => 'New visitor',
'y' => round(intval($data[ 'new' ]), 2),
],
[
'name' => 'Returning Visitor',
'y' => 100 - round(intval($data[ 'new' ]), 2),
],
],
],
],
'credits' => [
'enabled' => false,
],
'plotOptions' => [
'pie' => [
'allowPointSelect' => true,
'cursor' => 'pointer',
],
],
],
]
);
?>
'Analytics',
'toolbarLayout' => false,
]
); ?>
[
[
'label' => 'Browsers',
'content' => $this->render(
'_table',
[
'data' => $browsers,
'name' => 'Browser',
]
),
'active' => true,
],
[
'label' => 'Cities',
'content' => $this->render(
'_table',
[
'data' => $cityes,
'name' => 'City',
]
),
],
[
'label' => 'Countries',
'content' => $this->render(
'_table',
[
'data' => $countries,
'name' => 'Country',
]
),
],
],
]
);
?>