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/16/2022',y:[12.08,12.22,11.73,11.87]},{ x:'11/17/2022',y:[11.79,11.84,11.32,11.54]},{ x:'11/18/2022',y:[12.06,12.23,11.77,11.83]},{ x:'11/21/2022',y:[11.65,11.65,10.93,11.22]},{ x:'11/22/2022',y:[11.11,11.42,10.98,11.09]},{ x:'11/23/2022',y:[11.26,11.26,10.93,11.16]},{ x:'11/24/2022',y:[11.25,11.37,11.08,11.17]},{ x:'11/25/2022',y:[11.24,11.27,10.92,11.01]},{ x:'11/28/2022',y:[10.78,10.78,10.18,10.61]},{ x:'11/29/2022',y:[10.80,11.65,10.78,11.62]},{ x:'11/30/2022',y:[11.76,12.09,11.66,12.03]},{ x:'12/01/2022',y:[12.81,13.13,12.53,12.66]},{ x:'12/02/2022',y:[12.58,12.62,12.22,12.28]},{ x:'12/05/2022',y:[12.91,13.30,12.85,13.22]},{ x:'12/06/2022',y:[13.00,13.56,12.94,13.23]},{ x:'12/07/2022',y:[13.35,13.83,13.28,13.74]},{ x:'12/08/2022',y:[13.06,13.35,12.72,13.18]},{ x:'12/09/2022',y:[13.50,13.88,13.33,13.80]},{ x:'12/12/2022',y:[13.72,13.79,13.41,13.55]},{ x:'12/13/2022',y:[13.50,13.77,13.33,13.57]},{ x:'12/14/2022',y:[13.79,14.00,13.54,13.88]},{ x:'12/15/2022',y:[13.84,13.84,13.10,13.32]},{ x:'12/16/2022',y:[13.10,13.65,12.97,13.35]},{ x:'12/19/2022',y:[13.46,13.83,13.18,13.30]},{ x:'12/20/2022',y:[13.17,13.20,12.66,12.66]},{ x:'12/21/2022',y:[12.88,13.08,12.84,12.87]},{ x:'12/22/2022',y:[13.24,13.72,13.22,13.61]},{ x:'12/23/2022',y:[13.25,13.63,13.15,13.49]},{ x:'12/26/2022',y:[13.34,13.47,13.34,13.46]},{ x:'12/27/2022',y:[13.67,13.83,13.60,13.72]},{ x:'12/28/2022',y:[13.91,14.22,13.74,13.99]},{ x:'12/29/2022',y:[13.68,13.74,13.43,13.62]},{ x:'12/30/2022',y:[13.98,14.13,13.75,13.81]},{ x:'01/03/2023',y:[13.70,14.13,13.06,14.06]},{ x:'01/04/2023',y:[14.20,14.85,14.20,14.66]},{ x:'01/05/2023',y:[15.47,15.92,15.33,15.40]},{ x:'01/06/2023',y:[15.65,15.80,15.33,15.33]},{ x:'01/09/2023',y:[15.86,16.04,15.68,15.78]},{ x:'01/10/2023',y:[15.85,15.94,15.58,15.79]},{ x:'01/11/2023',y:[15.99,16.23,15.85,16.23]},{ x:'01/12/2023',y:[16.18,16.28,15.60,15.78]},{ x:'01/13/2023',y:[16.09,16.15,15.88,15.97]},{ x:'01/16/2023',y:[16.31,16.52,16.21,16.30]},{ x:'01/17/2023',y:[16.15,16.31,15.84,15.87]},{ x:'01/30/2023',y:[17.36,17.42,16.92,16.95]},{ x:'01/31/2023',y:[16.79,16.90,16.15,16.19]},{ x:'02/01/2023',y:[16.32,16.41,16.06,16.30]},{ x:'02/02/2023',y:[16.64,16.74,16.41,16.50]},{ x:'02/03/2023',y:[16.19,16.21,15.57,15.72]},{ x:'02/06/2023',y:[15.60,15.60,15.04,15.05]},{ x:'02/07/2023',y:[15.18,15.62,15.18,15.41]},{ x:'02/08/2023',y:[15.40,15.57,15.19,15.33]},{ x:'02/09/2023',y:[15.17,15.60,15.10,15.60]},{ x:'02/10/2023',y:[15.63,15.73,15.13,15.15]},{ x:'02/13/2023',y:[14.96,15.16,14.66,15.16]},{ x:'02/14/2023',y:[15.28,15.43,15.04,15.11]},{ x:'02/15/2023',y:[15.14,15.15,14.59,14.69]},{ x:'02/16/2023',y:[14.83,15.35,14.80,15.29]},{ x:'02/17/2023',y:[14.91,15.02,14.70,14.72]},{ x:'02/20/2023',y:[14.47,14.81,14.41,14.74]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00650l 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());