{{-- Layout Reference --}}
@extends('Limitless::Help.Layout.Master')

@section('Limitless::Content')

    @php

        // sample backend data
        $categories = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
        $series = ['ONC', 'APR', 'SPR', 'PHX', 'SIG', 'BRG', 'MNT', 'SDK', 'OCT'];

        $seriesData = [];
        foreach ($series as $s) {
            $data['name'] = $s;
            $dataArray = [];
            foreach ($categories as $c) {
               $dataArray[] =  rand(1,100);
            }
            $data['data'] = $dataArray;
            $data['index'] = 0; //rand(0,1);
            $seriesData[] = $data;
        }

    @endphp


    @Limitless::CardStart(['title' => "Description", 'icon' => 'icon-info22' ] )
        @Limitless::Chart([
            'titles' => 'Sample 1',
            'charts' => 1,
            'colors' => ['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc', '#a1887f'],
            'point-values' => true,
            'boundary-gap' => true,
            'inverted' => true,
            'data-zoom' => true,
            'stacked' => true,
            'animation-duration' => 1000,
            'y-axis-label-value-format' => '{value} users',
            'mark-line' => 'average',
            'categories' => $categories,
            'series' => $seriesData
        ])
    @Limitless::CardStop

{{--    @Limitless::CardStart(['title' => "Chart 2", 'icon' => 'icon-info22' ] )--}}
{{--        @Limitless::Chart--}}
{{--    @Limitless::CardStop--}}

{{--    @Limitless::CardStart(['title' => "Chart 3", 'icon' => 'icon-info22' ] )--}}
{{--        @Limitless::LineChartStart--}}
{{--        @Limitless::LineChartStop--}}
{{--    @Limitless::CardStop--}}

@stop
