'Analytics',
              'toolbarLayout' => false,
          ]
      ); ?>
      
       'serial',
              'dataProvider'  => $data[ 'plot' ],
              'categoryField' => 'day',
              'categoryAxis'  => [
                  'labelFrequency' => 5,
              ],
              '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: [[users]]",
                      "lineColor"                   => '#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: [[sessions]]",
                      "lineColor"                   => '#A8E3D6',
                  ],
              ],
              'chartCursor'   => [
                  "pan"                     => true,
                  "valueLineEnabled"        => true,
                  "valueLineBalloonEnabled" => true,
                  "cursorAlpha"             => 1,
                  "cursorColor"             => "#1ABB9C",
                  "limitToGraph"            => "g1",
                  "valueLineAlpha"          => 0.2,
                  "valueZoomable"           => true,
              ],
          ];
    
          echo Widget::widget(
              [
                  'chartConfiguration' => $chartConfiguration,
                  'width'              => '100%',
              ]
          );
      ?>
      
      
  
  
 
  
       'Analytics',
              'toolbarLayout' => false,
          ]
      ); ?>
      
       "pie",
              "titleField"   => "category",
              "valueField"   => "column-1",
              "dataProvider" => [
                  [
                      "category" => "New Visitor",
                      "column-1" => round(intval($data[ 'new' ]), 2),
                  ],
                  [
                      "category" => "Returning Visitor",
                      "column-1" => 100 - round(intval($data[ 'new' ]), 2),
                  ],
              ],
              "colors"       => [
                  "#A8E3D6",
                  "#9ABCC3",
              ],
          ];
    
          echo Widget::widget(
              [
                  'chartConfiguration' => $chartConfiguration,
                  'width'              => '100%',
              ]
          );
      ?>
      
      
  
  
  
      
       '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',
                              ]
                          ),
                      ],
                  ],
              ]
          );
      ?>