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/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]},{ x:'07/18/2024',y:[23.24,23.37,23.12,23.37]},{ x:'07/19/2024',y:[23.30,23.31,23.16,23.22]},{ x:'07/22/2024',y:[23.00,23.00,22.42,22.68]},{ x:'07/23/2024',y:[22.78,23.00,22.78,22.99]},{ x:'07/26/2024',y:[22.76,23.09,22.67,23.08]},{ x:'07/29/2024',y:[23.50,23.62,23.08,23.08]},{ x:'07/30/2024',y:[22.85,22.93,22.50,22.93]},{ x:'07/31/2024',y:[22.85,22.85,22.52,22.75]},{ x:'08/01/2024',y:[22.91,22.95,22.86,22.95]},{ x:'08/02/2024',y:[22.47,22.51,22.17,22.17]},{ x:'08/05/2024',y:[21.08,21.08,20.15,20.22]},{ x:'08/06/2024',y:[20.83,21.00,19.83,20.63]},{ x:'08/07/2024',y:[20.73,21.66,20.73,21.62]},{ x:'08/08/2024',y:[21.41,21.58,21.29,21.39]},{ x:'08/09/2024',y:[21.67,22.00,21.67,21.72]} ] }], 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());