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:'03/18/2024',y:[34.60,34.60,34.54,34.56]},{ x:'03/19/2024',y:[34.64,34.71,34.64,34.67]},{ x:'03/20/2024',y:[34.71,34.90,34.71,34.90]},{ x:'03/21/2024',y:[34.90,34.94,34.87,34.91]},{ x:'03/22/2024',y:[35.00,35.10,34.99,35.09]},{ x:'03/25/2024',y:[35.19,35.28,35.09,35.12]},{ x:'03/26/2024',y:[35.09,35.17,35.00,35.14]},{ x:'03/27/2024',y:[35.15,35.26,35.15,35.25]},{ x:'03/28/2024',y:[35.30,35.32,35.27,35.27]},{ x:'03/29/2024',y:[35.27,35.35,35.27,35.32]},{ x:'04/01/2024',y:[35.32,35.32,35.27,35.29]},{ x:'04/02/2024',y:[35.07,35.16,35.07,35.14]},{ x:'04/03/2024',y:[35.05,35.07,34.99,34.99]},{ x:'04/08/2024',y:[34.99,34.99,34.93,34.94]},{ x:'04/09/2024',y:[34.91,34.95,34.87,34.93]},{ x:'04/10/2024',y:[34.98,34.98,34.92,34.94]},{ x:'04/11/2024',y:[34.64,34.74,34.64,34.73]},{ x:'04/12/2024',y:[34.73,34.74,34.66,34.73]},{ x:'04/15/2024',y:[34.74,34.90,34.74,34.85]},{ x:'04/16/2024',y:[34.84,34.96,34.84,34.94]},{ x:'04/17/2024',y:[34.78,34.78,34.67,34.68]},{ x:'04/18/2024',y:[34.61,34.69,34.61,34.63]},{ x:'04/19/2024',y:[34.66,35.01,34.65,34.85]},{ x:'04/22/2024',y:[34.75,34.75,34.63,34.73]},{ x:'04/23/2024',y:[34.73,34.87,34.73,34.85]},{ x:'04/24/2024',y:[34.83,34.83,34.68,34.77]},{ x:'04/25/2024',y:[34.77,34.79,34.75,34.75]},{ x:'04/26/2024',y:[34.66,34.66,34.55,34.61]},{ x:'04/29/2024',y:[34.64,34.75,34.64,34.70]},{ x:'04/30/2024',y:[34.78,34.81,34.74,34.80]},{ x:'05/02/2024',y:[34.80,34.86,34.77,34.83]},{ x:'05/03/2024',y:[34.83,34.83,34.72,34.72]},{ x:'05/06/2024',y:[34.74,34.92,34.74,34.92]},{ x:'05/07/2024',y:[34.90,35.05,34.90,35.05]},{ x:'05/08/2024',y:[35.12,35.12,35.07,35.08]},{ x:'05/09/2024',y:[35.01,35.01,34.97,34.97]},{ x:'05/10/2024',y:[35.10,35.13,35.09,35.11]},{ x:'05/13/2024',y:[34.94,35.04,34.94,35.03]},{ x:'05/14/2024',y:[35.03,35.05,35.02,35.04]},{ x:'05/15/2024',y:[35.08,35.08,34.93,34.94]},{ x:'05/16/2024',y:[35.03,35.16,35.03,35.08]},{ x:'05/17/2024',y:[35.08,35.16,35.08,35.15]},{ x:'05/20/2024',y:[35.05,35.06,35.02,35.04]},{ x:'05/21/2024',y:[35.03,35.04,35.00,35.04]},{ x:'05/22/2024',y:[35.10,35.12,35.07,35.08]},{ x:'05/23/2024',y:[35.08,35.09,35.01,35.01]},{ x:'05/24/2024',y:[34.95,34.95,34.91,34.91]},{ x:'06/11/2024',y:[35.21,35.22,35.17,35.20]},{ x:'06/12/2024',y:[35.32,35.34,35.30,35.31]},{ x:'06/13/2024',y:[35.47,35.48,35.45,35.47]},{ x:'06/14/2024',y:[35.69,35.75,35.69,35.72]},{ x:'06/17/2024',y:[35.72,35.78,35.72,35.76]},{ x:'06/18/2024',y:[35.75,35.76,35.69,35.73]},{ x:'06/19/2024',y:[35.77,35.82,35.77,35.82]},{ x:'06/20/2024',y:[35.79,35.79,35.72,35.72]},{ x:'06/21/2024',y:[35.68,35.70,35.68,35.69]},{ x:'06/24/2024',y:[35.69,35.76,35.69,35.75]},{ x:'06/25/2024',y:[35.80,35.85,35.80,35.83]},{ x:'06/26/2024',y:[35.87,35.92,35.82,35.90]},{ x:'06/27/2024',y:[35.80,35.80,35.71,35.77]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00695b 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());