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/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]},{ x:'07/04/2024',y:[42.55,42.59,42.30,42.59]},{ x:'07/05/2024',y:[42.34,42.46,42.30,42.46]},{ x:'07/12/2024',y:[42.99,43.35,42.99,43.16]},{ x:'07/15/2024',y:[43.68,43.68,43.30,43.30]},{ x:'07/16/2024',y:[43.57,43.96,43.57,43.88]},{ x:'07/17/2024',y:[43.97,44.00,43.66,43.68]},{ x:'07/18/2024',y:[42.00,42.02,41.48,41.51]},{ x:'07/19/2024',y:[41.24,41.46,41.13,41.13]},{ x:'07/22/2024',y:[40.41,40.67,40.20,40.35]},{ x:'07/23/2024',y:[41.27,41.27,41.02,41.04]},{ x:'07/26/2024',y:[39.00,39.12,38.57,39.12]},{ x:'07/29/2024',y:[39.98,39.98,39.66,39.70]},{ x:'07/30/2024',y:[39.70,39.70,39.10,39.39]},{ x:'07/31/2024',y:[39.07,39.09,38.83,39.04]},{ x:'08/01/2024',y:[40.10,40.22,39.98,40.12]},{ x:'08/02/2024',y:[38.59,38.59,37.75,37.77]},{ x:'08/05/2024',y:[36.39,36.39,34.48,34.48]},{ x:'08/06/2024',y:[35.80,36.61,35.80,36.28]},{ x:'08/07/2024',y:[36.29,37.19,36.29,37.11]},{ x:'08/08/2024',y:[36.04,36.62,36.00,36.33]},{ x:'08/09/2024',y:[36.74,37.07,36.65,36.69]},{ x:'08/12/2024',y:[36.66,37.11,36.62,37.03]},{ x:'08/13/2024',y:[37.48,37.48,37.25,37.27]},{ x:'08/14/2024',y:[37.65,38.00,37.65,37.76]},{ x:'08/15/2024',y:[37.76,37.90,37.69,37.84]} ] }], 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());