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/30/2024',y:[11.87,11.88,11.77,11.79]},{ x:'05/02/2024',y:[11.77,11.90,11.74,11.90]},{ x:'05/03/2024',y:[11.94,11.99,11.90,11.93]},{ x:'05/06/2024',y:[11.99,12.01,11.93,11.95]},{ x:'05/07/2024',y:[11.97,11.99,11.93,11.97]},{ x:'05/08/2024',y:[11.98,11.98,11.78,11.78]},{ x:'05/09/2024',y:[11.77,11.97,11.77,11.95]},{ x:'05/10/2024',y:[12.02,12.02,11.85,11.93]},{ x:'05/13/2024',y:[11.88,11.93,11.77,11.91]},{ x:'05/14/2024',y:[11.87,11.93,11.85,11.87]},{ x:'05/15/2024',y:[11.86,11.87,11.76,11.77]},{ x:'05/16/2024',y:[11.77,11.83,11.71,11.80]},{ x:'05/17/2024',y:[11.77,11.81,11.70,11.70]},{ x:'05/20/2024',y:[11.81,11.97,11.81,11.88]},{ x:'05/21/2024',y:[11.88,11.91,11.86,11.90]},{ x:'05/22/2024',y:[11.85,11.88,11.81,11.88]},{ x:'05/23/2024',y:[11.85,11.85,11.68,11.68]},{ x:'05/24/2024',y:[11.57,11.69,11.54,11.55]},{ x:'06/11/2024',y:[11.45,11.50,11.42,11.49]},{ x:'06/12/2024',y:[11.54,11.58,11.50,11.55]},{ x:'06/13/2024',y:[11.60,11.63,11.55,11.57]},{ x:'06/14/2024',y:[11.54,11.59,11.50,11.58]},{ x:'06/17/2024',y:[11.58,11.74,11.56,11.71]},{ x:'06/18/2024',y:[11.72,11.76,11.71,11.72]},{ x:'06/19/2024',y:[11.75,11.75,11.56,11.59]},{ x:'06/20/2024',y:[11.58,11.63,11.46,11.47]},{ x:'06/21/2024',y:[11.40,11.46,11.34,11.40]},{ x:'06/24/2024',y:[11.38,11.38,11.26,11.28]},{ x:'06/25/2024',y:[11.26,11.28,11.14,11.20]},{ x:'06/26/2024',y:[11.14,11.24,11.12,11.22]},{ x:'06/27/2024',y:[11.34,11.42,11.25,11.28]},{ x:'06/28/2024',y:[11.24,11.39,11.24,11.35]},{ x:'07/01/2024',y:[11.30,11.31,11.18,11.28]},{ x:'07/02/2024',y:[11.32,11.40,11.28,11.31]},{ x:'07/03/2024',y:[11.31,11.33,11.23,11.30]},{ x:'07/04/2024',y:[11.29,11.30,11.16,11.16]},{ x:'07/05/2024',y:[11.14,11.14,10.93,11.02]},{ x:'07/12/2024',y:[11.41,11.45,11.38,11.42]},{ x:'07/15/2024',y:[11.48,11.49,11.41,11.45]},{ x:'07/16/2024',y:[11.39,11.52,11.39,11.51]},{ x:'07/17/2024',y:[11.55,11.56,11.46,11.46]},{ x:'07/18/2024',y:[11.48,11.48,11.30,11.47]},{ x:'07/19/2024',y:[11.45,11.59,11.44,11.54]},{ x:'07/22/2024',y:[11.58,11.62,11.48,11.54]},{ x:'07/23/2024',y:[11.55,11.58,11.35,11.35]},{ x:'07/26/2024',y:[11.20,11.23,11.10,11.23]},{ x:'07/29/2024',y:[11.24,11.24,11.14,11.19]},{ x:'07/30/2024',y:[11.18,11.18,11.03,11.06]},{ x:'07/31/2024',y:[11.11,11.44,11.11,11.44]},{ x:'08/01/2024',y:[11.48,11.51,11.31,11.38]},{ x:'08/02/2024',y:[11.29,11.31,11.20,11.26]},{ x:'08/05/2024',y:[11.21,11.36,11.12,11.17]},{ x:'08/06/2024',y:[11.11,11.19,11.05,11.08]},{ x:'08/07/2024',y:[11.08,11.15,11.05,11.15]},{ x:'08/08/2024',y:[11.09,11.17,11.00,11.12]},{ x:'08/09/2024',y:[11.08,11.14,11.01,11.05]},{ x:'08/12/2024',y:[11.02,11.02,10.94,10.97]},{ x:'08/13/2024',y:[10.96,11.00,10.88,10.93]},{ x:'08/14/2024',y:[11.00,11.01,10.87,10.88]},{ x:'08/15/2024',y:[10.85,10.97,10.81,10.91]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00643 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());