#pragma checksum "C:\Users\DoctorX\Documents\netcoreweb\Spice_mysql - kopie\Spice\Spice\Spice\Areas\Customer\Views\Home\Privacy.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "c50da5d1e15725b9542db63bd6af08dc7a58d0ab"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Areas_Customer_Views_Home_Privacy), @"mvc.1.0.view", @"/Areas/Customer/Views/Home/Privacy.cshtml")]
namespace AspNetCore
{
    #line hidden
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Mvc;
    using Microsoft.AspNetCore.Mvc.Rendering;
    using Microsoft.AspNetCore.Mvc.ViewFeatures;
#nullable restore
#line 1 "C:\Users\DoctorX\Documents\netcoreweb\Spice_mysql - kopie\Spice\Spice\Spice\Areas\Customer\Views\_ViewImports.cshtml"
using Spice;

#line default
#line hidden
#nullable disable
#nullable restore
#line 2 "C:\Users\DoctorX\Documents\netcoreweb\Spice_mysql - kopie\Spice\Spice\Spice\Areas\Customer\Views\_ViewImports.cshtml"
using Spice.Models;

#line default
#line hidden
#nullable disable
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"c50da5d1e15725b9542db63bd6af08dc7a58d0ab", @"/Areas/Customer/Views/Home/Privacy.cshtml")]
    [global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"6c1390ba8093fb4c2e21d25b459146d9962f6bcb", @"/Areas/Customer/Views/_ViewImports.cshtml")]
    public class Areas_Customer_Views_Home_Privacy : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<IEnumerable<Category>>
    {
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
#nullable restore
#line 2 "C:\Users\DoctorX\Documents\netcoreweb\Spice_mysql - kopie\Spice\Spice\Spice\Areas\Customer\Views\Home\Privacy.cshtml"
  
    ViewData["Title"] = "CIOT";

#line default
#line hidden
#nullable disable
            WriteLiteral("<h1>");
#nullable restore
#line 5 "C:\Users\DoctorX\Documents\netcoreweb\Spice_mysql - kopie\Spice\Spice\Spice\Areas\Customer\Views\Home\Privacy.cshtml"
Write(ViewData["Title"]);

#line default
#line hidden
#nullable disable
            WriteLiteral(@"</h1>

<script src=""https://code.jquery.com/jquery-3.1.1.min.js""></script>
<script src=""https://code.highcharts.com/stock/highstock.js""></script>
<script src=""https://code.highcharts.com/stock/modules/exporting.js""></script>
<script src=""https://code.highcharts.com/modules/boost.js""></script>
<div id=""container"" style=""height: 400px; min-width: 310px""></div>

<script>
 
function afterSetExtremes(e) {

    var chart = Highcharts.charts[0];
    var h = '");
#nullable restore
#line 18 "C:\Users\DoctorX\Documents\netcoreweb\Spice_mysql - kopie\Spice\Spice\Spice\Areas\Customer\Views\Home\Privacy.cshtml"
        Write(ViewData["magnitude"].ToString());

#line default
#line hidden
#nullable disable
            WriteLiteral("\';\r\n    var dev =  \'");
#nullable restore
#line 19 "C:\Users\DoctorX\Documents\netcoreweb\Spice_mysql - kopie\Spice\Spice\Spice\Areas\Customer\Views\Home\Privacy.cshtml"
           Write(ViewData["deveui"].ToString());

#line default
#line hidden
#nullable disable
            WriteLiteral(@"';
    chart.showLoading('Loading data from server...');
    $.getJSON('/Customer/Home/UpdateChart',{ min: Math.round(e.min), max: Math.round(e.max), magnitude: h, deveui: dev}, function (data1) {

        chart.series[0].setData(data1);
        chart.hideLoading();
    });
}

    var h = '");
#nullable restore
#line 28 "C:\Users\DoctorX\Documents\netcoreweb\Spice_mysql - kopie\Spice\Spice\Spice\Areas\Customer\Views\Home\Privacy.cshtml"
        Write(ViewData["magnitude"].ToString());

#line default
#line hidden
#nullable disable
            WriteLiteral("\';\r\n    var dev =  \'");
#nullable restore
#line 29 "C:\Users\DoctorX\Documents\netcoreweb\Spice_mysql - kopie\Spice\Spice\Spice\Areas\Customer\Views\Home\Privacy.cshtml"
           Write(ViewData["deveui"].ToString());

#line default
#line hidden
#nullable disable
            WriteLiteral(@"';
    $.getJSON('/Customer/Home/GetData', { magnitude: h, deveui: dev }, function (data) {
    
    Highcharts.stockChart('container', {
        chart: {
            type: 'spline',
            zoomType: 'x',
            panning: true,
            panKey: 'shift'
        },

        navigator: {
            adaptToUpdatedData: false,
            series: {
                data: data
            }
        },

        scrollbar: {
            liveRedraw: false
        },

        boost: {
            useGPUTranslations: true,
            usePreAllocated: true
        },

        title: {
            text: 'CIOT for displaying Climate data'
        },

        rangeSelector: {
            buttons: [{
                type: 'minute',
                count: 1,
                text: '1M'
            }, {
                type: 'hour',
                count: 1,
                text: '1h'
            }, {
                type: 'day',
                count: 1,
                t");
            WriteLiteral(@"ext: '1d'
            }, {
                type: 'month',
                count: 1,
                text: '1m'
            }, {
                type: 'year',
                count: 1,
                text: '1y'
            }, {
                type: 'all',
                text: 'All'
            }],
            inputEnabled: false, // it supports only days
            selected: 5 // all
        },

        xAxis: {
            events: {
                afterSetExtremes: afterSetExtremes
            },
            minRange: 15 * 1000//3600 * 1000 // one hour
        },

        yAxis: {
            floor: 0
        },

        series: [{
            boostThreshold: 1,
            data: data,
            dataGrouping: {
                enabled: true
            }
        }]
    });
});



</script>");
        }
        #pragma warning restore 1998
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IUrlHelper Url { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.IViewComponentHelper Component { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IJsonHelper Json { get; private set; }
        [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
        public global::Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<IEnumerable<Category>> Html { get; private set; }
    }
}
#pragma warning restore 1591
