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:'01/23/2024',y:[43.04,43.28,42.70,42.75]},{ x:'01/24/2024',y:[42.73,42.75,42.36,42.40]},{ x:'01/25/2024',y:[42.30,42.54,42.15,42.52]},{ x:'01/26/2024',y:[42.11,42.20,41.88,41.92]},{ x:'01/29/2024',y:[42.15,42.42,42.15,42.25]},{ x:'01/30/2024',y:[42.40,42.42,42.30,42.35]},{ x:'01/31/2024',y:[41.96,42.42,41.95,42.40]},{ x:'02/01/2024',y:[42.25,42.33,42.18,42.31]},{ x:'02/02/2024',y:[42.60,42.84,42.60,42.60]},{ x:'02/05/2024',y:[42.59,42.77,42.59,42.71]},{ x:'02/15/2024',y:[43.50,44.58,43.50,44.55]},{ x:'02/16/2024',y:[45.35,45.35,44.78,45.14]},{ x:'02/19/2024',y:[44.94,44.95,44.78,44.93]},{ x:'02/20/2024',y:[44.98,45.21,44.76,44.86]},{ x:'02/21/2024',y:[44.75,44.85,44.56,44.74]},{ x:'02/22/2024',y:[45.30,45.64,45.30,45.61]},{ x:'02/23/2024',y:[45.96,46.31,45.92,46.22]},{ x:'02/26/2024',y:[45.97,46.06,45.91,45.95]},{ x:'02/27/2024',y:[46.03,46.15,45.83,45.90]},{ x:'02/29/2024',y:[45.83,45.94,45.60,45.94]},{ x:'03/01/2024',y:[46.46,46.85,46.46,46.85]},{ x:'03/04/2024',y:[47.20,47.26,46.98,46.98]},{ x:'03/05/2024',y:[46.86,47.23,46.78,47.18]},{ x:'03/06/2024',y:[47.06,47.11,46.89,47.11]},{ x:'03/07/2024',y:[47.25,47.27,46.66,46.66]},{ x:'03/08/2024',y:[46.78,47.12,46.72,46.76]},{ x:'03/11/2024',y:[45.73,45.84,45.40,45.44]},{ x:'03/12/2024',y:[45.34,45.65,45.21,45.64]},{ x:'03/13/2024',y:[45.74,45.74,45.37,45.65]},{ x:'03/14/2024',y:[45.39,45.73,45.35,45.72]},{ x:'03/15/2024',y:[45.54,45.65,45.39,45.53]},{ x:'03/18/2024',y:[46.45,46.62,46.45,46.62]},{ x:'03/19/2024',y:[46.59,47.00,46.36,46.98]},{ x:'03/20/2024',y:[47.36,47.38,47.26,47.31]},{ x:'03/21/2024',y:[47.78,47.96,47.55,47.95]},{ x:'03/22/2024',y:[48.13,48.23,47.86,48.15]},{ x:'03/25/2024',y:[48.02,48.02,47.70,47.75]},{ x:'03/26/2024',y:[47.69,47.69,47.42,47.49]},{ x:'03/27/2024',y:[47.66,48.12,47.66,48.12]},{ x:'03/28/2024',y:[47.81,47.81,47.48,47.48]},{ x:'03/29/2024',y:[47.48,47.78,47.48,47.71]},{ x:'04/01/2024',y:[47.74,47.74,46.89,47.13]},{ x:'04/02/2024',y:[47.16,47.24,46.94,46.98]},{ x:'04/03/2024',y:[46.83,46.83,46.49,46.72]},{ x:'04/08/2024',y:[46.66,46.78,46.37,46.44]},{ x:'04/09/2024',y:[46.76,46.89,46.64,46.89]},{ x:'04/10/2024',y:[46.89,46.89,46.73,46.78]},{ x:'04/11/2024',y:[46.53,46.59,46.31,46.59]},{ x:'04/12/2024',y:[46.63,46.79,46.56,46.65]},{ x:'04/15/2024',y:[46.08,46.13,45.89,46.10]},{ x:'04/16/2024',y:[45.69,45.69,45.15,45.38]},{ x:'04/17/2024',y:[45.16,45.28,44.99,45.02]},{ x:'04/18/2024',y:[44.70,44.93,44.50,44.81]},{ x:'04/19/2024',y:[43.99,43.99,43.29,43.78]},{ x:'04/22/2024',y:[43.73,44.01,43.70,43.86]},{ x:'04/23/2024',y:[44.15,44.34,44.10,44.23]},{ x:'04/24/2024',y:[45.06,45.22,45.06,45.19]},{ x:'04/25/2024',y:[44.90,44.90,44.26,44.31]},{ x:'04/26/2024',y:[44.28,44.80,44.28,44.76]},{ x:'04/29/2024',y:[45.15,45.37,45.07,45.22]} ] }], 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());