private byte[] GenerateChart(ChartDescription descrip, int daysNumber, ServiceDatabaseModels.TypeOfMeteorologyData typeOfChart)
        {
            var db   = new ServiceDatabaseModels();
            var data = db.GetAllDatas(daysNumber, typeOfChart);

            var resultChart = new Chart(width: 800, height: 800)
                              .AddSeries
                              (
                chartType: descrip.CharType,
                xValue: data.dateTime, xField: descrip.XAxisTitle,
                yValues: data.outdata, yFields: descrip.YAxisTitle
                              )
                              .GetBytes("png");

            return(resultChart);
        }
        /// <summary>
        /// Calculate weather indicators and return weather forecast and opinion about weather.
        /// </summary>
        /// <returns>String</returns>
        public string[] Prediction()
        {
            string[] result = new string[4] {
                string.Empty, string.Empty, string.Empty, string.Empty
            };
            string opinion = string.Empty;

            ServiceDatabaseModels serviceDB = new ServiceDatabaseModels();
            DataModels            data      = new DataModels();

            data = serviceDB.GetData(3);

            opinion = OpinionPrediction(data);

            result[0] = PressurePrediction(data);
            result[1] = HumidityPrediction(data);
            result[2] = TemperaturePrediction(data);
            result[3] = opinion;

            return(result);
        }