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:'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]},{ x:'02/21/2023',y:[14.86,14.89,14.41,14.41]},{ x:'02/22/2023',y:[14.22,14.43,14.09,14.26]},{ x:'02/23/2023',y:[14.16,14.38,14.05,14.12]},{ x:'02/24/2023',y:[13.90,13.97,13.60,13.65]},{ x:'03/01/2023',y:[13.40,14.19,13.34,14.14]},{ x:'03/02/2023',y:[14.28,14.33,14.01,14.25]},{ x:'03/03/2023',y:[14.47,14.63,14.26,14.36]},{ x:'03/06/2023',y:[14.47,14.51,14.08,14.46]},{ x:'03/07/2023',y:[14.37,14.98,14.33,14.65]},{ x:'03/08/2023',y:[14.18,14.18,13.60,13.62]},{ x:'03/09/2023',y:[13.73,13.78,13.55,13.71]},{ x:'03/10/2023',y:[13.24,13.24,12.80,12.80]},{ x:'03/13/2023',y:[12.83,13.26,12.70,13.18]},{ x:'03/14/2023',y:[12.91,13.06,12.48,12.63]} ] }], 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());