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/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]},{ x:'12/07/2023',y:[33.66,33.78,33.62,33.62]},{ x:'12/08/2023',y:[33.48,33.48,33.34,33.40]},{ x:'12/11/2023',y:[33.30,33.36,33.30,33.35]},{ x:'12/12/2023',y:[33.25,33.38,33.25,33.38]},{ x:'12/18/2023',y:[34.04,34.24,34.04,34.22]},{ x:'12/19/2023',y:[34.11,34.11,33.85,34.00]},{ x:'01/10/2024',y:[33.07,33.10,33.07,33.10]},{ x:'01/11/2024',y:[33.17,33.17,33.17,33.17]},{ x:'01/12/2024',y:[33.35,33.39,33.35,33.38]},{ x:'01/15/2024',y:[33.43,33.53,33.43,33.53]},{ x:'01/16/2024',y:[33.49,33.52,33.47,33.52]},{ x:'01/17/2024',y:[33.26,33.38,33.26,33.37]},{ x:'01/18/2024',y:[33.41,33.41,33.37,33.37]},{ x:'01/19/2024',y:[32.96,33.02,32.96,32.97]},{ x:'01/22/2024',y:[33.17,33.22,32.50,33.17]},{ x:'01/23/2024',y:[33.17,33.21,33.14,33.21]},{ x:'01/24/2024',y:[32.95,32.95,32.87,32.95]},{ x:'01/25/2024',y:[32.77,32.79,32.75,32.79]},{ x:'01/26/2024',y:[33.06,33.08,33.06,33.08]},{ x:'01/29/2024',y:[32.98,33.00,32.96,32.97]},{ x:'01/30/2024',y:[33.08,33.18,33.08,33.14]},{ x:'01/31/2024',y:[33.20,33.33,33.20,33.33]},{ x:'02/01/2024',y:[33.46,33.52,33.46,33.51]},{ x:'02/02/2024',y:[33.52,33.53,33.51,33.52]},{ x:'02/05/2024',y:[33.18,33.18,33.12,33.12]},{ x:'02/15/2024',y:[32.35,32.46,32.35,32.45]},{ x:'02/16/2024',y:[32.30,32.32,32.30,32.30]},{ x:'02/19/2024',y:[32.18,32.24,32.18,32.24]},{ x:'02/20/2024',y:[32.22,32.30,32.22,32.30]},{ x:'02/21/2024',y:[32.34,32.39,32.33,32.39]},{ x:'02/22/2024',y:[32.31,32.34,32.30,32.31]},{ x:'02/23/2024',y:[32.44,32.44,32.40,32.43]},{ x:'02/26/2024',y:[32.70,33.06,32.70,33.03]},{ x:'02/27/2024',y:[32.84,32.91,32.84,32.91]},{ x:'02/29/2024',y:[32.90,32.91,32.88,32.91]},{ x:'03/01/2024',y:[32.83,33.08,32.82,32.92]},{ x:'03/04/2024',y:[32.98,33.14,32.98,33.13]},{ x:'03/05/2024',y:[33.10,33.19,33.10,33.19]},{ x:'03/06/2024',y:[33.39,33.39,33.38,33.38]},{ x:'03/07/2024',y:[33.46,33.59,33.46,33.53]},{ x:'03/08/2024',y:[33.52,33.58,33.52,33.57]},{ x:'03/11/2024',y:[33.62,33.62,33.57,33.60]},{ x:'03/12/2024',y:[33.60,33.60,33.53,33.55]},{ x:'03/13/2024',y:[33.45,33.54,33.45,33.52]},{ x:'03/14/2024',y:[33.47,33.47,33.45,33.45]},{ x:'03/15/2024',y:[33.12,33.13,33.09,33.13]},{ x:'03/18/2024',y:[32.76,32.76,32.62,32.66]} ] }], 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());