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:[3.40,3.41,3.33,3.37]},{ x:'11/14/2022',y:[3.39,3.42,3.37,3.40]},{ x:'11/15/2022',y:[3.41,3.46,3.41,3.46]},{ x:'11/16/2022',y:[3.47,3.54,3.45,3.53]},{ x:'11/17/2022',y:[3.56,3.60,3.55,3.57]},{ x:'11/18/2022',y:[3.58,3.63,3.53,3.54]},{ x:'11/21/2022',y:[3.54,3.56,3.51,3.52]},{ x:'11/22/2022',y:[3.50,3.51,3.46,3.48]},{ x:'11/23/2022',y:[3.50,3.50,3.45,3.45]},{ x:'11/24/2022',y:[3.46,3.58,3.46,3.58]},{ x:'11/25/2022',y:[3.57,3.57,3.51,3.51]},{ x:'11/28/2022',y:[3.49,3.51,3.47,3.49]},{ x:'11/29/2022',y:[3.46,3.46,3.43,3.45]},{ x:'11/30/2022',y:[3.45,3.49,3.45,3.48]},{ x:'12/01/2022',y:[3.58,3.61,3.57,3.58]},{ x:'12/02/2022',y:[3.60,3.64,3.60,3.62]},{ x:'12/05/2022',y:[3.61,3.68,3.61,3.62]},{ x:'12/06/2022',y:[3.62,3.62,3.50,3.50]},{ x:'12/07/2022',y:[3.48,3.48,3.43,3.43]},{ x:'12/08/2022',y:[3.43,3.43,3.39,3.39]},{ x:'12/09/2022',y:[3.42,3.46,3.42,3.45]},{ x:'12/12/2022',y:[3.42,3.45,3.41,3.42]},{ x:'12/13/2022',y:[3.45,3.45,3.42,3.42]},{ x:'12/14/2022',y:[3.40,3.53,3.40,3.53]},{ x:'12/15/2022',y:[3.52,3.54,3.48,3.50]},{ x:'12/16/2022',y:[3.50,3.50,3.40,3.43]},{ x:'12/19/2022',y:[3.44,3.44,3.40,3.40]},{ x:'12/20/2022',y:[3.40,3.40,3.28,3.28]},{ x:'12/21/2022',y:[3.38,3.38,3.26,3.28]},{ x:'12/22/2022',y:[3.30,3.32,3.29,3.29]},{ x:'12/23/2022',y:[3.22,3.28,3.22,3.28]},{ x:'12/26/2022',y:[3.29,3.29,3.24,3.26]},{ x:'12/27/2022',y:[3.28,3.35,3.28,3.30]},{ x:'12/28/2022',y:[3.29,3.29,3.20,3.21]},{ x:'12/29/2022',y:[3.19,3.23,3.18,3.23]},{ x:'12/30/2022',y:[3.25,3.25,3.23,3.23]},{ x:'01/03/2023',y:[3.23,3.34,3.23,3.34]},{ x:'01/04/2023',y:[3.33,3.38,3.33,3.36]},{ x:'01/05/2023',y:[3.40,3.40,3.38,3.39]},{ x:'01/06/2023',y:[3.42,3.51,3.42,3.51]},{ x:'01/09/2023',y:[3.59,3.61,3.58,3.61]},{ x:'01/10/2023',y:[3.61,3.66,3.60,3.64]},{ x:'01/11/2023',y:[3.64,3.65,3.63,3.65]},{ x:'01/12/2023',y:[3.67,3.67,3.61,3.61]},{ x:'01/13/2023',y:[3.67,3.68,3.59,3.60]},{ x:'01/16/2023',y:[3.62,3.65,3.62,3.63]},{ x:'01/17/2023',y:[3.60,3.62,3.59,3.61]},{ x:'01/30/2023',y:[3.66,3.78,3.66,3.78]},{ x:'01/31/2023',y:[3.78,3.83,3.78,3.80]},{ x:'02/01/2023',y:[3.82,3.85,3.81,3.84]},{ x:'02/02/2023',y:[3.84,3.96,3.84,3.96]},{ x:'02/03/2023',y:[3.96,4.02,3.95,4.01]},{ x:'02/06/2023',y:[3.99,3.99,3.92,3.92]},{ x:'02/07/2023',y:[3.93,3.96,3.92,3.96]},{ x:'02/08/2023',y:[4.00,4.15,4.00,4.12]},{ x:'02/09/2023',y:[4.12,4.12,4.07,4.09]},{ x:'02/10/2023',y:[4.06,4.06,4.01,4.01]},{ x:'02/13/2023',y:[4.01,4.01,3.93,3.93]},{ x:'02/14/2023',y:[3.97,3.99,3.96,3.96]},{ x:'02/15/2023',y:[3.97,3.98,3.90,3.93]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "020031 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());