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:'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]},{ x:'04/29/2024',y:[38.00,38.40,38.00,38.34]},{ x:'04/30/2024',y:[38.34,38.42,38.21,38.32]},{ x:'05/02/2024',y:[38.10,38.40,37.94,38.35]},{ x:'05/03/2024',y:[38.68,38.75,38.43,38.45]},{ x:'05/06/2024',y:[38.71,38.90,38.67,38.88]},{ x:'05/07/2024',y:[38.96,39.15,38.71,38.97]},{ x:'05/08/2024',y:[38.90,39.07,38.88,39.02]},{ x:'05/09/2024',y:[39.02,39.08,38.88,38.92]},{ x:'05/10/2024',y:[38.92,39.10,38.77,39.04]},{ x:'05/13/2024',y:[39.07,39.15,38.93,39.04]},{ x:'05/14/2024',y:[39.19,39.34,39.14,39.26]},{ x:'05/15/2024',y:[39.27,39.59,39.27,39.30]},{ x:'05/16/2024',y:[39.50,39.67,39.50,39.60]},{ x:'05/17/2024',y:[39.60,39.70,39.45,39.51]},{ x:'05/20/2024',y:[39.52,39.70,39.42,39.66]},{ x:'05/21/2024',y:[39.66,39.66,39.33,39.50]},{ x:'05/22/2024',y:[39.70,40.07,39.70,40.04]},{ x:'05/23/2024',y:[40.04,40.15,39.80,40.01]},{ x:'05/24/2024',y:[39.97,40.13,39.75,40.10]},{ x:'06/11/2024',y:[39.98,40.02,39.85,39.95]},{ x:'06/12/2024',y:[39.95,40.02,39.90,39.97]},{ x:'06/13/2024',y:[40.20,40.45,40.19,40.42]},{ x:'06/14/2024',y:[40.42,40.56,40.41,40.55]},{ x:'06/17/2024',y:[40.56,40.85,40.55,40.79]},{ x:'06/18/2024',y:[40.80,40.98,40.80,40.96]},{ x:'06/19/2024',y:[40.98,41.62,40.98,41.52]} ] }], 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());