function getChartColorsArray(e) { if (null !== document.getElementById(e)) { e = document.getElementById(e).getAttribute("data-colors"); if (e) return (e = JSON.parse(e)).map(function(e) { var t = e.replace(" ", ""); return -1 === t.indexOf(",") ? getComputedStyle(document.documentElement).getPropertyValue(t) || t : 2 == (e = e.split(",")).length ? "rgba(" + getComputedStyle(document.documentElement).getPropertyValue(e[0]) + "," + e[1] + ")" : t }) } } var chartCandlestickBasicColors = getChartColorsArray("basic_candlestick"), chartCandlestickComboColors = (chartCandlestickBasicColors && (options = { series: [{ data: [ { x:'01/23/2024',y:[43.18,43.20,43.17,43.17]},{ x:'01/24/2024',y:[43.31,43.31,43.24,43.25]},{ x:'01/25/2024',y:[43.18,43.18,43.18,43.18]},{ x:'01/26/2024',y:[43.15,43.17,43.15,43.16]},{ x:'01/29/2024',y:[43.16,43.23,43.16,43.18]},{ x:'01/30/2024',y:[43.03,43.05,43.00,43.03]},{ x:'01/31/2024',y:[43.16,43.23,43.16,43.21]},{ x:'02/01/2024',y:[43.31,43.35,43.31,43.35]},{ x:'02/02/2024',y:[43.24,43.24,43.07,43.07]},{ x:'02/05/2024',y:[43.35,43.35,43.33,43.33]},{ x:'02/15/2024',y:[43.32,43.45,43.32,43.45]},{ x:'02/16/2024',y:[43.35,43.40,43.35,43.40]},{ x:'02/19/2024',y:[43.37,43.41,43.37,43.41]},{ x:'02/20/2024',y:[43.41,43.54,43.41,43.52]},{ x:'02/21/2024',y:[43.52,43.59,43.52,43.55]},{ x:'02/22/2024',y:[43.56,43.65,43.56,43.65]},{ x:'02/23/2024',y:[43.63,43.71,43.63,43.67]},{ x:'02/26/2024',y:[43.66,43.73,43.66,43.71]},{ x:'02/27/2024',y:[43.71,43.79,43.71,43.74]},{ x:'02/29/2024',y:[43.82,43.90,43.82,43.86]},{ x:'03/01/2024',y:[43.83,43.85,43.78,43.78]},{ x:'03/04/2024',y:[43.78,43.78,43.69,43.72]},{ x:'03/05/2024',y:[43.72,43.76,43.69,43.75]},{ x:'03/06/2024',y:[43.79,43.84,43.79,43.79]},{ x:'03/07/2024',y:[43.63,43.75,43.60,43.72]},{ x:'03/08/2024',y:[43.70,43.70,43.51,43.60]},{ x:'03/11/2024',y:[43.55,43.61,43.55,43.61]},{ x:'03/12/2024',y:[43.64,43.69,43.62,43.62]},{ x:'03/13/2024',y:[43.56,43.64,43.56,43.64]},{ x:'03/14/2024',y:[43.71,43.73,43.71,43.73]},{ x:'03/15/2024',y:[43.87,43.90,43.85,43.89]},{ x:'03/18/2024',y:[43.89,43.93,43.86,43.90]},{ x:'03/19/2024',y:[44.05,44.10,44.05,44.10]},{ x:'03/20/2024',y:[44.26,44.26,44.20,44.23]},{ x:'03/21/2024',y:[44.11,44.19,44.11,44.17]},{ x:'03/22/2024',y:[44.31,44.48,44.31,44.43]},{ x:'03/25/2024',y:[44.42,44.42,44.13,44.22]},{ x:'03/26/2024',y:[44.20,44.37,44.20,44.37]},{ x:'03/27/2024',y:[44.41,44.50,44.41,44.48]},{ x:'03/28/2024',y:[44.48,44.48,44.43,44.43]},{ x:'03/29/2024',y:[44.42,44.52,44.42,44.51]},{ x:'04/01/2024',y:[44.49,44.49,44.46,44.46]},{ x:'04/02/2024',y:[44.57,44.68,44.57,44.63]},{ x:'04/03/2024',y:[44.63,44.63,44.55,44.57]},{ x:'04/08/2024',y:[44.72,44.72,44.67,44.67]},{ x:'04/09/2024',y:[44.67,44.73,44.67,44.69]},{ x:'04/10/2024',y:[44.58,44.58,44.46,44.54]},{ x:'04/11/2024',y:[44.67,44.85,44.67,44.84]},{ x:'04/12/2024',y:[44.92,44.99,44.91,44.92]},{ x:'04/15/2024',y:[45.00,45.13,45.00,45.06]},{ x:'04/16/2024',y:[45.18,45.34,45.18,45.32]},{ x:'04/17/2024',y:[45.27,45.33,45.26,45.28]},{ x:'04/18/2024',y:[45.19,45.27,45.04,45.06]},{ x:'04/19/2024',y:[45.16,45.50,45.16,45.41]},{ x:'04/22/2024',y:[45.40,45.44,45.31,45.43]},{ x:'04/23/2024',y:[45.53,45.53,45.47,45.48]},{ x:'04/24/2024',y:[45.31,45.34,45.25,45.32]},{ x:'04/25/2024',y:[45.45,45.49,45.42,45.42]},{ x:'04/26/2024',y:[45.42,45.88,45.41,45.42]},{ x:'04/29/2024',y:[45.44,45.44,45.42,45.42]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00865b Daily 股市資訊", align: "left", style: { fontWeight: 500 } }, xaxis: { labels: { format: 'dd/MM', } }, yaxis: { tooltip: { enabled: !0 } } }, (chart = new ApexCharts(document.querySelector("#basic_candlestick"), options)).render()), (chart = new ApexCharts(document.querySelector("#1"), options)).render());