|
@@ -313,7 +313,7 @@ public static string Md5(string str)
|
|
|
{
|
|
|
LineChartSeriesData lc = new LineChartSeriesData();
|
|
|
lc.name = data.serverList[i].name;
|
|
|
- lc.values = new List<float>();
|
|
|
+ lc.values = new List<double>();
|
|
|
for (int z = 0; z < datamsg["data"][typestr].Count; z++)
|
|
|
{
|
|
|
if(data.serverList[i].name == datamsg["data"][typestr][z]["server_room_name"].ToString())
|
|
@@ -354,7 +354,7 @@ public static string Md5(string str)
|
|
|
{
|
|
|
LineChartSeriesData lc = new LineChartSeriesData();
|
|
|
lc.name = "数据_"+ i;
|
|
|
- lc.values = new List<float>();
|
|
|
+ lc.values = new List<double>();
|
|
|
for (int j = 0; j < 20; j++)
|
|
|
{
|
|
|
lc.values.Add(UnityEngine.Random.Range(1, 1000));
|
|
@@ -542,7 +542,7 @@ public static string Md5(string str)
|
|
|
|
|
|
LineChartSeriesData lc = new LineChartSeriesData();
|
|
|
lc.name = "温度";
|
|
|
- lc.values = new List<float>();
|
|
|
+ lc.values = new List<double>();
|
|
|
for (int i = 0; i < datamsg["data"]["last_24h_temp"].Count; i++)
|
|
|
{
|
|
|
data.xdata.Add(datamsg["data"]["last_24h_temp"][i]["date"].ToString().Split(' ')[1]);
|
|
@@ -554,7 +554,7 @@ public static string Md5(string str)
|
|
|
|
|
|
LineChartSeriesData lc2 = new LineChartSeriesData();
|
|
|
lc2.name = "湿度";
|
|
|
- lc2.values = new List<float>();
|
|
|
+ lc2.values = new List<double>();
|
|
|
for (int i = 0; i < datamsg["data"]["last_24h_humi"].Count; i++)
|
|
|
{
|
|
|
lc2.values.Add(float.Parse(datamsg["data"]["last_24h_humi"][i]["value"].ToString()));
|
|
@@ -570,7 +570,7 @@ public static string Md5(string str)
|
|
|
|
|
|
lc = new LineChartSeriesData();
|
|
|
lc.name = "温度";
|
|
|
- lc.values = new List<float>();
|
|
|
+ lc.values = new List<double>();
|
|
|
for (int i = 0; i < datamsg["data"]["last_day_temp"].Count; i++)
|
|
|
{
|
|
|
data.xdata.Add(datamsg["data"]["last_day_temp"][i]["date"].ToString().Split(' ')[1]);
|
|
@@ -582,7 +582,7 @@ public static string Md5(string str)
|
|
|
|
|
|
lc2 = new LineChartSeriesData();
|
|
|
lc2.name = "湿度";
|
|
|
- lc2.values = new List<float>();
|
|
|
+ lc2.values = new List<double>();
|
|
|
for (int i = 0; i < datamsg["data"]["last_day_humi"].Count; i++)
|
|
|
{
|
|
|
lc2.values.Add(float.Parse(datamsg["data"]["last_day_humi"][i]["value"].ToString()));
|
|
@@ -597,7 +597,7 @@ public static string Md5(string str)
|
|
|
|
|
|
lc = new LineChartSeriesData();
|
|
|
lc.name = "温度";
|
|
|
- lc.values = new List<float>();
|
|
|
+ lc.values = new List<double>();
|
|
|
for (int i = 0; i < datamsg["data"]["last_week_temp"].Count; i++)
|
|
|
{
|
|
|
data.xdata.Add(datamsg["data"]["last_week_temp"][i]["date"].ToString().Split(' ')[0]);
|
|
@@ -609,7 +609,7 @@ public static string Md5(string str)
|
|
|
|
|
|
lc2 = new LineChartSeriesData();
|
|
|
lc2.name = "湿度";
|
|
|
- lc2.values = new List<float>();
|
|
|
+ lc2.values = new List<double>();
|
|
|
for (int i = 0; i < datamsg["data"]["last_week_humi"].Count; i++)
|
|
|
{
|
|
|
lc2.values.Add(float.Parse(datamsg["data"]["last_week_humi"][i]["value"].ToString()));
|
|
@@ -625,7 +625,7 @@ public static string Md5(string str)
|
|
|
|
|
|
lc = new LineChartSeriesData();
|
|
|
lc.name = "温度";
|
|
|
- lc.values = new List<float>();
|
|
|
+ lc.values = new List<double>();
|
|
|
for (int i = 0; i < datamsg["data"]["last_month_temp"].Count; i++)
|
|
|
{
|
|
|
data.xdata.Add(datamsg["data"]["last_month_temp"][i]["date"].ToString().Split(' ')[0]);
|
|
@@ -637,7 +637,7 @@ public static string Md5(string str)
|
|
|
|
|
|
lc2 = new LineChartSeriesData();
|
|
|
lc2.name = "湿度";
|
|
|
- lc2.values = new List<float>();
|
|
|
+ lc2.values = new List<double>();
|
|
|
for (int i = 0; i < datamsg["data"]["last_month_humi"].Count; i++)
|
|
|
{
|
|
|
lc2.values.Add(float.Parse(datamsg["data"]["last_month_humi"][i]["value"].ToString()));
|
|
@@ -996,7 +996,7 @@ public static string Md5(string str)
|
|
|
|
|
|
LineChartSeriesData lc = new LineChartSeriesData();
|
|
|
lc.name = "今日";
|
|
|
- lc.values = new List<float>();
|
|
|
+ lc.values = new List<double>();
|
|
|
for (int i = 0; i < datamsg["data"][ "today_info"].Count; i++)
|
|
|
{
|
|
|
data.xdata.Add(datamsg["data"]["today_info"][i]["time"].ToString().Split(' ')[1]);
|
|
@@ -1007,7 +1007,7 @@ public static string Md5(string str)
|
|
|
|
|
|
LineChartSeriesData lc2 = new LineChartSeriesData();
|
|
|
lc2.name = "昨日";
|
|
|
- lc2.values = new List<float>();
|
|
|
+ lc2.values = new List<double>();
|
|
|
for (int i = 0; i < datamsg["data"]["yesterday_info"].Count; i++)
|
|
|
{
|
|
|
lc2.values.Add(float.Parse( datamsg["data"]["yesterday_info"][i]["value"].ToString()));
|
|
@@ -1029,7 +1029,7 @@ public static string Md5(string str)
|
|
|
|
|
|
LineChartSeriesData lc = new LineChartSeriesData();
|
|
|
lc.name = "数据1";
|
|
|
- lc.values = new List<float>();
|
|
|
+ lc.values = new List<double>();
|
|
|
for (int i = 0; i < 10; i++)
|
|
|
{
|
|
|
lc.values.Add(UnityEngine.Random.Range(1, 800));
|
|
@@ -1039,7 +1039,7 @@ public static string Md5(string str)
|
|
|
|
|
|
LineChartSeriesData lc2 = new LineChartSeriesData();
|
|
|
lc2.name = "数据2";
|
|
|
- lc2.values = new List<float>();
|
|
|
+ lc2.values = new List<double>();
|
|
|
for (int i = 0; i < 10; i++)
|
|
|
{
|
|
|
lc2.values.Add(UnityEngine.Random.Range(1, 800));
|
|
@@ -1062,7 +1062,7 @@ public static string Md5(string str)
|
|
|
{
|
|
|
LineChartSeriesData lc = new LineChartSeriesData();
|
|
|
lc.name = datamsg["data"]["prop_ame"][i].ToString();
|
|
|
- lc.values = new List<float>();
|
|
|
+ lc.values = new List<double>();
|
|
|
|
|
|
data.sdata.Add(lc);
|
|
|
|
|
@@ -1101,7 +1101,7 @@ public static string Md5(string str)
|
|
|
|
|
|
LineChartSeriesData lc = new LineChartSeriesData();
|
|
|
lc.name = "数据1";
|
|
|
- lc.values = new List<float>();
|
|
|
+ lc.values = new List<double>();
|
|
|
for (int i = 0; i < 20; i++)
|
|
|
{
|
|
|
lc.values.Add(UnityEngine.Random.Range(1, 1000));
|
|
@@ -1111,7 +1111,7 @@ public static string Md5(string str)
|
|
|
|
|
|
LineChartSeriesData lc2 = new LineChartSeriesData();
|
|
|
lc2.name = "数据2";
|
|
|
- lc2.values = new List<float>();
|
|
|
+ lc2.values = new List<double>();
|
|
|
for (int i = 0; i < 20; i++)
|
|
|
{
|
|
|
lc2.values.Add(UnityEngine.Random.Range(1, 1000));
|
|
@@ -1120,7 +1120,7 @@ public static string Md5(string str)
|
|
|
|
|
|
LineChartSeriesData lc3 = new LineChartSeriesData();
|
|
|
lc3.name = "数据3";
|
|
|
- lc3.values = new List<float>();
|
|
|
+ lc3.values = new List<double>();
|
|
|
for (int i = 0; i < 20; i++)
|
|
|
{
|
|
|
lc3.values.Add(UnityEngine.Random.Range(1, 1000));
|