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/15/2022',y:[26.71,26.75,26.71,26.75]},{ x:'11/16/2022',y:[27.25,27.30,27.13,27.13]},{ x:'11/17/2022',y:[27.72,27.72,27.64,27.64]},{ x:'11/18/2022',y:[27.53,27.57,27.51,27.57]},{ x:'11/21/2022',y:[27.41,27.48,27.41,27.48]},{ x:'11/22/2022',y:[27.43,27.44,27.43,27.44]},{ x:'11/23/2022',y:[27.78,27.87,27.78,27.87]},{ x:'11/24/2022',y:[28.28,28.28,28.08,28.09]},{ x:'11/25/2022',y:[28.22,28.25,28.14,28.14]},{ x:'11/28/2022',y:[28.02,28.21,28.02,28.21]},{ x:'11/29/2022',y:[28.10,28.10,27.99,28.04]},{ x:'11/30/2022',y:[27.74,27.78,27.73,27.77]},{ x:'12/01/2022',y:[28.00,28.00,27.76,27.90]},{ x:'12/02/2022',y:[28.37,28.37,28.25,28.26]},{ x:'12/05/2022',y:[28.58,28.59,28.49,28.51]},{ x:'12/06/2022',y:[28.42,28.46,28.35,28.44]},{ x:'12/07/2022',y:[28.90,28.95,28.68,28.84]},{ x:'12/08/2022',y:[29.21,29.41,29.21,29.35]},{ x:'12/09/2022',y:[29.51,29.61,29.48,29.61]},{ x:'12/12/2022',y:[28.69,28.95,28.69,28.92]},{ x:'12/13/2022',y:[28.87,28.95,28.87,28.89]},{ x:'12/14/2022',y:[29.03,29.03,29.00,29.00]},{ x:'12/15/2022',y:[29.00,29.08,28.98,29.08]},{ x:'12/16/2022',y:[29.08,29.08,28.90,28.95]},{ x:'12/19/2022',y:[28.79,28.79,28.73,28.76]},{ x:'12/20/2022',y:[28.33,28.39,27.92,28.01]},{ x:'12/21/2022',y:[27.77,27.86,27.75,27.83]},{ x:'12/22/2022',y:[28.01,28.02,27.95,27.95]},{ x:'12/23/2022',y:[27.85,27.88,27.80,27.86]},{ x:'12/26/2022',y:[27.72,27.79,27.71,27.78]},{ x:'12/27/2022',y:[27.78,27.86,27.78,27.79]},{ x:'12/28/2022',y:[27.31,27.33,26.80,27.28]},{ x:'12/29/2022',y:[26.94,26.98,26.94,26.98]},{ x:'12/30/2022',y:[27.11,27.11,27.06,27.10]},{ x:'01/03/2023',y:[26.89,26.96,26.89,26.94]},{ x:'01/04/2023',y:[27.24,27.42,27.24,27.42]},{ x:'01/05/2023',y:[27.59,27.64,27.59,27.61]},{ x:'01/06/2023',y:[27.73,27.77,27.68,27.76]},{ x:'01/09/2023',y:[27.97,28.06,27.96,28.03]},{ x:'01/10/2023',y:[28.05,28.08,28.03,28.03]},{ x:'01/11/2023',y:[27.77,27.91,27.75,27.91]},{ x:'01/12/2023',y:[27.99,28.22,27.99,28.17]},{ x:'01/13/2023',y:[28.34,28.50,28.33,28.50]},{ x:'01/16/2023',y:[28.27,28.41,28.27,28.27]},{ x:'01/17/2023',y:[28.10,28.18,28.10,28.18]},{ x:'01/30/2023',y:[28.24,28.30,28.15,28.30]},{ x:'01/31/2023',y:[28.10,28.10,27.92,27.97]},{ x:'02/01/2023',y:[28.21,28.30,28.21,28.30]},{ x:'02/02/2023',y:[28.31,28.31,28.09,28.19]},{ x:'02/03/2023',y:[28.30,28.34,28.26,28.28]},{ x:'02/06/2023',y:[27.83,27.91,27.83,27.91]},{ x:'02/07/2023',y:[27.81,27.92,27.81,27.91]},{ x:'02/08/2023',y:[27.69,27.72,27.63,27.71]},{ x:'02/09/2023',y:[27.89,27.94,27.85,27.86]},{ x:'02/10/2023',y:[27.56,27.62,27.55,27.62]},{ x:'02/13/2023',y:[27.38,27.44,27.38,27.43]},{ x:'02/14/2023',y:[27.64,27.66,27.61,27.66]},{ x:'02/15/2023',y:[27.72,27.77,27.72,27.75]},{ x:'02/16/2023',y:[27.38,27.45,27.37,27.42]},{ x:'02/17/2023',y:[26.86,26.96,26.86,26.96]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00857b 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());