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/19/2024',y:[37.91,37.91,37.80,37.85]},{ x:'03/20/2024',y:[37.91,38.05,37.91,38.04]},{ x:'03/21/2024',y:[38.65,38.98,38.60,38.98]},{ x:'03/22/2024',y:[39.10,39.31,39.10,39.31]},{ x:'03/25/2024',y:[39.22,39.22,38.96,39.01]},{ x:'03/26/2024',y:[38.92,39.10,38.92,39.09]},{ x:'03/27/2024',y:[38.98,39.05,38.98,39.00]},{ x:'03/28/2024',y:[39.07,39.36,39.07,39.35]},{ x:'03/29/2024',y:[39.35,39.35,39.27,39.32]},{ x:'04/01/2024',y:[39.40,39.57,39.40,39.49]},{ x:'04/02/2024',y:[39.11,39.63,39.11,39.55]},{ x:'04/03/2024',y:[39.80,39.80,39.31,39.32]},{ x:'04/08/2024',y:[39.32,39.39,39.32,39.34]},{ x:'04/09/2024',y:[39.34,39.40,39.34,39.39]},{ x:'04/10/2024',y:[39.58,39.74,39.58,39.73]},{ x:'04/11/2024',y:[39.08,39.20,39.02,39.20]},{ x:'04/12/2024',y:[39.61,39.91,39.61,39.85]},{ x:'04/15/2024',y:[39.13,39.51,39.13,39.17]},{ x:'04/16/2024',y:[38.57,38.70,38.54,38.60]},{ x:'04/17/2024',y:[38.51,38.60,38.51,38.54]},{ x:'04/18/2024',y:[38.30,38.30,38.03,38.05]},{ x:'04/19/2024',y:[37.73,37.73,36.96,37.16]},{ x:'04/22/2024',y:[37.16,37.16,37.05,37.06]},{ x:'04/23/2024',y:[37.24,37.24,37.10,37.13]},{ x:'04/24/2024',y:[37.66,37.98,37.66,37.98]},{ x:'04/25/2024',y:[38.00,38.00,37.80,37.81]},{ x:'04/26/2024',y:[38.02,38.10,37.99,38.09]},{ x:'04/29/2024',y:[38.30,38.50,38.30,38.47]},{ x:'04/30/2024',y:[38.61,38.64,38.55,38.55]},{ x:'05/02/2024',y:[37.96,37.96,37.74,37.85]},{ x:'05/03/2024',y:[38.15,38.23,38.10,38.10]},{ x:'05/06/2024',y:[38.31,38.52,38.31,38.45]},{ x:'05/07/2024',y:[38.71,38.97,38.71,38.97]},{ x:'05/08/2024',y:[38.97,39.01,38.92,38.94]},{ x:'05/09/2024',y:[38.99,39.11,38.92,38.92]},{ x:'05/10/2024',y:[38.99,39.22,38.99,39.20]},{ x:'05/13/2024',y:[39.20,39.25,39.17,39.21]},{ x:'05/14/2024',y:[39.30,39.51,39.30,39.51]},{ x:'05/15/2024',y:[39.58,39.77,39.58,39.70]},{ x:'05/16/2024',y:[40.19,40.50,40.19,40.36]},{ x:'05/17/2024',y:[40.28,40.32,40.23,40.23]},{ x:'05/20/2024',y:[39.86,40.15,39.86,40.15]},{ x:'05/21/2024',y:[40.23,40.38,40.23,40.33]},{ x:'05/22/2024',y:[40.33,40.44,40.33,40.43]},{ x:'05/23/2024',y:[40.50,40.80,40.50,40.75]},{ x:'05/24/2024',y:[40.57,40.57,40.17,40.18]},{ x:'06/11/2024',y:[41.04,41.05,41.00,41.03]},{ x:'06/12/2024',y:[41.21,41.34,41.21,41.30]},{ x:'06/13/2024',y:[42.25,42.77,42.25,42.71]},{ x:'06/14/2024',y:[42.60,42.72,42.60,42.70]},{ x:'06/17/2024',y:[43.00,43.00,42.77,42.80]},{ x:'06/18/2024',y:[43.12,43.52,43.12,43.50]},{ x:'06/19/2024',y:[43.70,43.80,43.70,43.75]},{ x:'06/20/2024',y:[44.00,44.00,43.70,43.93]},{ x:'06/21/2024',y:[43.36,43.36,43.01,43.01]},{ x:'06/24/2024',y:[43.01,43.01,42.62,42.82]},{ x:'06/25/2024',y:[42.30,42.51,42.20,42.51]},{ x:'06/26/2024',y:[42.74,42.74,42.68,42.74]},{ x:'06/27/2024',y:[42.74,42.75,42.60,42.65]},{ x:'06/28/2024',y:[42.92,42.95,42.80,42.83]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00861 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());