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/26/2024',y:[0.00,0.00,0.00,0.00]},{ x:'04/29/2024',y:[10.96,10.96,10.96,10.96]},{ x:'04/30/2024',y:[10.99,10.99,10.96,10.96]},{ x:'05/02/2024',y:[10.74,10.78,10.71,10.77]},{ x:'05/03/2024',y:[10.97,10.98,10.97,10.98]},{ x:'05/06/2024',y:[11.16,11.16,11.16,11.16]},{ x:'05/07/2024',y:[0.00,0.00,0.00,0.00]},{ x:'05/08/2024',y:[0.00,0.00,0.00,0.00]},{ x:'05/09/2024',y:[11.17,11.18,11.17,11.18]},{ x:'05/10/2024',y:[0.00,0.00,0.00,0.00]},{ x:'05/13/2024',y:[11.12,11.12,11.12,11.12]},{ x:'05/14/2024',y:[11.13,11.13,11.13,11.13]},{ x:'05/15/2024',y:[0.00,0.00,0.00,0.00]},{ x:'05/16/2024',y:[11.42,11.42,11.25,11.25]},{ x:'05/17/2024',y:[0.00,0.00,0.00,0.00]},{ x:'05/20/2024',y:[11.24,11.24,11.17,11.17]},{ x:'05/21/2024',y:[0.00,0.00,0.00,0.00]},{ x:'05/22/2024',y:[11.37,11.37,11.37,11.37]},{ x:'05/23/2024',y:[11.53,11.53,11.53,11.53]},{ x:'05/24/2024',y:[11.44,11.44,11.44,11.44]},{ x:'06/11/2024',y:[0.00,0.00,0.00,0.00]},{ x:'06/12/2024',y:[11.62,11.68,11.62,11.68]},{ x:'06/13/2024',y:[11.87,11.87,11.85,11.85]},{ x:'06/14/2024',y:[0.00,0.00,0.00,0.00]},{ x:'06/17/2024',y:[12.05,12.13,12.05,12.13]},{ x:'06/18/2024',y:[12.22,12.24,12.22,12.24]},{ x:'06/19/2024',y:[0.00,0.00,0.00,0.00]},{ x:'06/20/2024',y:[0.00,0.00,0.00,0.00]},{ x:'06/21/2024',y:[0.00,0.00,0.00,0.00]},{ x:'06/24/2024',y:[12.73,12.73,12.73,12.73]},{ x:'06/25/2024',y:[12.37,12.49,12.34,12.49]},{ x:'06/26/2024',y:[12.74,12.74,12.64,12.64]},{ x:'06/27/2024',y:[12.60,12.64,12.60,12.64]},{ x:'06/28/2024',y:[12.71,12.75,12.71,12.75]},{ x:'07/01/2024',y:[12.71,12.71,12.71,12.71]},{ x:'07/02/2024',y:[12.73,12.73,12.60,12.60]},{ x:'07/03/2024',y:[0.00,0.00,0.00,0.00]},{ x:'07/04/2024',y:[12.87,12.87,12.87,12.87]},{ x:'07/05/2024',y:[0.00,0.00,0.00,0.00]},{ x:'07/12/2024',y:[13.53,13.53,13.44,13.44]},{ x:'07/15/2024',y:[13.39,13.42,13.39,13.40]},{ x:'07/16/2024',y:[0.00,0.00,0.00,0.00]},{ x:'07/17/2024',y:[13.39,13.45,13.37,13.45]},{ x:'07/18/2024',y:[13.21,13.21,12.97,12.97]},{ x:'07/19/2024',y:[12.79,12.79,12.77,12.77]},{ x:'07/22/2024',y:[12.48,12.48,12.30,12.30]},{ x:'07/23/2024',y:[12.57,12.57,12.57,12.57]},{ x:'07/26/2024',y:[12.30,12.30,12.05,12.05]},{ x:'07/29/2024',y:[12.20,12.20,12.07,12.07]},{ x:'07/30/2024',y:[11.98,11.98,11.96,11.96]},{ x:'07/31/2024',y:[11.96,12.19,11.96,12.19]},{ x:'08/01/2024',y:[0.00,0.00,0.00,0.00]},{ x:'08/02/2024',y:[11.97,11.97,11.84,11.84]},{ x:'08/05/2024',y:[10.72,10.72,10.72,10.72]},{ x:'08/06/2024',y:[10.76,11.02,10.76,10.93]},{ x:'08/07/2024',y:[11.15,11.31,11.15,11.31]},{ x:'08/08/2024',y:[11.09,11.14,11.07,11.14]},{ x:'08/09/2024',y:[11.47,11.47,11.47,11.47]},{ x:'08/12/2024',y:[11.87,11.92,11.87,11.92]},{ x:'08/13/2024',y:[11.92,11.92,11.92,11.92]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "020000 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());