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/29/2023',y:[34.90,35.18,34.90,35.09]},{ x:'11/30/2023',y:[35.09,35.11,34.94,35.08]},{ x:'12/01/2023',y:[35.07,35.16,34.98,35.13]},{ x:'12/04/2023',y:[35.20,35.29,35.17,35.19]},{ x:'12/05/2023',y:[35.10,35.10,34.92,35.05]},{ x:'12/06/2023',y:[35.19,35.38,35.19,35.31]},{ x:'12/07/2023',y:[35.30,35.41,35.19,35.25]},{ x:'12/08/2023',y:[35.57,35.59,35.40,35.42]},{ x:'12/11/2023',y:[35.59,35.62,35.42,35.47]},{ x:'12/12/2023',y:[35.65,35.67,35.56,35.58]},{ x:'12/18/2023',y:[36.35,36.44,36.12,36.38]},{ x:'12/19/2023',y:[36.38,36.38,35.92,36.10]},{ x:'01/10/2024',y:[36.40,36.40,36.18,36.24]},{ x:'01/11/2024',y:[36.25,36.41,36.24,36.39]},{ x:'01/12/2024',y:[36.33,36.40,36.19,36.33]},{ x:'01/15/2024',y:[36.42,36.62,36.36,36.42]},{ x:'01/16/2024',y:[36.45,36.46,36.09,36.37]},{ x:'01/17/2024',y:[35.63,35.63,35.17,35.19]},{ x:'01/18/2024',y:[35.19,35.32,34.95,35.12]},{ x:'01/19/2024',y:[35.41,35.65,35.23,35.65]},{ x:'01/22/2024',y:[35.78,36.14,35.78,36.14]},{ x:'01/23/2024',y:[36.15,36.28,36.09,36.20]},{ x:'01/24/2024',y:[36.27,36.34,36.22,36.23]},{ x:'01/25/2024',y:[36.33,36.39,36.24,36.29]},{ x:'01/26/2024',y:[36.29,36.29,36.01,36.07]},{ x:'01/29/2024',y:[36.07,36.31,36.02,36.28]},{ x:'01/30/2024',y:[36.32,36.41,36.25,36.36]},{ x:'01/31/2024',y:[36.33,36.33,36.15,36.20]},{ x:'02/01/2024',y:[36.20,36.31,36.20,36.30]},{ x:'02/02/2024',y:[36.48,36.54,36.41,36.45]},{ x:'02/05/2024',y:[36.41,36.46,36.23,36.45]},{ x:'02/15/2024',y:[36.72,36.99,36.70,36.86]},{ x:'02/16/2024',y:[36.94,37.21,36.94,37.07]},{ x:'02/19/2024',y:[37.12,37.15,37.03,37.14]},{ x:'02/20/2024',y:[37.25,37.46,37.17,37.39]},{ x:'02/21/2024',y:[37.39,37.40,37.26,37.29]},{ x:'02/22/2024',y:[37.50,37.70,37.45,37.65]},{ x:'02/23/2024',y:[37.82,37.98,37.59,37.59]},{ x:'02/26/2024',y:[37.59,37.68,37.50,37.68]},{ x:'02/27/2024',y:[37.68,37.83,37.25,37.51]},{ x:'02/29/2024',y:[37.50,37.80,37.40,37.70]},{ x:'03/01/2024',y:[37.70,37.82,37.66,37.74]},{ x:'03/04/2024',y:[37.89,38.18,37.89,38.00]},{ x:'03/05/2024',y:[38.05,38.18,37.85,38.16]},{ x:'03/06/2024',y:[38.12,38.61,38.07,38.53]},{ x:'03/07/2024',y:[38.70,38.82,38.40,38.68]},{ x:'03/08/2024',y:[38.97,39.15,38.28,38.45]},{ x:'03/11/2024',y:[38.44,38.60,38.39,38.43]},{ x:'03/12/2024',y:[38.51,38.99,38.51,38.99]},{ x:'03/13/2024',y:[39.13,39.36,38.93,39.08]},{ x:'03/14/2024',y:[39.09,39.17,38.65,38.72]},{ x:'03/15/2024',y:[38.71,39.03,38.64,39.02]},{ x:'03/18/2024',y:[39.06,39.36,39.04,39.36]},{ x:'03/19/2024',y:[39.36,39.75,39.26,39.70]},{ x:'03/20/2024',y:[39.84,40.15,39.56,39.63]},{ x:'03/21/2024',y:[39.94,39.95,39.65,39.93]},{ x:'03/22/2024',y:[39.93,40.08,39.70,39.80]},{ x:'03/25/2024',y:[39.82,39.90,39.60,39.62]},{ x:'03/26/2024',y:[39.60,39.84,38.80,39.24]},{ x:'03/27/2024',y:[39.24,39.61,39.15,39.55]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0056 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());