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/10/2024',y:[16.95,16.96,16.77,16.77]},{ x:'04/11/2024',y:[16.77,16.89,16.75,16.86]},{ x:'04/12/2024',y:[16.91,16.91,16.78,16.87]},{ x:'04/15/2024',y:[16.75,17.10,16.70,17.07]},{ x:'04/16/2024',y:[17.07,17.14,16.91,17.09]},{ x:'04/17/2024',y:[17.08,17.11,17.00,17.10]},{ x:'04/18/2024',y:[17.21,17.39,17.19,17.23]},{ x:'04/19/2024',y:[17.30,17.30,17.06,17.21]},{ x:'04/22/2024',y:[17.25,17.26,17.12,17.17]},{ x:'04/23/2024',y:[17.18,17.18,17.03,17.03]},{ x:'04/24/2024',y:[17.09,17.11,17.00,17.08]},{ x:'04/25/2024',y:[17.09,17.19,17.03,17.11]},{ x:'04/26/2024',y:[17.12,17.36,17.09,17.36]},{ x:'04/29/2024',y:[17.43,17.76,17.43,17.70]},{ x:'04/30/2024',y:[17.72,17.72,17.59,17.60]},{ x:'05/02/2024',y:[17.60,17.77,17.54,17.75]},{ x:'05/03/2024',y:[17.77,17.82,17.76,17.82]},{ x:'05/06/2024',y:[17.85,17.88,17.76,17.84]},{ x:'05/07/2024',y:[17.86,17.86,17.79,17.86]},{ x:'05/08/2024',y:[17.86,17.86,17.75,17.80]},{ x:'05/09/2024',y:[17.80,18.23,17.75,18.12]},{ x:'05/10/2024',y:[18.13,18.20,17.99,18.03]},{ x:'05/13/2024',y:[18.03,18.03,17.90,17.98]},{ x:'05/14/2024',y:[17.98,17.98,17.77,17.84]},{ x:'05/15/2024',y:[17.84,17.87,17.79,17.83]},{ x:'05/16/2024',y:[17.76,17.88,17.74,17.85]},{ x:'05/17/2024',y:[17.85,17.89,17.79,17.79]},{ x:'05/20/2024',y:[17.88,18.00,17.87,17.91]},{ x:'05/21/2024',y:[17.91,17.91,17.82,17.82]},{ x:'05/22/2024',y:[17.80,17.84,17.76,17.82]},{ x:'05/23/2024',y:[17.76,17.85,17.58,17.58]},{ x:'05/24/2024',y:[17.55,17.55,17.45,17.47]},{ x:'06/11/2024',y:[17.35,17.35,17.18,17.19]},{ x:'06/12/2024',y:[17.22,17.22,17.13,17.14]},{ x:'06/13/2024',y:[17.15,17.28,17.13,17.21]},{ x:'06/14/2024',y:[17.22,17.22,17.10,17.16]},{ x:'06/17/2024',y:[17.16,17.26,17.15,17.23]},{ x:'06/18/2024',y:[17.23,17.28,17.18,17.28]},{ x:'06/19/2024',y:[17.28,17.28,17.17,17.17]},{ x:'06/20/2024',y:[17.17,17.22,17.10,17.11]},{ x:'06/21/2024',y:[17.11,17.11,16.94,16.99]},{ x:'06/24/2024',y:[16.99,16.99,16.81,16.88]},{ x:'06/25/2024',y:[16.85,16.95,16.81,16.86]},{ x:'06/26/2024',y:[16.86,16.89,16.70,16.73]},{ x:'06/27/2024',y:[16.76,16.90,16.76,16.78]},{ x:'06/28/2024',y:[16.78,16.95,16.74,16.88]},{ x:'07/01/2024',y:[16.83,16.85,16.71,16.80]},{ x:'07/02/2024',y:[16.80,16.97,16.80,16.93]},{ x:'07/03/2024',y:[16.95,16.96,16.89,16.95]},{ x:'07/04/2024',y:[16.95,16.99,16.87,16.87]},{ x:'07/05/2024',y:[16.82,16.86,16.66,16.66]},{ x:'07/12/2024',y:[17.00,17.04,16.97,17.04]},{ x:'07/15/2024',y:[17.08,17.12,17.04,17.10]},{ x:'07/16/2024',y:[16.93,17.15,16.93,17.10]},{ x:'07/17/2024',y:[17.15,17.19,17.12,17.14]},{ x:'07/18/2024',y:[17.10,17.28,17.10,17.26]},{ x:'07/19/2024',y:[17.30,17.43,17.24,17.33]},{ x:'07/22/2024',y:[17.44,17.48,17.30,17.30]},{ x:'07/23/2024',y:[17.35,17.37,17.19,17.19]},{ x:'07/26/2024',y:[17.02,17.03,16.85,16.91]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0061 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());