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/24/2024',y:[35.07,35.07,35.07,35.07]},{ x:'04/25/2024',y:[35.02,35.02,34.90,34.90]},{ x:'04/26/2024',y:[34.79,34.79,34.73,34.79]},{ x:'04/29/2024',y:[34.97,34.97,34.94,34.94]},{ x:'04/30/2024',y:[35.08,35.09,35.08,35.09]},{ x:'05/02/2024',y:[34.86,35.08,34.86,35.08]},{ x:'05/03/2024',y:[35.15,35.15,35.15,35.15]},{ x:'05/06/2024',y:[35.39,35.43,35.39,35.40]},{ x:'05/07/2024',y:[35.54,35.67,35.54,35.60]},{ x:'05/08/2024',y:[35.76,35.76,35.70,35.74]},{ x:'05/09/2024',y:[35.61,35.61,35.61,35.61]},{ x:'05/10/2024',y:[35.70,35.73,35.70,35.73]},{ x:'05/13/2024',y:[35.62,35.62,35.62,35.62]},{ x:'05/14/2024',y:[35.62,35.63,35.62,35.62]},{ x:'05/15/2024',y:[35.60,35.60,35.58,35.58]},{ x:'05/16/2024',y:[35.84,35.86,35.84,35.85]},{ x:'05/17/2024',y:[35.97,35.97,35.97,35.97]},{ x:'05/20/2024',y:[35.85,35.85,35.85,35.85]},{ x:'05/21/2024',y:[35.86,35.86,35.83,35.86]},{ x:'05/22/2024',y:[35.93,35.93,35.93,35.93]},{ x:'05/23/2024',y:[35.93,35.93,35.87,35.87]},{ x:'05/24/2024',y:[35.74,35.75,35.74,35.75]},{ x:'06/11/2024',y:[35.97,35.97,35.97,35.97]},{ x:'06/12/2024',y:[36.06,36.06,36.06,36.06]},{ x:'06/13/2024',y:[36.28,36.31,36.25,36.26]},{ x:'06/14/2024',y:[36.54,36.56,36.54,36.56]},{ x:'06/17/2024',y:[36.45,36.45,36.41,36.41]},{ x:'06/18/2024',y:[36.26,36.30,36.25,36.25]},{ x:'06/19/2024',y:[36.38,36.44,36.38,36.44]},{ x:'06/20/2024',y:[36.37,36.38,36.35,36.35]},{ x:'06/21/2024',y:[36.27,36.27,36.20,36.20]},{ x:'06/24/2024',y:[36.33,36.34,36.25,36.31]},{ x:'06/25/2024',y:[36.45,36.47,36.45,36.46]},{ x:'06/26/2024',y:[36.44,36.51,36.42,36.48]},{ x:'06/27/2024',y:[36.21,36.23,36.21,36.21]},{ x:'06/28/2024',y:[36.24,36.26,36.24,36.26]},{ x:'07/01/2024',y:[35.93,35.93,35.93,35.93]},{ x:'07/02/2024',y:[35.85,35.96,35.85,35.96]},{ x:'07/03/2024',y:[36.27,36.27,36.25,36.25]},{ x:'07/04/2024',y:[36.42,36.47,36.42,36.42]},{ x:'07/05/2024',y:[36.33,36.34,36.32,36.34]},{ x:'07/12/2024',y:[36.86,36.92,36.86,36.92]},{ x:'07/15/2024',y:[36.95,37.00,36.94,36.97]},{ x:'07/16/2024',y:[36.50,36.99,36.50,36.60]},{ x:'07/17/2024',y:[36.81,36.81,36.80,36.80]},{ x:'07/18/2024',y:[36.78,36.79,36.77,36.79]},{ x:'07/19/2024',y:[36.79,36.79,36.79,36.79]},{ x:'07/22/2024',y:[36.73,36.87,36.72,36.85]},{ x:'07/23/2024',y:[36.72,36.72,36.72,36.72]},{ x:'07/26/2024',y:[36.55,36.65,36.55,36.60]},{ x:'07/29/2024',y:[36.81,36.92,36.81,36.86]},{ x:'07/30/2024',y:[36.93,36.93,36.86,36.88]},{ x:'07/31/2024',y:[36.97,37.00,36.95,36.95]},{ x:'08/01/2024',y:[37.00,37.17,37.00,37.11]},{ x:'08/02/2024',y:[37.16,37.38,37.16,37.33]},{ x:'08/05/2024',y:[37.50,37.53,37.50,37.53]},{ x:'08/06/2024',y:[37.41,37.41,37.17,37.19]},{ x:'08/07/2024',y:[37.05,37.06,37.00,37.00]},{ x:'08/08/2024',y:[36.75,36.75,36.75,36.75]},{ x:'08/09/2024',y:[36.48,36.48,36.48,36.48]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00785b 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());