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/22/2024',y:[38.97,39.23,38.84,39.19]},{ x:'03/25/2024',y:[38.96,39.07,38.67,38.96]},{ x:'03/26/2024',y:[38.52,38.76,38.51,38.60]},{ x:'03/27/2024',y:[38.60,38.65,38.42,38.48]},{ x:'03/28/2024',y:[38.50,38.50,38.37,38.50]},{ x:'03/29/2024',y:[38.50,38.50,38.32,38.45]},{ x:'04/01/2024',y:[38.45,38.89,38.42,38.43]},{ x:'04/02/2024',y:[38.41,38.60,38.41,38.48]},{ x:'04/03/2024',y:[38.46,38.75,38.17,38.17]},{ x:'04/08/2024',y:[38.17,38.35,38.03,38.06]},{ x:'04/09/2024',y:[38.40,38.66,38.32,38.66]},{ x:'04/10/2024',y:[38.75,38.94,38.73,38.93]},{ x:'04/11/2024',y:[38.47,38.51,38.34,38.51]},{ x:'04/12/2024',y:[38.71,38.96,38.70,38.81]},{ x:'04/15/2024',y:[38.45,38.48,38.12,38.20]},{ x:'04/16/2024',y:[38.00,38.00,37.63,37.76]},{ x:'04/17/2024',y:[37.67,37.97,37.66,37.89]},{ x:'04/18/2024',y:[37.39,37.60,37.12,37.24]},{ x:'04/19/2024',y:[36.56,36.56,35.79,36.02]},{ x:'04/22/2024',y:[35.61,35.78,35.59,35.67]},{ x:'04/23/2024',y:[35.76,35.90,35.72,35.74]},{ x:'04/24/2024',y:[36.47,36.77,36.47,36.76]},{ x:'04/25/2024',y:[36.91,36.93,36.52,36.52]},{ x:'04/26/2024',y:[36.52,36.85,36.52,36.82]},{ x:'04/29/2024',y:[37.00,37.50,37.00,37.42]},{ x:'04/30/2024',y:[37.42,37.50,37.42,37.47]},{ x:'05/02/2024',y:[37.03,37.03,36.65,36.97]},{ x:'05/03/2024',y:[37.38,37.38,37.09,37.09]},{ x:'05/06/2024',y:[37.28,37.59,37.28,37.56]},{ x:'05/07/2024',y:[37.88,37.97,37.77,37.97]},{ x:'05/08/2024',y:[38.04,38.08,37.97,38.00]},{ x:'05/09/2024',y:[37.98,37.99,37.81,37.90]},{ x:'05/10/2024',y:[37.95,38.00,37.75,37.82]},{ x:'05/13/2024',y:[37.92,38.10,37.92,38.01]},{ x:'05/14/2024',y:[37.76,38.04,37.72,37.94]},{ x:'05/15/2024',y:[38.22,38.32,38.19,38.23]},{ x:'05/16/2024',y:[38.73,39.06,38.73,38.96]},{ x:'05/17/2024',y:[38.61,39.04,38.51,38.84]},{ x:'05/20/2024',y:[38.84,39.00,38.39,38.89]},{ x:'05/21/2024',y:[39.19,39.34,39.17,39.21]},{ x:'05/22/2024',y:[39.21,39.32,39.06,39.23]},{ x:'05/23/2024',y:[39.31,39.71,39.28,39.64]},{ x:'05/24/2024',y:[39.62,39.62,39.33,39.37]},{ x:'06/11/2024',y:[40.12,40.48,40.12,40.47]},{ x:'06/12/2024',y:[40.37,40.50,40.24,40.46]},{ x:'06/13/2024',y:[41.02,41.47,41.02,41.36]},{ x:'06/14/2024',y:[41.36,41.48,41.16,41.44]},{ x:'06/17/2024',y:[41.33,41.33,40.96,41.24]},{ x:'06/18/2024',y:[41.57,42.07,41.57,41.85]},{ x:'06/19/2024',y:[42.23,42.42,42.23,42.33]},{ x:'06/20/2024',y:[42.50,42.51,42.24,42.50]},{ x:'06/21/2024',y:[42.00,42.00,41.62,41.66]},{ x:'06/24/2024',y:[41.48,41.64,41.37,41.42]},{ x:'06/25/2024',y:[40.72,40.95,40.66,40.91]},{ x:'06/26/2024',y:[41.06,41.44,41.06,41.36]},{ x:'06/27/2024',y:[41.29,41.94,41.05,41.14]},{ x:'06/28/2024',y:[41.30,41.42,41.10,41.10]},{ x:'07/01/2024',y:[41.52,41.60,41.35,41.60]},{ x:'07/02/2024',y:[41.23,41.50,41.22,41.48]},{ x:'07/03/2024',y:[42.12,42.33,41.82,42.33]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00876 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());