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/12/2024',y:[18.33,18.39,18.21,18.24]},{ x:'03/13/2024',y:[18.23,18.26,18.16,18.26]},{ x:'03/14/2024',y:[18.17,18.26,18.17,18.20]},{ x:'03/15/2024',y:[18.16,18.16,18.08,18.16]},{ x:'03/18/2024',y:[18.18,18.52,18.18,18.52]},{ x:'03/19/2024',y:[18.59,18.63,18.59,18.61]},{ x:'03/20/2024',y:[18.56,18.60,18.56,18.60]},{ x:'03/21/2024',y:[18.68,18.68,18.55,18.55]},{ x:'03/22/2024',y:[18.56,18.56,18.14,18.19]},{ x:'03/25/2024',y:[18.08,18.26,18.08,18.26]},{ x:'03/26/2024',y:[18.00,18.01,17.80,17.84]},{ x:'03/27/2024',y:[17.90,17.90,17.72,17.72]},{ x:'03/28/2024',y:[17.60,17.93,17.46,17.91]},{ x:'03/29/2024',y:[17.79,17.80,17.76,17.76]},{ x:'04/01/2024',y:[18.05,18.24,18.05,18.19]},{ x:'04/02/2024',y:[18.30,18.37,18.14,18.25]},{ x:'04/03/2024',y:[18.21,18.23,18.21,18.21]},{ x:'04/08/2024',y:[18.27,18.29,18.15,18.20]},{ x:'04/09/2024',y:[18.08,18.10,18.08,18.10]},{ x:'04/10/2024',y:[17.94,17.94,17.89,17.89]},{ x:'04/11/2024',y:[17.88,18.17,17.88,18.17]},{ x:'04/12/2024',y:[18.04,18.11,18.04,18.11]},{ x:'04/15/2024',y:[18.24,18.32,17.86,18.27]},{ x:'04/16/2024',y:[18.27,18.27,18.02,18.15]},{ x:'04/17/2024',y:[18.01,18.17,18.01,18.04]},{ x:'04/18/2024',y:[18.28,18.48,18.28,18.44]},{ x:'04/19/2024',y:[18.43,18.43,18.20,18.27]},{ x:'04/22/2024',y:[18.20,18.27,18.12,18.20]},{ x:'04/23/2024',y:[17.97,18.01,17.97,17.97]},{ x:'04/24/2024',y:[18.06,18.06,17.95,17.97]},{ x:'04/25/2024',y:[17.99,18.19,17.99,18.11]},{ x:'04/26/2024',y:[18.15,18.40,18.15,18.40]},{ x:'04/29/2024',y:[18.45,18.78,18.45,18.73]},{ x:'04/30/2024',y:[18.84,18.84,18.70,18.74]},{ x:'05/02/2024',y:[18.60,18.91,18.60,18.91]},{ x:'05/03/2024',y:[19.01,19.02,18.97,19.00]},{ x:'05/06/2024',y:[19.17,19.17,18.90,18.97]},{ x:'05/07/2024',y:[19.01,19.05,18.98,19.00]},{ x:'05/08/2024',y:[19.05,19.05,18.82,18.82]},{ x:'05/09/2024',y:[18.91,19.18,18.91,19.18]},{ x:'05/10/2024',y:[19.29,19.29,19.00,19.10]},{ x:'05/13/2024',y:[19.09,19.09,18.77,19.00]},{ x:'05/14/2024',y:[18.91,18.91,18.89,18.89]},{ x:'05/15/2024',y:[18.81,18.84,18.81,18.84]},{ x:'05/16/2024',y:[18.69,18.73,18.63,18.66]},{ x:'05/17/2024',y:[18.60,18.60,18.57,18.57]},{ x:'05/20/2024',y:[18.95,18.96,18.85,18.89]},{ x:'05/21/2024',y:[18.88,18.88,18.80,18.81]},{ x:'05/22/2024',y:[18.72,18.74,18.72,18.74]},{ x:'05/23/2024',y:[18.74,18.74,18.40,18.40]},{ x:'05/24/2024',y:[18.30,18.32,18.28,18.31]},{ x:'06/11/2024',y:[17.80,17.89,17.80,17.89]},{ x:'06/12/2024',y:[17.98,17.98,17.94,17.94]},{ x:'06/13/2024',y:[17.94,17.94,17.88,17.88]},{ x:'06/14/2024',y:[17.83,17.88,17.83,17.88]},{ x:'06/17/2024',y:[18.01,18.01,17.92,17.97]},{ x:'06/18/2024',y:[17.95,18.01,17.94,18.01]},{ x:'06/19/2024',y:[17.98,17.98,17.85,17.85]},{ x:'06/20/2024',y:[17.79,17.79,17.56,17.56]},{ x:'06/21/2024',y:[17.49,17.56,17.48,17.52]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00783 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());