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:'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]},{ x:'07/01/2024',y:[42.95,43.01,42.95,43.00]},{ x:'07/02/2024',y:[43.07,43.36,43.07,43.36]},{ x:'07/03/2024',y:[43.50,44.07,43.45,44.07]},{ x:'07/04/2024',y:[44.07,44.38,44.07,44.35]},{ x:'07/05/2024',y:[44.37,44.56,44.20,44.56]},{ x:'07/12/2024',y:[44.70,44.80,44.59,44.61]},{ x:'07/15/2024',y:[44.75,45.00,44.75,44.86]},{ x:'07/16/2024',y:[45.40,45.40,45.17,45.32]},{ x:'07/17/2024',y:[45.34,45.34,45.18,45.18]},{ x:'07/18/2024',y:[43.87,43.87,43.50,43.60]},{ x:'07/19/2024',y:[43.60,43.60,43.46,43.46]},{ x:'07/22/2024',y:[43.09,43.09,42.72,42.88]},{ x:'07/23/2024',y:[43.07,43.21,43.07,43.21]},{ x:'07/26/2024',y:[41.71,41.79,41.64,41.79]},{ x:'07/29/2024',y:[42.03,42.20,42.03,42.15]},{ x:'07/30/2024',y:[42.13,42.13,41.63,41.83]},{ x:'07/31/2024',y:[41.65,41.76,41.63,41.71]},{ x:'08/01/2024',y:[42.91,43.07,42.90,43.07]},{ x:'08/02/2024',y:[41.82,41.82,41.16,41.20]},{ x:'08/05/2024',y:[39.76,39.76,38.66,38.66]},{ x:'08/06/2024',y:[39.53,40.03,39.50,39.94]},{ x:'08/07/2024',y:[39.74,40.44,39.74,40.44]},{ x:'08/08/2024',y:[39.30,39.67,39.10,39.48]},{ x:'08/09/2024',y:[40.39,40.45,40.24,40.26]},{ x:'08/12/2024',y:[40.32,40.65,40.32,40.59]},{ x:'08/13/2024',y:[40.82,40.82,40.62,40.70]},{ x:'08/14/2024',y:[41.65,41.65,41.31,41.32]} ] }], 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());