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:[39.30,39.34,39.29,39.34]},{ x:'03/19/2024',y:[39.40,39.42,39.38,39.38]},{ x:'03/20/2024',y:[39.53,39.53,39.42,39.51]},{ x:'03/21/2024',y:[39.53,39.62,39.52,39.57]},{ x:'03/22/2024',y:[39.61,39.86,39.61,39.82]},{ x:'03/25/2024',y:[39.87,39.87,39.59,39.79]},{ x:'03/26/2024',y:[39.72,39.82,39.67,39.80]},{ x:'03/27/2024',y:[39.78,39.83,39.75,39.81]},{ x:'03/28/2024',y:[39.82,39.87,39.82,39.84]},{ x:'03/29/2024',y:[39.84,39.90,39.83,39.89]},{ x:'04/01/2024',y:[39.85,39.88,39.85,39.88]},{ x:'04/02/2024',y:[39.91,39.96,39.91,39.93]},{ x:'04/03/2024',y:[39.85,39.88,39.82,39.82]},{ x:'04/08/2024',y:[39.85,39.90,39.84,39.90]},{ x:'04/09/2024',y:[39.89,40.00,39.89,39.98]},{ x:'04/10/2024',y:[39.94,39.94,39.83,39.83]},{ x:'04/11/2024',y:[39.81,39.92,39.81,39.92]},{ x:'04/12/2024',y:[39.90,39.95,39.85,39.93]},{ x:'04/15/2024',y:[39.95,40.02,39.95,39.96]},{ x:'04/16/2024',y:[39.90,40.11,39.90,40.08]},{ x:'04/17/2024',y:[39.99,39.99,39.89,39.89]},{ x:'04/18/2024',y:[39.41,39.42,39.36,39.38]},{ x:'04/19/2024',y:[39.46,39.60,39.46,39.50]},{ x:'04/22/2024',y:[39.50,39.59,39.48,39.59]},{ x:'04/23/2024',y:[39.77,39.85,39.77,39.79]},{ x:'04/24/2024',y:[39.80,39.81,39.75,39.79]},{ x:'04/25/2024',y:[39.81,39.92,39.81,39.87]},{ x:'04/26/2024',y:[39.76,39.77,39.73,39.75]},{ x:'04/29/2024',y:[39.92,39.94,39.88,39.94]},{ x:'04/30/2024',y:[39.92,39.97,39.88,39.95]},{ x:'05/02/2024',y:[39.91,39.95,39.89,39.93]},{ x:'05/03/2024',y:[39.91,39.91,39.77,39.84]},{ x:'05/06/2024',y:[39.84,39.88,39.83,39.87]},{ x:'05/07/2024',y:[39.98,40.00,39.98,40.00]},{ x:'05/08/2024',y:[40.06,40.10,40.06,40.09]},{ x:'05/09/2024',y:[40.07,40.07,39.95,40.02]},{ x:'05/10/2024',y:[40.03,40.09,40.01,40.05]},{ x:'05/13/2024',y:[40.05,40.05,39.98,40.04]},{ x:'05/14/2024',y:[40.05,40.05,39.98,39.98]},{ x:'05/15/2024',y:[40.00,40.00,39.77,39.79]},{ x:'05/16/2024',y:[39.75,39.75,39.66,39.72]},{ x:'05/17/2024',y:[39.82,39.86,39.81,39.85]},{ x:'05/20/2024',y:[39.84,39.84,39.79,39.84]},{ x:'05/21/2024',y:[39.87,39.92,39.85,39.92]},{ x:'05/22/2024',y:[39.90,39.92,39.87,39.87]},{ x:'05/23/2024',y:[39.88,39.88,39.74,39.74]},{ x:'05/24/2024',y:[39.82,39.82,39.72,39.72]},{ x:'06/11/2024',y:[40.13,40.13,40.02,40.02]},{ x:'06/12/2024',y:[40.16,40.16,40.06,40.10]},{ x:'06/13/2024',y:[40.34,40.34,40.07,40.14]},{ x:'06/14/2024',y:[40.10,40.24,40.10,40.21]},{ x:'06/17/2024',y:[40.10,40.13,40.06,40.06]},{ x:'06/18/2024',y:[40.09,40.18,40.08,40.11]},{ x:'06/19/2024',y:[40.21,40.25,40.17,40.20]},{ x:'06/20/2024',y:[40.27,40.27,40.18,40.19]},{ x:'06/21/2024',y:[40.18,40.22,40.15,40.15]},{ x:'06/24/2024',y:[40.13,40.22,40.13,40.21]},{ x:'06/25/2024',y:[40.24,40.33,40.24,40.30]},{ x:'06/26/2024',y:[40.30,40.40,40.30,40.39]},{ x:'06/27/2024',y:[40.39,40.42,40.39,40.42]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00727b 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());