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:[45.15,45.37,45.07,45.22]},{ x:'04/30/2024',y:[45.12,45.30,44.87,44.87]},{ x:'05/02/2024',y:[44.78,45.01,44.75,44.95]},{ x:'05/03/2024',y:[44.75,44.75,44.52,44.52]},{ x:'05/06/2024',y:[45.25,45.44,45.25,45.42]},{ x:'05/07/2024',y:[45.45,45.59,45.30,45.50]},{ x:'05/08/2024',y:[45.24,45.29,44.95,45.02]},{ x:'05/09/2024',y:[45.01,45.17,44.96,44.96]},{ x:'05/10/2024',y:[45.40,45.40,44.80,44.80]},{ x:'05/13/2024',y:[44.89,44.96,44.63,44.76]},{ x:'05/14/2024',y:[44.79,44.93,44.74,44.86]},{ x:'05/15/2024',y:[45.18,45.30,45.02,45.03]},{ x:'05/16/2024',y:[45.33,45.51,45.23,45.48]},{ x:'05/17/2024',y:[45.26,45.54,45.26,45.42]},{ x:'05/20/2024',y:[46.02,46.20,45.78,45.79]},{ x:'05/21/2024',y:[46.02,46.02,45.75,45.76]},{ x:'05/22/2024',y:[45.58,45.58,45.29,45.31]},{ x:'05/23/2024',y:[45.68,45.80,45.44,45.74]},{ x:'05/24/2024',y:[45.16,45.35,45.16,45.35]},{ x:'06/11/2024',y:[46.08,46.12,46.01,46.10]},{ x:'06/12/2024',y:[45.70,45.70,45.59,45.67]},{ x:'06/13/2024',y:[45.67,45.67,45.43,45.53]},{ x:'06/14/2024',y:[45.31,45.69,45.31,45.61]},{ x:'06/17/2024',y:[45.08,45.08,44.56,44.72]},{ x:'06/18/2024',y:[45.09,45.24,45.09,45.10]},{ x:'06/19/2024',y:[45.39,45.45,45.15,45.15]},{ x:'06/20/2024',y:[45.04,45.32,44.92,45.28]},{ x:'06/21/2024',y:[45.33,45.35,45.23,45.34]},{ x:'06/24/2024',y:[45.34,45.64,45.23,45.61]},{ x:'06/25/2024',y:[45.40,45.81,45.40,45.81]},{ x:'06/26/2024',y:[46.05,46.63,46.05,46.49]},{ x:'06/27/2024',y:[46.06,46.06,45.96,46.04]},{ x:'06/28/2024',y:[46.32,46.60,46.31,46.31]},{ x:'07/01/2024',y:[46.46,46.48,46.26,46.26]},{ x:'07/02/2024',y:[46.38,46.92,46.38,46.88]},{ x:'07/03/2024',y:[47.14,47.50,47.10,47.50]},{ x:'07/04/2024',y:[47.50,47.90,47.50,47.83]},{ x:'07/05/2024',y:[47.83,47.98,47.70,47.83]},{ x:'07/12/2024',y:[48.37,48.50,48.22,48.25]},{ x:'07/15/2024',y:[48.36,48.45,48.29,48.38]},{ x:'07/16/2024',y:[48.38,48.58,48.36,48.40]},{ x:'07/17/2024',y:[48.50,48.61,48.21,48.21]},{ x:'07/18/2024',y:[47.59,47.59,47.20,47.23]},{ x:'07/19/2024',y:[47.20,47.24,46.90,46.98]},{ x:'07/22/2024',y:[46.61,46.71,46.49,46.53]},{ x:'07/23/2024',y:[46.76,46.82,46.51,46.67]},{ x:'07/26/2024',y:[42.85,44.78,42.85,44.60]},{ x:'07/29/2024',y:[45.49,45.53,45.24,45.46]},{ x:'07/30/2024',y:[45.09,45.21,44.85,45.19]},{ x:'07/31/2024',y:[44.97,45.50,44.91,45.42]},{ x:'08/01/2024',y:[44.91,45.00,44.52,44.90]},{ x:'08/02/2024',y:[43.06,43.27,42.65,42.65]},{ x:'08/05/2024',y:[40.09,40.45,37.40,37.49]},{ x:'08/06/2024',y:[41.30,41.60,39.63,40.29]},{ x:'08/07/2024',y:[40.40,42.14,40.20,41.91]},{ x:'08/08/2024',y:[40.63,41.50,40.63,41.02]},{ x:'08/09/2024',y:[41.55,41.78,40.64,41.02]},{ x:'08/12/2024',y:[41.68,41.76,41.50,41.68]},{ x:'08/13/2024',y:[42.10,42.38,42.02,42.26]},{ x:'08/14/2024',y:[42.69,42.97,42.47,42.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00657 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());