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:'03/21/2024',y:[42.00,42.46,42.00,42.46]},{ x:'03/22/2024',y:[42.46,42.78,42.46,42.77]},{ x:'03/25/2024',y:[42.77,42.77,42.46,42.58]},{ x:'03/26/2024',y:[42.58,42.70,42.55,42.70]},{ x:'03/27/2024',y:[42.68,42.74,42.66,42.73]},{ x:'03/28/2024',y:[42.76,42.76,42.70,42.75]},{ x:'03/29/2024',y:[42.69,42.69,42.45,42.54]},{ x:'04/01/2024',y:[42.57,42.62,42.57,42.57]},{ x:'04/02/2024',y:[42.57,42.57,42.53,42.53]},{ x:'04/03/2024',y:[42.44,42.44,42.20,42.20]},{ x:'04/08/2024',y:[42.00,42.14,42.00,42.02]},{ x:'04/09/2024',y:[42.15,42.28,42.15,42.28]},{ x:'04/10/2024',y:[42.29,42.40,42.29,42.39]},{ x:'04/11/2024',y:[42.29,42.29,42.20,42.28]},{ x:'04/12/2024',y:[42.75,42.92,42.75,42.90]},{ x:'04/15/2024',y:[42.64,42.64,42.24,42.32]},{ x:'04/16/2024',y:[41.85,41.85,41.55,41.65]},{ x:'04/17/2024',y:[41.64,41.71,41.64,41.66]},{ x:'04/18/2024',y:[40.94,40.94,40.87,40.94]},{ x:'04/19/2024',y:[40.80,40.80,40.00,40.21]},{ x:'04/22/2024',y:[38.67,39.73,38.67,39.72]},{ x:'04/23/2024',y:[39.72,39.90,39.72,39.83]},{ x:'04/24/2024',y:[40.78,40.93,40.78,40.91]},{ x:'04/25/2024',y:[40.79,40.79,40.30,40.30]},{ x:'04/26/2024',y:[41.17,41.20,41.15,41.15]},{ x:'04/29/2024',y:[41.30,41.66,41.30,41.64]},{ x:'04/30/2024',y:[41.66,41.66,41.60,41.63]},{ x:'05/02/2024',y:[40.96,40.96,40.65,40.77]},{ x:'05/03/2024',y:[40.88,40.89,40.88,40.88]},{ x:'05/06/2024',y:[41.21,41.50,41.21,41.48]},{ x:'05/07/2024',y:[41.91,42.10,41.91,42.03]},{ x:'05/08/2024',y:[42.00,42.02,42.00,42.01]},{ x:'05/09/2024',y:[41.85,41.94,41.85,41.94]},{ x:'05/10/2024',y:[41.87,41.93,41.87,41.93]},{ x:'05/13/2024',y:[41.93,42.08,41.93,42.08]},{ x:'05/14/2024',y:[42.06,42.08,42.03,42.06]},{ x:'05/15/2024',y:[42.11,42.26,42.10,42.24]},{ x:'05/16/2024',y:[42.90,43.00,42.88,43.00]},{ x:'05/17/2024',y:[43.07,43.21,43.07,43.21]},{ x:'05/20/2024',y:[43.21,43.40,43.21,43.40]},{ x:'05/21/2024',y:[43.42,43.69,43.42,43.69]},{ x:'05/22/2024',y:[43.67,43.67,43.62,43.63]},{ x:'05/23/2024',y:[43.70,44.12,43.70,44.10]},{ x:'05/24/2024',y:[43.94,43.94,43.50,43.57]},{ x:'06/11/2024',y:[44.39,44.48,44.39,44.42]},{ x:'06/12/2024',y:[44.74,45.02,44.74,45.02]},{ x:'06/13/2024',y:[45.87,45.87,45.31,45.80]},{ x:'06/14/2024',y:[45.80,46.04,45.80,46.04]},{ x:'06/17/2024',y:[46.09,46.13,46.04,46.12]},{ x:'06/18/2024',y:[46.18,46.50,46.18,46.49]},{ x:'06/19/2024',y:[46.64,47.20,46.64,47.20]},{ x:'06/20/2024',y:[47.16,47.89,47.14,47.89]},{ x:'06/21/2024',y:[47.29,47.29,47.01,47.05]},{ x:'06/24/2024',y:[46.99,46.99,46.39,46.43]},{ x:'06/25/2024',y:[46.01,46.06,45.87,46.06]},{ x:'06/26/2024',y:[46.21,46.77,46.21,46.77]},{ x:'06/27/2024',y:[46.72,46.72,46.67,46.69]},{ x:'06/28/2024',y:[47.39,47.50,47.23,47.23]},{ x:'07/01/2024',y:[47.25,47.29,47.20,47.25]},{ x:'07/02/2024',y:[47.24,47.45,47.24,47.38]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00851 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());