}
?>

                                                        ]
                                                    },
                                                    {
                                                        type: "spline",
                                                        showInLegend: true,
                                                        name: "Minimum",
                                                        color: "#FF9900 ",
                                                        dataPoints: [

                                                            <?php 
include_once "common/query.php";
$query = new query ();
$result = $query->getMaxMinTempSoil($pandlet, $_SESSION['username']);
for ($j = 1; $row = pg_fetch_row($result); $j++) {
    echo "{ y:{$row['3']}, label:{$j}},";
}
?>

                                                        ]
                                                    },


                                                ]
                                            });
                                            chart4.render();
                                        }
                                    </script>