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/18/2022',y:[15.05,15.13,14.86,14.90]},{ x:'11/21/2022',y:[14.68,14.68,14.38,14.43]},{ x:'11/22/2022',y:[14.40,14.42,14.26,14.32]},{ x:'11/23/2022',y:[14.25,14.38,14.23,14.38]},{ x:'11/24/2022',y:[14.38,14.38,14.27,14.37]},{ x:'11/25/2022',y:[14.24,14.24,14.15,14.20]},{ x:'11/28/2022',y:[14.12,14.12,13.69,13.91]},{ x:'11/29/2022',y:[14.20,14.71,14.20,14.70]},{ x:'11/30/2022',y:[14.70,14.90,14.70,14.90]},{ x:'12/01/2022',y:[15.24,15.62,15.24,15.33]},{ x:'12/02/2022',y:[15.24,15.26,15.10,15.12]},{ x:'12/05/2022',y:[15.70,15.82,15.59,15.79]},{ x:'12/06/2022',y:[15.66,15.95,15.53,15.77]},{ x:'12/07/2022',y:[15.86,16.09,15.80,16.06]},{ x:'12/08/2022',y:[15.87,16.00,15.53,15.83]},{ x:'12/09/2022',y:[15.87,16.20,15.87,16.19]},{ x:'12/12/2022',y:[16.20,16.20,15.74,15.80]},{ x:'12/13/2022',y:[15.80,16.02,15.80,15.93]},{ x:'12/14/2022',y:[15.93,15.98,15.82,15.96]},{ x:'12/15/2022',y:[15.61,15.70,15.56,15.62]},{ x:'12/16/2022',y:[15.69,15.99,15.63,15.72]},{ x:'12/19/2022',y:[15.96,15.96,15.68,15.72]},{ x:'12/20/2022',y:[15.60,15.61,15.33,15.33]},{ x:'12/21/2022',y:[15.43,15.43,15.38,15.38]},{ x:'12/22/2022',y:[15.89,15.89,15.78,15.79]},{ x:'12/23/2022',y:[15.76,15.76,15.76,15.76]},{ x:'12/26/2022',y:[15.88,15.88,15.55,15.55]},{ x:'12/27/2022',y:[16.08,16.08,15.76,15.90]},{ x:'12/28/2022',y:[16.03,16.10,16.00,16.00]},{ x:'12/29/2022',y:[15.77,15.92,15.74,15.92]},{ x:'12/30/2022',y:[16.01,16.03,15.96,15.96]},{ x:'01/03/2023',y:[15.96,16.13,15.68,16.09]},{ x:'01/04/2023',y:[16.12,16.66,16.12,16.60]},{ x:'01/05/2023',y:[16.83,17.43,16.83,17.07]},{ x:'01/06/2023',y:[17.49,17.49,17.23,17.28]},{ x:'01/09/2023',y:[17.28,17.42,17.28,17.37]},{ x:'01/10/2023',y:[17.28,17.35,17.25,17.35]},{ x:'01/11/2023',y:[17.45,17.62,17.45,17.62]},{ x:'01/12/2023',y:[17.55,17.65,17.27,17.35]},{ x:'01/13/2023',y:[17.43,17.53,17.43,17.53]},{ x:'01/16/2023',y:[17.68,18.10,17.62,17.78]},{ x:'01/17/2023',y:[17.73,17.73,17.51,17.51]},{ x:'01/30/2023',y:[17.60,18.33,17.60,18.19]},{ x:'01/31/2023',y:[18.14,18.14,17.46,17.53]},{ x:'02/01/2023',y:[17.67,17.76,17.67,17.75]},{ x:'02/02/2023',y:[17.90,17.90,17.78,17.85]},{ x:'02/03/2023',y:[17.68,17.68,17.19,17.20]},{ x:'02/06/2023',y:[17.20,17.20,16.85,16.87]},{ x:'02/07/2023',y:[17.12,17.25,17.06,17.25]},{ x:'02/08/2023',y:[17.12,17.14,16.98,17.05]},{ x:'02/09/2023',y:[17.08,17.20,17.07,17.20]},{ x:'02/10/2023',y:[17.15,17.15,16.97,16.97]},{ x:'02/13/2023',y:[16.92,17.06,16.82,17.06]},{ x:'02/14/2023',y:[17.08,17.09,17.01,17.03]},{ x:'02/15/2023',y:[17.03,17.03,16.78,16.88]},{ x:'02/16/2023',y:[17.05,17.20,17.00,17.20]},{ x:'02/17/2023',y:[16.96,16.96,16.86,16.87]},{ x:'02/20/2023',y:[16.73,16.98,16.73,16.98]},{ x:'02/21/2023',y:[16.93,16.93,16.72,16.72]},{ x:'02/22/2023',y:[16.70,16.70,16.40,16.51]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00703 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());