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:'04/01/2024',y:[22.87,22.93,22.74,22.84]},{ x:'04/02/2024',y:[22.88,23.04,22.88,22.97]},{ x:'04/03/2024',y:[22.96,23.04,22.90,22.90]},{ x:'04/08/2024',y:[22.88,22.92,22.75,22.84]},{ x:'04/09/2024',y:[22.96,23.01,22.88,23.01]},{ x:'04/10/2024',y:[23.04,23.22,22.99,23.20]},{ x:'04/11/2024',y:[23.01,23.01,22.94,22.96]},{ x:'04/12/2024',y:[23.02,23.13,23.00,23.10]},{ x:'04/15/2024',y:[22.97,22.97,22.80,22.85]},{ x:'04/16/2024',y:[22.60,22.60,22.26,22.32]},{ x:'04/17/2024',y:[22.45,22.61,22.45,22.59]},{ x:'04/18/2024',y:[22.49,22.60,22.44,22.55]},{ x:'04/19/2024',y:[22.37,22.39,21.81,21.99]},{ x:'04/22/2024',y:[21.98,22.05,21.63,21.77]},{ x:'04/23/2024',y:[22.05,22.06,21.87,21.88]},{ x:'04/24/2024',y:[22.19,22.43,22.19,22.43]},{ x:'04/25/2024',y:[22.30,22.30,22.11,22.11]},{ x:'04/26/2024',y:[22.25,22.42,22.23,22.25]},{ x:'04/29/2024',y:[22.51,22.54,22.41,22.45]},{ x:'04/30/2024',y:[22.42,22.42,22.24,22.24]},{ x:'05/02/2024',y:[22.10,22.18,22.04,22.14]},{ x:'05/03/2024',y:[22.40,22.40,22.08,22.09]},{ x:'05/06/2024',y:[22.25,22.35,22.20,22.22]},{ x:'05/07/2024',y:[22.28,22.38,22.07,22.16]},{ x:'05/08/2024',y:[22.11,22.13,21.94,22.08]},{ x:'05/09/2024',y:[22.05,22.06,21.92,21.92]},{ x:'05/10/2024',y:[21.95,22.00,21.83,21.91]},{ x:'05/13/2024',y:[21.91,21.91,21.67,21.69]},{ x:'05/14/2024',y:[21.69,21.80,21.69,21.73]},{ x:'05/15/2024',y:[21.92,21.93,21.78,21.79]},{ x:'05/16/2024',y:[21.93,22.00,21.87,21.88]},{ x:'05/17/2024',y:[21.88,21.89,21.82,21.83]},{ x:'05/20/2024',y:[21.82,21.99,21.80,21.90]},{ x:'05/21/2024',y:[21.91,21.96,21.83,21.84]},{ x:'05/22/2024',y:[21.90,21.99,21.90,21.97]},{ x:'05/23/2024',y:[22.00,22.04,21.90,21.92]},{ x:'05/24/2024',y:[21.80,21.96,21.77,21.94]},{ x:'06/11/2024',y:[22.35,22.38,22.25,22.36]},{ x:'06/12/2024',y:[22.37,22.54,22.37,22.47]},{ x:'06/13/2024',y:[22.70,22.89,22.70,22.76]},{ x:'06/14/2024',y:[22.76,22.90,22.70,22.83]},{ x:'06/17/2024',y:[22.83,23.02,22.81,22.97]},{ x:'06/18/2024',y:[22.97,23.00,22.91,22.91]},{ x:'06/19/2024',y:[23.01,23.26,23.01,23.22]},{ x:'06/20/2024',y:[23.22,23.29,23.20,23.29]},{ x:'06/21/2024',y:[23.21,23.27,23.13,23.27]},{ x:'06/24/2024',y:[23.26,23.26,23.00,23.05]},{ x:'06/25/2024',y:[23.05,23.05,22.82,23.02]},{ x:'06/26/2024',y:[23.24,23.41,23.21,23.36]},{ x:'06/27/2024',y:[23.30,23.40,23.25,23.26]},{ x:'06/28/2024',y:[23.31,23.54,23.31,23.50]},{ x:'07/01/2024',y:[23.52,23.74,23.52,23.64]},{ x:'07/02/2024',y:[23.67,23.85,23.62,23.69]},{ x:'07/03/2024',y:[23.90,23.90,23.49,23.52]},{ x:'07/04/2024',y:[23.59,23.59,23.50,23.57]},{ x:'07/05/2024',y:[23.61,23.70,23.51,23.52]},{ x:'07/12/2024',y:[23.94,23.94,23.75,23.78]},{ x:'07/15/2024',y:[23.85,23.85,23.65,23.76]},{ x:'07/16/2024',y:[23.76,23.97,23.75,23.76]},{ x:'07/17/2024',y:[23.81,23.92,23.60,23.62]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00730 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());