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:'11/11/2022',y:[6.10,6.23,6.10,6.23]},{ x:'11/14/2022',y:[6.26,6.30,6.05,6.29]},{ x:'11/15/2022',y:[6.29,6.46,6.29,6.45]},{ x:'11/16/2022',y:[6.45,6.48,6.41,6.43]},{ x:'11/17/2022',y:[6.41,6.45,6.38,6.45]},{ x:'11/18/2022',y:[6.49,6.52,6.42,6.43]},{ x:'11/21/2022',y:[6.41,6.42,6.40,6.41]},{ x:'11/22/2022',y:[6.37,6.43,6.37,6.43]},{ x:'11/23/2022',y:[6.45,6.50,6.45,6.47]},{ x:'11/24/2022',y:[6.50,6.57,6.50,6.57]},{ x:'11/25/2022',y:[6.57,6.58,6.56,6.58]},{ x:'11/28/2022',y:[6.50,6.50,6.43,6.45]},{ x:'11/29/2022',y:[6.41,6.53,6.41,6.53]},{ x:'11/30/2022',y:[6.55,6.61,6.55,6.60]},{ x:'12/01/2022',y:[6.69,6.72,6.66,6.67]},{ x:'12/02/2022',y:[6.60,6.66,6.60,6.64]},{ x:'12/05/2022',y:[6.66,6.66,6.63,6.64]},{ x:'12/06/2022',y:[6.60,6.60,6.49,6.50]},{ x:'12/07/2022',y:[6.45,6.50,6.45,6.47]},{ x:'12/08/2022',y:[6.41,6.41,6.36,6.38]},{ x:'12/09/2022',y:[6.42,6.46,6.42,6.46]},{ x:'12/12/2022',y:[6.40,6.40,6.35,6.40]},{ x:'12/13/2022',y:[6.43,6.44,6.37,6.37]},{ x:'12/14/2022',y:[6.40,6.46,6.40,6.45]},{ x:'12/15/2022',y:[6.40,6.41,6.40,6.40]},{ x:'12/16/2022',y:[6.29,6.30,6.25,6.27]},{ x:'12/19/2022',y:[6.26,6.30,6.26,6.26]},{ x:'12/20/2022',y:[6.26,6.26,6.17,6.18]},{ x:'12/21/2022',y:[6.20,6.22,6.20,6.20]},{ x:'12/22/2022',y:[6.25,6.29,6.25,6.27]},{ x:'12/23/2022',y:[6.19,6.23,6.19,6.22]},{ x:'12/26/2022',y:[6.20,6.22,6.20,6.22]},{ x:'12/27/2022',y:[6.22,6.27,6.22,6.24]},{ x:'12/28/2022',y:[6.19,6.19,6.12,6.14]},{ x:'12/29/2022',y:[6.11,6.12,6.08,6.12]},{ x:'12/30/2022',y:[6.12,6.17,6.12,6.15]},{ x:'01/03/2023',y:[6.10,6.18,6.09,6.18]},{ x:'01/04/2023',y:[6.17,6.17,6.15,6.16]},{ x:'01/05/2023',y:[6.19,6.19,6.15,6.15]},{ x:'01/06/2023',y:[6.18,6.22,6.18,6.22]},{ x:'01/09/2023',y:[6.24,6.37,6.24,6.37]},{ x:'01/10/2023',y:[6.41,6.42,6.40,6.41]},{ x:'01/11/2023',y:[6.41,6.43,6.41,6.43]},{ x:'01/12/2023',y:[6.44,6.45,6.42,6.42]},{ x:'01/13/2023',y:[6.48,6.48,6.40,6.41]},{ x:'01/16/2023',y:[6.46,6.48,6.46,6.46]},{ x:'01/17/2023',y:[6.46,6.47,6.45,6.45]},{ x:'01/30/2023',y:[6.52,6.68,6.52,6.67]},{ x:'01/31/2023',y:[6.67,6.68,6.59,6.59]},{ x:'02/01/2023',y:[6.63,6.63,6.60,6.62]},{ x:'02/02/2023',y:[6.65,6.74,6.65,6.74]},{ x:'02/03/2023',y:[6.80,6.80,6.72,6.73]},{ x:'02/06/2023',y:[6.71,6.71,6.66,6.66]},{ x:'02/07/2023',y:[6.65,6.66,6.62,6.64]},{ x:'02/08/2023',y:[6.69,6.71,6.69,6.70]},{ x:'02/09/2023',y:[6.66,6.70,6.66,6.69]},{ x:'02/10/2023',y:[6.69,6.71,6.69,6.70]},{ x:'02/13/2023',y:[6.70,6.70,6.64,6.68]},{ x:'02/14/2023',y:[6.71,6.74,6.71,6.72]},{ x:'02/15/2023',y:[6.67,6.67,6.60,6.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "020020 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());