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/14/2022',y:[20.00,20.20,19.82,19.82]},{ x:'11/15/2022',y:[18.80,18.82,18.51,18.68]},{ x:'11/16/2022',y:[19.00,19.15,18.85,18.97]},{ x:'11/17/2022',y:[18.70,18.70,18.28,18.31]},{ x:'11/18/2022',y:[17.77,17.96,17.73,17.86]},{ x:'11/21/2022',y:[16.95,16.96,16.51,16.62]},{ x:'11/22/2022',y:[16.90,17.07,16.85,17.02]},{ x:'11/23/2022',y:[17.20,17.27,17.02,17.08]},{ x:'11/24/2022',y:[16.33,16.33,16.00,16.02]},{ x:'11/25/2022',y:[16.15,16.23,16.07,16.21]},{ x:'11/28/2022',y:[15.40,15.41,14.62,14.66]},{ x:'11/29/2022',y:[15.34,16.41,15.26,16.41]},{ x:'11/30/2022',y:[15.88,16.04,15.83,16.01]},{ x:'12/01/2022',y:[16.60,16.64,16.37,16.45]},{ x:'12/02/2022',y:[16.51,16.65,16.39,16.49]},{ x:'12/05/2022',y:[16.62,16.70,16.16,16.20]},{ x:'12/06/2022',y:[15.15,15.30,15.08,15.13]},{ x:'12/07/2022',y:[14.08,14.11,13.77,13.88]},{ x:'12/08/2022',y:[13.12,13.34,13.12,13.30]},{ x:'12/09/2022',y:[13.06,13.11,12.85,12.89]},{ x:'12/12/2022',y:[13.00,13.00,12.70,12.81]},{ x:'12/13/2022',y:[13.26,13.69,13.25,13.68]},{ x:'12/14/2022',y:[14.00,14.03,13.89,13.98]},{ x:'12/15/2022',y:[14.55,14.72,14.40,14.47]},{ x:'12/16/2022',y:[14.24,14.44,14.14,14.15]},{ x:'12/19/2022',y:[13.85,14.15,13.81,13.92]},{ x:'12/20/2022',y:[13.99,14.24,13.85,13.86]},{ x:'12/21/2022',y:[14.02,14.10,13.94,13.96]},{ x:'12/22/2022',y:[14.70,14.82,14.70,14.80]},{ x:'12/23/2022',y:[14.53,14.76,14.46,14.52]},{ x:'12/26/2022',y:[15.31,15.32,15.03,15.12]},{ x:'12/27/2022',y:[15.49,15.61,15.42,15.54]},{ x:'12/28/2022',y:[15.40,15.55,15.37,15.41]},{ x:'12/29/2022',y:[15.08,15.09,14.90,15.01]},{ x:'12/30/2022',y:[15.01,15.10,14.86,15.05]},{ x:'01/03/2023',y:[15.60,15.81,15.46,15.61]},{ x:'01/04/2023',y:[14.70,14.71,14.40,14.41]},{ x:'01/05/2023',y:[13.27,13.36,13.13,13.36]},{ x:'01/06/2023',y:[13.44,13.64,13.39,13.52]},{ x:'01/09/2023',y:[13.46,13.57,13.38,13.53]},{ x:'01/10/2023',y:[13.57,13.58,13.35,13.40]},{ x:'01/11/2023',y:[13.50,13.55,13.40,13.42]},{ x:'01/12/2023',y:[14.35,14.60,14.35,14.47]},{ x:'01/13/2023',y:[14.83,14.85,14.67,14.70]},{ x:'01/16/2023',y:[15.20,15.30,15.00,15.00]},{ x:'01/17/2023',y:[14.87,15.08,14.80,15.02]},{ x:'01/30/2023',y:[15.60,15.78,15.40,15.40]},{ x:'01/31/2023',y:[14.95,14.95,14.74,14.75]},{ x:'02/01/2023',y:[15.20,15.27,15.14,15.19]},{ x:'02/02/2023',y:[14.50,14.51,14.29,14.39]},{ x:'02/03/2023',y:[14.09,14.09,13.87,13.89]},{ x:'02/06/2023',y:[13.36,13.44,13.27,13.41]},{ x:'02/07/2023',y:[13.74,13.97,13.69,13.97]},{ x:'02/08/2023',y:[14.57,14.60,14.46,14.52]},{ x:'02/09/2023',y:[14.89,15.01,14.87,14.97]},{ x:'02/10/2023',y:[14.64,14.77,14.63,14.72]},{ x:'02/13/2023',y:[15.27,15.32,15.15,15.16]},{ x:'02/14/2023',y:[15.28,15.34,15.21,15.28]},{ x:'02/15/2023',y:[15.09,15.22,15.00,15.01]},{ x:'02/16/2023',y:[15.13,15.37,15.13,15.33]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00715l 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());