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/22/2022',y:[13.16,13.17,13.07,13.15]},{ x:'11/23/2022',y:[13.23,13.28,13.21,13.23]},{ x:'11/24/2022',y:[13.28,13.41,13.28,13.39]},{ x:'11/25/2022',y:[13.39,13.43,13.37,13.37]},{ x:'11/28/2022',y:[13.26,13.27,13.15,13.21]},{ x:'11/29/2022',y:[13.20,13.30,13.16,13.29]},{ x:'11/30/2022',y:[13.28,13.44,13.28,13.44]},{ x:'12/01/2022',y:[13.61,13.67,13.56,13.59]},{ x:'12/02/2022',y:[13.55,13.63,13.49,13.61]},{ x:'12/05/2022',y:[13.61,13.72,13.61,13.63]},{ x:'12/06/2022',y:[13.63,13.63,13.42,13.42]},{ x:'12/07/2022',y:[13.42,13.48,13.30,13.30]},{ x:'12/08/2022',y:[13.35,13.35,13.17,13.23]},{ x:'12/09/2022',y:[13.28,13.40,13.28,13.36]},{ x:'12/12/2022',y:[13.33,13.33,13.19,13.26]},{ x:'12/13/2022',y:[13.30,13.35,13.22,13.22]},{ x:'12/14/2022',y:[13.28,13.41,13.28,13.40]},{ x:'12/15/2022',y:[13.40,13.48,13.38,13.47]},{ x:'12/16/2022',y:[13.24,13.24,13.04,13.12]},{ x:'12/19/2022',y:[13.07,13.10,13.01,13.05]},{ x:'12/20/2022',y:[13.05,13.05,12.80,12.80]},{ x:'12/21/2022',y:[12.82,12.91,12.82,12.85]},{ x:'12/22/2022',y:[12.95,13.02,12.95,13.01]},{ x:'12/23/2022',y:[12.88,12.92,12.80,12.89]},{ x:'12/26/2022',y:[12.87,12.94,12.87,12.91]},{ x:'12/27/2022',y:[12.92,13.04,12.92,12.96]},{ x:'12/28/2022',y:[12.90,12.90,12.80,12.87]},{ x:'12/29/2022',y:[12.80,12.84,12.71,12.82]},{ x:'12/30/2022',y:[12.93,12.95,12.87,12.87]},{ x:'01/03/2023',y:[12.86,12.99,12.75,12.97]},{ x:'01/04/2023',y:[12.97,13.05,12.96,13.02]},{ x:'01/05/2023',y:[13.06,13.14,13.02,13.03]},{ x:'01/06/2023',y:[13.03,13.16,13.03,13.13]},{ x:'01/09/2023',y:[13.27,13.38,13.25,13.38]},{ x:'01/10/2023',y:[13.38,13.46,13.37,13.41]},{ x:'01/11/2023',y:[13.43,13.46,13.37,13.39]},{ x:'01/12/2023',y:[13.40,13.44,13.32,13.34]},{ x:'01/13/2023',y:[13.42,13.48,13.35,13.35]},{ x:'01/16/2023',y:[13.36,13.48,13.36,13.42]},{ x:'01/17/2023',y:[13.40,13.44,13.40,13.42]},{ x:'01/30/2023',y:[13.74,13.90,13.74,13.88]},{ x:'01/31/2023',y:[13.90,13.93,13.80,13.82]},{ x:'02/01/2023',y:[13.90,13.91,13.83,13.91]},{ x:'02/02/2023',y:[13.97,14.07,13.97,14.06]},{ x:'02/03/2023',y:[14.06,14.09,13.97,14.05]},{ x:'02/06/2023',y:[14.05,14.05,13.97,13.97]},{ x:'02/07/2023',y:[13.93,14.00,13.93,13.97]},{ x:'02/08/2023',y:[14.02,14.17,14.02,14.14]},{ x:'02/09/2023',y:[14.09,14.17,14.08,14.16]},{ x:'02/10/2023',y:[14.15,14.15,14.08,14.10]},{ x:'02/13/2023',y:[14.10,14.10,14.00,14.07]},{ x:'02/14/2023',y:[14.11,14.20,14.11,14.15]},{ x:'02/15/2023',y:[14.10,14.15,14.02,14.04]},{ x:'02/16/2023',y:[14.09,14.22,14.09,14.21]},{ x:'02/17/2023',y:[14.14,14.16,14.07,14.16]},{ x:'02/20/2023',y:[14.16,14.29,14.16,14.26]},{ x:'02/21/2023',y:[14.26,14.33,14.24,14.31]},{ x:'02/22/2023',y:[14.23,14.23,14.12,14.20]},{ x:'02/23/2023',y:[14.24,14.40,14.24,14.35]},{ x:'02/24/2023',y:[14.36,14.42,14.27,14.27]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00896 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());