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:[31.78,31.97,31.78,31.97]},{ x:'11/16/2022',y:[32.68,32.68,32.32,32.32]},{ x:'11/17/2022',y:[32.97,33.03,32.89,33.02]},{ x:'11/18/2022',y:[32.99,32.99,32.93,32.99]},{ x:'11/21/2022',y:[32.74,32.95,32.73,32.95]},{ x:'11/22/2022',y:[32.93,32.94,32.86,32.86]},{ x:'11/23/2022',y:[33.13,33.32,33.13,33.32]},{ x:'11/24/2022',y:[33.73,33.77,33.53,33.53]},{ x:'11/25/2022',y:[33.59,33.71,33.59,33.60]},{ x:'11/28/2022',y:[33.58,33.95,33.58,33.95]},{ x:'11/29/2022',y:[33.69,33.69,33.57,33.59]},{ x:'11/30/2022',y:[33.42,33.45,33.22,33.24]},{ x:'12/01/2022',y:[33.38,33.39,33.27,33.31]},{ x:'12/02/2022',y:[33.93,33.96,33.89,33.91]},{ x:'12/05/2022',y:[34.19,34.37,34.11,34.17]},{ x:'12/06/2022',y:[34.11,34.32,34.07,34.23]},{ x:'12/07/2022',y:[34.32,34.49,34.32,34.43]},{ x:'12/08/2022',y:[35.03,35.27,35.03,35.23]},{ x:'12/09/2022',y:[35.27,35.43,35.19,35.41]},{ x:'12/12/2022',y:[34.34,34.70,34.34,34.66]},{ x:'12/13/2022',y:[34.64,34.64,34.50,34.53]},{ x:'12/14/2022',y:[34.91,34.91,34.76,34.80]},{ x:'12/15/2022',y:[34.73,34.76,34.63,34.69]},{ x:'12/16/2022',y:[34.98,35.20,34.98,35.06]},{ x:'12/19/2022',y:[34.70,34.70,34.62,34.68]},{ x:'12/20/2022',y:[34.27,34.30,33.60,33.75]},{ x:'12/21/2022',y:[33.55,33.58,33.44,33.56]},{ x:'12/22/2022',y:[33.75,33.80,33.73,33.80]},{ x:'12/23/2022',y:[33.71,33.71,33.58,33.58]},{ x:'12/26/2022',y:[33.50,33.50,33.38,33.43]},{ x:'12/27/2022',y:[33.44,33.44,33.25,33.30]},{ x:'12/28/2022',y:[32.90,32.90,32.66,32.74]},{ x:'12/29/2022',y:[32.54,32.59,32.45,32.58]},{ x:'12/30/2022',y:[32.76,32.76,32.69,32.69]},{ x:'01/03/2023',y:[32.66,32.66,32.48,32.60]},{ x:'01/04/2023',y:[32.96,33.26,32.96,33.26]},{ x:'01/05/2023',y:[33.35,33.48,33.34,33.36]},{ x:'01/06/2023',y:[33.51,33.63,33.48,33.54]},{ x:'01/09/2023',y:[33.96,33.96,33.84,33.90]},{ x:'01/10/2023',y:[33.90,34.00,33.90,33.96]},{ x:'01/11/2023',y:[33.75,33.75,33.61,33.75]},{ x:'01/12/2023',y:[33.90,34.21,33.85,34.12]},{ x:'01/13/2023',y:[34.34,34.41,34.29,34.41]},{ x:'01/16/2023',y:[34.41,34.41,34.18,34.19]},{ x:'01/17/2023',y:[34.12,34.12,34.00,34.07]},{ x:'01/30/2023',y:[34.35,34.36,34.10,34.18]},{ x:'01/31/2023',y:[33.81,33.81,33.64,33.66]},{ x:'02/01/2023',y:[33.80,33.80,33.71,33.73]},{ x:'02/02/2023',y:[33.93,33.93,33.74,33.81]},{ x:'02/03/2023',y:[33.94,34.16,33.93,34.06]},{ x:'02/06/2023',y:[33.53,33.63,33.50,33.63]},{ x:'02/07/2023',y:[33.55,33.60,33.50,33.55]},{ x:'02/08/2023',y:[33.30,33.34,33.24,33.33]},{ x:'02/09/2023',y:[33.45,33.46,33.38,33.40]},{ x:'02/10/2023',y:[33.17,33.25,33.14,33.21]},{ x:'02/13/2023',y:[32.87,32.95,32.86,32.93]},{ x:'02/14/2023',y:[33.23,33.23,33.13,33.17]},{ x:'02/15/2023',y:[33.22,33.30,33.22,33.30]},{ x:'02/16/2023',y:[32.80,32.94,32.66,32.90]},{ x:'02/17/2023',y:[32.39,32.48,32.35,32.41]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00696b 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());