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:'09/07/2023',y:[32.52,32.52,32.51,32.51]},{ x:'09/08/2023',y:[32.75,32.75,32.75,32.75]},{ x:'09/11/2023',y:[32.65,32.65,32.65,32.65]},{ x:'09/12/2023',y:[32.62,32.63,32.62,32.62]},{ x:'09/13/2023',y:[32.65,32.67,32.65,32.66]},{ x:'09/14/2023',y:[32.78,32.78,32.78,32.78]},{ x:'09/15/2023',y:[32.52,32.55,32.51,32.54]},{ x:'09/18/2023',y:[31.84,31.94,31.83,31.92]},{ x:'09/19/2023',y:[32.24,32.24,32.23,32.23]},{ x:'09/20/2023',y:[32.10,32.10,32.09,32.10]},{ x:'09/21/2023',y:[31.99,32.10,31.99,32.10]},{ x:'09/22/2023',y:[31.58,31.62,31.55,31.62]},{ x:'09/25/2023',y:[31.84,31.84,31.84,31.84]},{ x:'09/26/2023',y:[31.34,31.40,31.34,31.40]},{ x:'09/27/2023',y:[31.45,31.47,31.44,31.47]},{ x:'09/28/2023',y:[31.20,31.26,31.17,31.25]},{ x:'10/02/2023',y:[31.08,31.10,31.07,31.10]},{ x:'10/03/2023',y:[30.75,30.78,30.71,30.75]},{ x:'10/04/2023',y:[29.91,30.03,29.90,29.95]},{ x:'10/05/2023',y:[30.50,30.51,30.48,30.51]},{ x:'10/06/2023',y:[30.32,30.34,30.30,30.33]},{ x:'10/11/2023',y:[30.64,30.76,30.64,30.75]},{ x:'10/12/2023',y:[31.08,31.08,31.07,31.08]},{ x:'10/13/2023',y:[30.53,30.58,30.53,30.58]},{ x:'10/18/2023',y:[30.31,30.31,30.29,30.29]},{ x:'10/19/2023',y:[29.80,29.80,29.70,29.70]},{ x:'10/20/2023',y:[29.58,29.58,29.54,29.54]},{ x:'10/23/2023',y:[29.22,29.28,29.19,29.24]},{ x:'10/24/2023',y:[29.75,29.85,29.75,29.85]},{ x:'10/25/2023',y:[30.12,30.12,30.03,30.03]},{ x:'10/26/2023',y:[29.54,29.55,29.51,29.51]},{ x:'10/27/2023',y:[29.92,29.94,29.88,29.92]},{ x:'10/30/2023',y:[29.92,29.92,29.87,29.87]},{ x:'10/31/2023',y:[29.90,29.92,29.90,29.92]},{ x:'11/01/2023',y:[29.74,29.77,29.71,29.77]},{ x:'11/02/2023',y:[30.53,30.60,30.53,30.58]},{ x:'11/03/2023',y:[31.00,31.07,31.00,31.07]},{ x:'11/06/2023',y:[31.06,31.08,31.06,31.08]},{ x:'11/07/2023',y:[30.98,30.99,30.93,30.94]},{ x:'11/08/2023',y:[31.28,31.28,31.23,31.24]},{ x:'11/09/2023',y:[31.60,31.74,31.60,31.69]},{ x:'11/10/2023',y:[31.26,31.26,31.26,31.26]},{ x:'11/13/2023',y:[31.21,31.21,31.19,31.19]},{ x:'11/14/2023',y:[31.32,31.45,31.32,31.45]},{ x:'11/15/2023',y:[31.97,32.06,31.97,32.03]},{ x:'11/16/2023',y:[31.77,31.79,31.70,31.76]},{ x:'11/17/2023',y:[31.86,31.86,31.85,31.85]},{ x:'11/20/2023',y:[31.76,31.77,31.75,31.75]},{ x:'11/21/2023',y:[31.86,31.86,31.85,31.85]},{ x:'11/22/2023',y:[31.74,31.75,31.68,31.72]},{ x:'11/23/2023',y:[32.05,32.05,32.02,32.05]},{ x:'11/24/2023',y:[31.94,31.94,31.87,31.87]},{ x:'11/27/2023',y:[31.81,31.81,31.78,31.78]},{ x:'11/28/2023',y:[32.08,32.13,32.08,32.09]},{ x:'11/29/2023',y:[32.22,32.22,32.17,32.22]},{ x:'11/30/2023',y:[32.46,32.46,32.42,32.43]},{ x:'12/01/2023',y:[32.31,32.37,32.28,32.37]},{ x:'12/04/2023',y:[32.69,32.82,32.69,32.82]},{ x:'12/05/2023',y:[32.90,32.97,32.87,32.95]},{ x:'12/06/2023',y:[33.23,33.36,33.23,33.28]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00781b 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());