Exemplo n.º 1
0
        public Highcharts GetEnergyChart()
        {
            var reader     = new DocumentDBDataReader();
            var energyData = reader.GetEnergyData().ToList();

            var processedData = ProcessEnergyData(energyData).ToList();

            var catagories = GetCatagories(processedData);
            var series     = GetSeriesData(processedData);

            return(new Highcharts("Energy").SetTitle(new Title()
            {
                Text = "Energy Per Minute"
            }).SetXAxis(new XAxis()
            {
                Categories = catagories
            }).SetSeries(series));
        }
Exemplo n.º 2
0
        public Highcharts GetTemperatureChart()
        {
            var reader   = new DocumentDBDataReader();
            var tempData = reader.GetTemperatureData().ToList();

            var processedData = ProcessTemperatureData(tempData).ToList();

            var catagories = GetCatagories(processedData);
            var series     = GetSeriesData(processedData);

            return(new Highcharts("Temperature").SetTitle(new Title()
            {
                Text = "Temperature Per Minute"
            }).SetXAxis(new XAxis()
            {
                Categories = catagories
            }).SetSeries(series));
        }
Exemplo n.º 3
0
        public Highcharts GetLightChart()
        {
            var reader    = new DocumentDBDataReader();
            var lightData = reader.GetLightData().ToList();

            var processedData = ProcessLightData(lightData).ToList();

            var catagories = GetCatagories(processedData);
            var series     = GetSeriesData(processedData);

            return(new Highcharts("light").SetTitle(new Title()
            {
                Text = "Lumens Per Minute"
            }).SetXAxis(new XAxis()
            {
                Categories = catagories
            }).SetSeries(series));
        }
Exemplo n.º 4
0
        public Highcharts GetEnergyChart()
        {
            var reader = new DocumentDBDataReader();
            var energyData = reader.GetEnergyData().ToList();

            var processedData = ProcessEnergyData(energyData).ToList();

            var catagories = GetCatagories(processedData);
            var series = GetSeriesData(processedData);

            return new Highcharts("Energy").SetTitle(new Title()
            {
                Text = "Energy Per Minute"
            }).SetXAxis(new XAxis()
            {
                Categories = catagories
            }).SetSeries(series);
        }
Exemplo n.º 5
0
        public Highcharts GetTemperatureChart()
        {
            var reader = new DocumentDBDataReader();
            var tempData = reader.GetTemperatureData().ToList();

            var processedData = ProcessTemperatureData(tempData).ToList();

            var catagories = GetCatagories(processedData);
            var series = GetSeriesData(processedData);

            return new Highcharts("Temperature").SetTitle(new Title()
            {
                Text = "Temperature Per Minute"
            }).SetXAxis(new XAxis()
            {
                Categories = catagories
            }).SetSeries(series);
        }
Exemplo n.º 6
0
        public Highcharts GetLightChart()
        {
            var reader = new DocumentDBDataReader();
            var lightData = reader.GetLightData().ToList();

            var processedData = ProcessLightData(lightData).ToList();

            var catagories = GetCatagories(processedData);
            var series = GetSeriesData(processedData);

            return new Highcharts("light").SetTitle(new Title()
            {
                Text = "Lumens Per Minute"
            }).SetXAxis(new XAxis()
            {
                Categories = catagories
            }).SetSeries(series);
        }