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:[32.70,32.70,32.65,32.70]},{ x:'11/23/2022',y:[32.96,33.04,32.96,33.04]},{ x:'11/24/2022',y:[33.40,33.41,33.33,33.33]},{ x:'11/25/2022',y:[33.15,33.15,33.15,33.15]},{ x:'11/28/2022',y:[33.34,33.35,33.25,33.25]},{ x:'11/29/2022',y:[33.29,33.34,33.19,33.19]},{ x:'11/30/2022',y:[33.04,33.04,32.91,32.97]},{ x:'12/01/2022',y:[32.87,32.94,32.74,32.94]},{ x:'12/02/2022',y:[33.34,33.41,33.34,33.40]},{ x:'12/05/2022',y:[33.62,33.62,33.48,33.48]},{ x:'12/06/2022',y:[33.32,33.37,33.31,33.37]},{ x:'12/07/2022',y:[33.71,33.78,33.69,33.69]},{ x:'12/08/2022',y:[34.17,34.33,34.17,34.25]},{ x:'12/09/2022',y:[34.28,34.28,34.07,34.19]},{ x:'12/12/2022',y:[33.77,33.95,33.77,33.86]},{ x:'12/13/2022',y:[33.83,33.86,33.78,33.86]},{ x:'12/14/2022',y:[34.15,34.17,34.12,34.13]},{ x:'12/15/2022',y:[34.08,34.15,34.08,34.15]},{ x:'12/16/2022',y:[34.24,34.44,34.24,34.35]},{ x:'12/19/2022',y:[34.18,34.25,34.17,34.25]},{ x:'12/20/2022',y:[33.86,33.90,33.70,33.78]},{ x:'12/21/2022',y:[33.25,33.32,33.24,33.32]},{ x:'12/22/2022',y:[33.11,33.25,33.11,33.24]},{ x:'12/23/2022',y:[33.25,33.27,33.25,33.27]},{ x:'12/26/2022',y:[33.00,33.10,32.99,33.02]},{ x:'12/27/2022',y:[33.04,33.08,33.04,33.08]},{ x:'12/28/2022',y:[32.62,32.74,32.62,32.70]},{ x:'12/29/2022',y:[32.42,32.52,32.42,32.52]},{ x:'12/30/2022',y:[32.65,32.66,32.58,32.66]},{ x:'01/03/2023',y:[32.49,32.59,32.49,32.53]},{ x:'01/04/2023',y:[32.58,32.67,32.57,32.67]},{ x:'01/05/2023',y:[32.92,32.99,32.90,32.98]},{ x:'01/06/2023',y:[33.02,33.02,32.98,33.02]},{ x:'01/09/2023',y:[33.38,33.38,33.32,33.34]},{ x:'01/10/2023',y:[33.50,33.58,33.50,33.54]},{ x:'01/11/2023',y:[33.14,33.22,33.11,33.22]},{ x:'01/12/2023',y:[33.53,33.60,33.49,33.52]},{ x:'01/13/2023',y:[34.05,34.05,33.92,33.98]},{ x:'01/16/2023',y:[33.99,33.99,33.90,33.92]},{ x:'01/17/2023',y:[33.92,33.96,33.91,33.96]},{ x:'01/30/2023',y:[34.59,34.59,34.43,34.46]},{ x:'01/31/2023',y:[34.21,34.24,34.17,34.24]},{ x:'02/01/2023',y:[34.27,34.34,34.27,34.34]},{ x:'02/02/2023',y:[34.50,34.50,34.22,34.23]},{ x:'02/03/2023',y:[34.67,34.70,34.50,34.66]},{ x:'02/06/2023',y:[34.26,34.36,34.26,34.32]},{ x:'02/07/2023',y:[34.26,34.33,34.26,34.33]},{ x:'02/08/2023',y:[34.11,34.16,34.07,34.16]},{ x:'02/09/2023',y:[34.17,34.22,34.17,34.18]},{ x:'02/10/2023',y:[33.88,33.97,33.88,33.97]},{ x:'02/13/2023',y:[33.58,33.71,33.58,33.71]},{ x:'02/14/2023',y:[33.83,33.83,33.77,33.79]},{ x:'02/15/2023',y:[33.72,33.89,33.72,33.89]},{ x:'02/16/2023',y:[33.06,33.12,33.02,33.09]},{ x:'02/17/2023',y:[32.71,32.85,32.71,32.85]},{ x:'02/20/2023',y:[32.84,32.85,32.81,32.83]},{ x:'02/21/2023',y:[32.83,32.88,32.83,32.87]},{ x:'02/22/2023',y:[32.41,32.52,32.41,32.52]},{ x:'02/23/2023',y:[32.59,32.59,32.43,32.44]},{ x:'02/24/2023',y:[32.67,32.77,32.66,32.77]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00786b 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());