'Analytics',
              'toolbarLayout' => '{collapse}',
          ]
      ); ?>
      
       [
                      'colors'      => [
                          '#9ABCC3',
                          '#A8E3D6',
                      ],
                      'chart'       => [
                          'type'     => 'area',
                          'zoomType' => 'x',
                      ],
                      'title'       => [
                          'text' => 'Analytics',
                      ],
                      'yAxis'       => [
                          'title' => [
                              'text' => 'Sessions count',
                          ],
                      ],
                      'series'      => [
                          [
                              'name' => 'Sessions',
                              'data' => $data[ 0 ],
                          ],
                          [
                              'name' => 'Users',
                              'data' => $data[ 1 ],
                          ],
                      ],
                      'credits'     => [
                          'enabled' => false,
                      ],
                      'plotOptions' => [
                          'area' => [
                              'marker' => [
                                  'enabled' => false,
                                  'symbol'  => 'circle',
                                  'radius'  => 2,
                                  'states'  => [
                                      'hover' => [
                                          'enabled' => true,
                                      ],
                                  ],
                              ],
                          ],
                      ],
                  ],
              ]
          );
      ?>
      
      
  
  
 
  
       'Analytics',
              'toolbarLayout' => '{collapse}',
          ]
      ); ?>
      
       [
                      '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',
                          ],
                      ],
                  ],
              ]
          );
      ?>