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/25/2024',y:[48.93,48.93,48.45,48.50]},{ x:'04/26/2024',y:[48.49,49.02,48.42,48.94]},{ x:'04/29/2024',y:[49.29,49.70,49.29,49.55]},{ x:'04/30/2024',y:[49.50,49.55,49.15,49.15]},{ x:'05/02/2024',y:[49.13,49.32,49.07,49.27]},{ x:'05/03/2024',y:[49.00,49.00,48.77,48.77]},{ x:'05/06/2024',y:[49.42,49.68,49.42,49.66]},{ x:'05/07/2024',y:[49.69,49.91,49.58,49.80]},{ x:'05/08/2024',y:[49.58,49.58,49.15,49.27]},{ x:'05/09/2024',y:[49.28,49.45,49.16,49.16]},{ x:'05/10/2024',y:[49.72,49.72,49.06,49.06]},{ x:'05/13/2024',y:[49.05,49.14,48.83,48.99]},{ x:'05/14/2024',y:[49.18,49.18,48.95,49.14]},{ x:'05/15/2024',y:[49.49,49.60,49.33,49.33]},{ x:'05/16/2024',y:[49.55,49.86,49.55,49.83]},{ x:'05/17/2024',y:[49.64,49.90,49.50,49.50]},{ x:'05/20/2024',y:[50.30,50.50,50.05,50.05]},{ x:'05/21/2024',y:[50.10,50.35,50.10,50.10]},{ x:'05/22/2024',y:[49.60,49.84,49.60,49.67]},{ x:'05/23/2024',y:[49.72,50.25,49.72,50.10]},{ x:'05/24/2024',y:[49.72,49.72,49.51,49.66]},{ x:'06/11/2024',y:[50.25,50.35,50.15,50.25]},{ x:'06/12/2024',y:[49.96,49.96,49.79,49.95]},{ x:'06/13/2024',y:[49.95,49.96,49.66,49.82]},{ x:'06/14/2024',y:[49.67,50.10,49.59,49.91]},{ x:'06/17/2024',y:[49.29,49.29,48.75,48.94]},{ x:'06/18/2024',y:[49.21,49.41,49.20,49.22]},{ x:'06/19/2024',y:[49.60,49.67,49.33,49.35]},{ x:'06/20/2024',y:[49.22,49.45,49.12,49.45]},{ x:'06/21/2024',y:[49.47,49.60,49.35,49.45]},{ x:'06/24/2024',y:[49.50,49.76,49.33,49.74]},{ x:'06/25/2024',y:[49.73,50.10,49.60,50.05]},{ x:'06/26/2024',y:[50.35,51.00,50.35,50.80]},{ x:'06/27/2024',y:[50.35,50.35,50.20,50.25]},{ x:'06/28/2024',y:[50.60,50.90,50.60,50.60]},{ x:'07/01/2024',y:[50.85,50.85,50.55,50.55]},{ x:'07/02/2024',y:[50.65,51.30,50.65,51.15]},{ x:'07/03/2024',y:[51.45,51.90,51.45,51.90]},{ x:'07/04/2024',y:[51.95,52.35,51.90,52.30]},{ x:'07/05/2024',y:[52.35,52.50,52.15,52.20]},{ x:'07/12/2024',y:[52.95,53.05,52.70,52.70]},{ x:'07/15/2024',y:[52.70,52.85,52.70,52.75]},{ x:'07/16/2024',y:[52.95,53.15,52.90,52.95]},{ x:'07/17/2024',y:[53.00,53.15,52.65,52.65]},{ x:'07/18/2024',y:[51.80,51.85,51.60,51.60]},{ x:'07/19/2024',y:[51.60,51.60,51.30,51.35]},{ x:'07/22/2024',y:[51.00,51.15,50.75,50.80]},{ x:'07/23/2024',y:[51.00,51.10,50.80,50.90]},{ x:'07/26/2024',y:[48.76,49.00,48.60,48.76]},{ x:'07/29/2024',y:[49.72,49.82,49.38,49.66]},{ x:'07/30/2024',y:[49.31,49.36,48.92,49.32]},{ x:'07/31/2024',y:[49.27,49.71,49.08,49.62]},{ x:'08/01/2024',y:[49.15,49.15,48.65,49.08]},{ x:'08/02/2024',y:[46.99,47.25,46.60,46.60]},{ x:'08/05/2024',y:[43.77,44.25,40.94,41.01]},{ x:'08/06/2024',y:[44.72,45.10,42.88,43.74]},{ x:'08/07/2024',y:[44.28,45.80,43.70,45.62]},{ x:'08/08/2024',y:[44.24,45.30,44.12,44.64]},{ x:'08/09/2024',y:[45.29,45.53,44.17,44.70]},{ x:'08/12/2024',y:[45.04,45.35,45.01,45.31]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00661 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());