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/24/2022',y:[14.99,15.20,14.99,15.18]},{ x:'11/25/2022',y:[15.20,15.26,15.11,15.11]},{ x:'11/28/2022',y:[15.00,15.06,14.98,15.00]},{ x:'11/29/2022',y:[14.98,15.11,14.95,15.10]},{ x:'11/30/2022',y:[15.02,15.18,15.02,15.18]},{ x:'12/01/2022',y:[15.30,15.40,15.30,15.33]},{ x:'12/02/2022',y:[15.30,15.33,15.27,15.32]},{ x:'12/05/2022',y:[15.32,15.46,15.31,15.40]},{ x:'12/06/2022',y:[15.35,15.37,15.09,15.14]},{ x:'12/07/2022',y:[15.05,15.12,14.97,15.05]},{ x:'12/08/2022',y:[15.00,15.00,14.88,14.97]},{ x:'12/09/2022',y:[15.06,15.12,15.05,15.08]},{ x:'12/12/2022',y:[15.05,15.13,14.90,15.13]},{ x:'12/13/2022',y:[15.18,15.19,15.05,15.05]},{ x:'12/14/2022',y:[15.12,15.18,15.11,15.18]},{ x:'12/15/2022',y:[15.18,15.23,15.15,15.20]},{ x:'12/16/2022',y:[15.01,15.26,15.00,15.10]},{ x:'12/19/2022',y:[15.17,15.22,15.10,15.19]},{ x:'12/20/2022',y:[15.15,15.18,14.93,14.93]},{ x:'12/21/2022',y:[14.95,14.95,14.90,14.92]},{ x:'12/22/2022',y:[15.14,15.20,15.13,15.19]},{ x:'12/23/2022',y:[15.05,15.10,15.02,15.10]},{ x:'12/26/2022',y:[15.05,15.12,15.05,15.12]},{ x:'12/27/2022',y:[15.15,15.26,15.12,15.16]},{ x:'12/28/2022',y:[14.99,15.05,14.95,14.98]},{ x:'12/29/2022',y:[14.95,15.05,14.90,15.03]},{ x:'12/30/2022',y:[15.09,15.10,15.07,15.07]},{ x:'01/03/2023',y:[15.07,15.14,14.95,15.11]},{ x:'01/04/2023',y:[15.11,15.16,15.05,15.06]},{ x:'01/05/2023',y:[15.15,15.22,15.10,15.10]},{ x:'01/06/2023',y:[15.12,15.25,15.12,15.25]},{ x:'01/09/2023',y:[15.25,15.41,15.25,15.41]},{ x:'01/10/2023',y:[15.41,15.50,15.40,15.44]},{ x:'01/11/2023',y:[15.46,15.47,15.41,15.45]},{ x:'01/12/2023',y:[15.45,15.45,15.35,15.35]},{ x:'01/13/2023',y:[15.41,15.41,15.28,15.28]},{ x:'01/16/2023',y:[15.30,15.30,15.19,15.23]},{ x:'01/17/2023',y:[15.23,15.33,15.23,15.32]},{ x:'01/30/2023',y:[15.50,15.73,15.50,15.73]},{ x:'01/31/2023',y:[15.75,15.80,15.75,15.76]},{ x:'02/01/2023',y:[15.76,15.90,15.76,15.90]},{ x:'02/02/2023',y:[15.93,16.14,15.93,16.14]},{ x:'02/03/2023',y:[17.20,17.30,16.27,16.30]},{ x:'02/06/2023',y:[16.42,16.42,16.07,16.07]},{ x:'02/07/2023',y:[16.10,16.15,16.04,16.14]},{ x:'02/08/2023',y:[16.25,16.42,16.24,16.37]},{ x:'02/09/2023',y:[16.30,16.34,16.30,16.31]},{ x:'02/10/2023',y:[16.25,16.26,16.15,16.19]},{ x:'02/13/2023',y:[16.19,16.19,16.00,16.10]},{ x:'02/14/2023',y:[16.28,16.29,16.20,16.29]},{ x:'02/15/2023',y:[16.29,16.29,16.14,16.17]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00918 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());