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:'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]},{ x:'03/28/2024',y:[39.55,39.78,39.40,39.74]},{ x:'03/29/2024',y:[39.75,39.97,39.53,39.86]},{ x:'04/01/2024',y:[39.89,39.95,39.58,39.59]},{ x:'04/02/2024',y:[39.62,39.93,39.61,39.88]},{ x:'04/03/2024',y:[39.69,39.92,39.68,39.75]},{ x:'04/08/2024',y:[39.77,39.94,39.66,39.92]},{ x:'04/09/2024',y:[39.94,40.00,39.93,39.99]},{ x:'04/10/2024',y:[40.12,40.35,40.11,40.20]},{ x:'04/11/2024',y:[40.06,40.11,39.84,40.09]},{ x:'04/12/2024',y:[40.06,40.09,39.88,39.98]},{ x:'04/15/2024',y:[39.73,39.82,39.50,39.62]},{ x:'04/16/2024',y:[39.15,39.15,38.27,38.49]},{ x:'04/17/2024',y:[38.60,39.00,38.57,38.94]},{ x:'04/18/2024',y:[38.15,38.36,37.97,38.18]},{ x:'04/19/2024',y:[37.82,37.83,36.65,37.27]},{ x:'04/22/2024',y:[37.27,37.35,36.83,36.92]},{ x:'04/23/2024',y:[37.19,37.34,36.94,37.12]},{ x:'04/24/2024',y:[37.46,37.85,37.46,37.85]},{ x:'04/25/2024',y:[37.59,37.63,37.38,37.51]},{ x:'04/26/2024',y:[37.66,37.84,37.66,37.69]} ] }], 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());