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:'01/03/2023',y:[11.14,11.17,11.13,11.17]},{ x:'01/04/2023',y:[11.41,11.57,11.41,11.54]},{ x:'01/05/2023',y:[11.64,11.66,11.58,11.59]},{ x:'01/06/2023',y:[11.67,11.77,11.67,11.70]},{ x:'01/09/2023',y:[12.02,12.05,11.99,12.03]},{ x:'01/10/2023',y:[12.16,12.25,12.15,12.20]},{ x:'01/11/2023',y:[11.92,12.04,11.88,11.99]},{ x:'01/12/2023',y:[12.10,12.33,12.10,12.27]},{ x:'01/13/2023',y:[12.46,12.51,12.43,12.48]},{ x:'01/16/2023',y:[12.41,12.44,12.32,12.34]},{ x:'01/17/2023',y:[12.34,12.34,12.21,12.26]},{ x:'01/30/2023',y:[12.41,12.48,12.37,12.47]},{ x:'01/31/2023',y:[12.36,12.37,12.30,12.31]},{ x:'02/01/2023',y:[12.41,12.44,12.37,12.42]},{ x:'02/02/2023',y:[12.70,12.75,12.66,12.68]},{ x:'02/03/2023',y:[12.80,13.00,12.80,12.96]},{ x:'02/06/2023',y:[12.39,12.45,12.33,12.43]},{ x:'02/07/2023',y:[12.28,12.31,12.23,12.29]},{ x:'02/08/2023',y:[12.16,12.16,12.10,12.14]},{ x:'02/09/2023',y:[12.15,12.15,12.09,12.10]},{ x:'02/10/2023',y:[11.93,11.96,11.90,11.96]},{ x:'02/13/2023',y:[11.66,11.70,11.63,11.70]},{ x:'02/14/2023',y:[11.85,11.90,11.84,11.90]},{ x:'02/15/2023',y:[11.84,11.87,11.82,11.87]},{ x:'02/16/2023',y:[11.54,11.62,11.52,11.61]},{ x:'02/17/2023',y:[11.20,11.21,11.11,11.16]},{ x:'02/20/2023',y:[11.28,11.30,11.28,11.29]},{ x:'02/21/2023',y:[11.29,11.29,11.21,11.25]},{ x:'02/22/2023',y:[11.05,11.05,11.00,11.00]},{ x:'02/23/2023',y:[11.11,11.13,11.09,11.11]},{ x:'02/24/2023',y:[11.29,11.33,11.26,11.32]},{ x:'03/01/2023',y:[11.04,11.09,11.04,11.08]},{ x:'03/02/2023',y:[10.94,10.95,10.89,10.91]},{ x:'03/03/2023',y:[10.79,10.86,10.78,10.86]},{ x:'03/06/2023',y:[11.20,11.28,11.19,11.24]},{ x:'03/07/2023',y:[11.13,11.20,11.12,11.19]},{ x:'03/08/2023',y:[11.18,11.20,11.10,11.14]},{ x:'03/09/2023',y:[11.23,11.24,11.15,11.16]},{ x:'03/10/2023',y:[11.43,11.63,11.41,11.61]},{ x:'03/13/2023',y:[11.80,11.88,11.71,11.74]},{ x:'03/14/2023',y:[12.14,12.18,12.06,12.15]},{ x:'03/15/2023',y:[11.82,11.87,11.71,11.80]},{ x:'03/16/2023',y:[12.22,12.34,12.20,12.27]},{ x:'03/17/2023',y:[11.99,12.13,11.95,12.10]},{ x:'03/20/2023',y:[12.13,12.41,12.11,12.37]},{ x:'03/21/2023',y:[12.22,12.27,12.20,12.26]},{ x:'03/22/2023',y:[11.98,11.99,11.91,11.93]},{ x:'03/23/2023',y:[12.12,12.16,12.05,12.12]},{ x:'03/24/2023',y:[12.08,12.15,12.06,12.15]},{ x:'03/27/2023',y:[12.22,12.34,12.22,12.27]},{ x:'03/28/2023',y:[11.80,11.86,11.77,11.83]},{ x:'03/29/2023',y:[11.74,11.78,11.68,11.77]},{ x:'03/30/2023',y:[11.75,11.75,11.69,11.71]},{ x:'03/31/2023',y:[11.78,11.80,11.75,11.80]},{ x:'04/06/2023',y:[12.39,12.55,12.35,12.52]},{ x:'04/07/2023',y:[12.57,12.58,12.51,12.52]},{ x:'04/10/2023',y:[12.38,12.44,12.35,12.43]},{ x:'04/11/2023',y:[12.26,12.32,12.26,12.31]},{ x:'04/12/2023',y:[12.27,12.28,12.25,12.26]},{ x:'04/13/2023',y:[12.26,12.28,12.22,12.25]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00680l 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());