From 4395ae6d8b9c8dc2c1e030ab6d0ee85d5c2d338e Mon Sep 17 00:00:00 2001
From: MuslemRahimi
$${forecastHigh[forecastHigh.length - 1][1]}`,
+ useHTML: true,
+ style: {
+ backgroundColor: "rgba(0, 0, 0, 0.8)",
+ borderColor: "rgba(255, 255, 255, 0.2)",
+ borderWidth: 1,
+ fontSize: "12px",
+ fontWeight: "bold",
+ },
+ align: "left",
+ verticalAlign: "middles",
+ x: -10,
+ y: 0,
+ backgroundColor: "rgba(0, 0, 0, 0.8)",
+ borderColor: "rgba(255, 255, 255, 0.2)",
+ borderWidth: 1,
+ padding: 8,
+ shape: "",
+ },
+ {
+ point: {
+ x: forecastAvg[forecastAvg.length - 1][0], // Last X (timestamp)
+ y: forecastAvg[forecastAvg.length - 1][1], // Last Y (Average value)
+ xAxis: 0,
+ yAxis: 0,
+ },
+ text: `Average
$${forecastAvg[forecastAvg.length - 1][1]}`,
+ useHTML: true,
+ style: {
+ backgroundColor: "rgba(0, 0, 0, 0.8)",
+ borderColor: "rgba(255, 255, 255, 0.2)",
+ borderWidth: 1,
+ fontSize: "12px",
+ fontWeight: "bold",
+ },
+ align: "right",
+ verticalAlign: "middle",
+ x: -10,
+ y: 30,
+ backgroundColor: "rgba(0, 0, 0, 0.8)",
+ borderColor: "rgba(255, 255, 255, 0.2)",
+ borderWidth: 1,
+ padding: 5,
+ shape: "",
+ },
+ {
+ point: {
+ x: forecastLow[forecastLow.length - 1][0], // Last X (timestamp)
+ y: forecastLow[forecastLow.length - 1][1], // Last Y (Average value)
+ xAxis: 0,
+ yAxis: 0,
+ },
+ text: `Low
$${forecastLow[forecastLow.length - 1][1]}`,
+ useHTML: true,
+ style: {
+ backgroundColor: "rgba(0, 0, 0, 0.8)",
+ borderColor: "rgba(255, 255, 255, 0.2)",
+ borderWidth: 1,
+ fontSize: "12px",
+ fontWeight: "bold",
+ },
+ align: "top",
+ verticalAlign: "middle",
+ x: -10,
+ y: -40,
+ backgroundColor: "rgba(0, 0, 0, 0.8)",
+ borderColor: "rgba(255, 255, 255, 0.2)",
+ borderWidth: 1,
+ padding: 5,
+ shape: "",
+ },
+ ],
+ },
+ ],
+ */
+
legend: {
enabled: false,
},
@@ -631,17 +721,16 @@
from the current stock price of {price}.