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/20/2024',y:[40.25,40.30,40.25,40.28]},{ x:'03/21/2024',y:[40.32,40.32,40.29,40.29]},{ x:'03/22/2024',y:[40.39,40.39,40.28,40.28]},{ x:'03/25/2024',y:[40.27,40.46,40.27,40.32]},{ x:'03/26/2024',y:[40.30,40.33,40.30,40.33]},{ x:'03/27/2024',y:[40.43,40.46,40.43,40.46]},{ x:'03/28/2024',y:[40.32,40.34,40.27,40.28]},{ x:'03/29/2024',y:[40.29,40.35,40.29,40.35]},{ x:'04/01/2024',y:[40.40,40.40,40.35,40.35]},{ x:'04/02/2024',y:[40.50,40.50,40.44,40.45]},{ x:'04/03/2024',y:[40.54,40.54,40.45,40.45]},{ x:'04/08/2024',y:[40.50,40.50,40.45,40.45]},{ x:'04/09/2024',y:[40.45,40.49,40.45,40.47]},{ x:'04/10/2024',y:[40.47,40.52,40.47,40.52]},{ x:'04/11/2024',y:[40.64,40.74,40.63,40.71]},{ x:'04/12/2024',y:[40.74,40.88,40.74,40.88]},{ x:'04/15/2024',y:[40.88,40.88,40.87,40.88]},{ x:'04/16/2024',y:[41.02,41.13,41.02,41.03]},{ x:'04/17/2024',y:[41.18,41.21,41.10,41.10]},{ x:'04/18/2024',y:[41.02,41.02,40.95,40.95]},{ x:'04/19/2024',y:[41.21,41.21,41.12,41.12]},{ x:'04/22/2024',y:[41.33,41.33,41.25,41.28]},{ x:'04/23/2024',y:[41.52,41.52,41.41,41.41]},{ x:'04/24/2024',y:[41.33,41.33,41.30,41.30]},{ x:'04/25/2024',y:[41.32,41.50,41.32,41.44]},{ x:'04/26/2024',y:[41.56,41.59,41.54,41.59]},{ x:'04/29/2024',y:[41.60,41.62,41.60,41.60]},{ x:'04/30/2024',y:[41.53,41.53,41.46,41.47]},{ x:'05/02/2024',y:[41.36,41.36,41.35,41.35]},{ x:'05/03/2024',y:[41.13,41.18,41.10,41.18]},{ x:'05/06/2024',y:[41.15,41.21,41.13,41.13]},{ x:'05/07/2024',y:[41.20,41.20,41.17,41.17]},{ x:'05/08/2024',y:[41.09,41.17,41.09,41.11]},{ x:'05/09/2024',y:[41.31,41.31,41.26,41.26]},{ x:'05/10/2024',y:[41.38,41.46,41.35,41.35]},{ x:'05/13/2024',y:[41.30,41.37,41.28,41.28]},{ x:'05/14/2024',y:[41.17,41.18,41.17,41.18]},{ x:'05/15/2024',y:[41.02,41.02,40.97,41.00]},{ x:'05/16/2024',y:[40.86,40.92,40.86,40.88]},{ x:'05/17/2024',y:[40.66,40.76,40.66,40.76]},{ x:'05/20/2024',y:[40.68,40.78,40.68,40.78]},{ x:'05/21/2024',y:[40.76,40.76,40.69,40.69]},{ x:'05/22/2024',y:[40.65,40.68,40.61,40.68]},{ x:'05/23/2024',y:[40.69,40.74,40.69,40.74]},{ x:'05/24/2024',y:[40.67,40.67,40.60,40.62]},{ x:'06/11/2024',y:[40.94,41.04,40.94,40.95]},{ x:'06/12/2024',y:[40.90,41.00,40.90,40.97]},{ x:'06/13/2024',y:[40.94,40.94,40.86,40.86]},{ x:'06/14/2024',y:[40.98,41.01,40.93,41.01]},{ x:'06/17/2024',y:[40.98,40.98,40.94,40.94]},{ x:'06/18/2024',y:[41.07,41.07,41.05,41.05]},{ x:'06/19/2024',y:[41.11,41.13,41.05,41.05]},{ x:'06/20/2024',y:[41.02,41.02,40.93,40.93]},{ x:'06/21/2024',y:[41.00,41.07,41.00,41.02]},{ x:'06/24/2024',y:[41.05,41.05,41.02,41.02]},{ x:'06/25/2024',y:[41.21,41.21,41.19,41.19]},{ x:'06/26/2024',y:[41.11,41.16,41.11,41.16]},{ x:'06/27/2024',y:[41.38,41.38,41.30,41.30]},{ x:'06/28/2024',y:[41.28,41.34,41.28,41.34]},{ x:'07/01/2024',y:[41.28,41.28,41.28,41.28]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00794b 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());