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/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]},{ x:'06/24/2024',y:[17.49,17.49,17.21,17.35]},{ x:'06/25/2024',y:[17.20,17.22,17.10,17.19]},{ x:'06/26/2024',y:[17.16,17.19,17.05,17.19]},{ x:'06/27/2024',y:[17.32,17.42,17.15,17.15]},{ x:'06/28/2024',y:[17.05,17.27,17.04,17.22]},{ x:'07/01/2024',y:[17.11,17.21,17.05,17.21]},{ x:'07/02/2024',y:[17.31,17.32,17.13,17.13]},{ x:'07/03/2024',y:[17.24,17.24,17.04,17.14]},{ x:'07/04/2024',y:[17.01,17.01,16.83,16.83]},{ x:'07/05/2024',y:[16.75,16.75,16.60,16.67]},{ x:'07/12/2024',y:[17.10,17.10,17.04,17.06]},{ x:'07/15/2024',y:[17.06,17.06,16.94,17.03]},{ x:'07/16/2024',y:[17.01,17.01,16.94,16.99]},{ x:'07/17/2024',y:[16.96,16.96,16.92,16.94]},{ x:'07/18/2024',y:[16.91,16.91,16.77,16.82]},{ x:'07/19/2024',y:[17.00,17.05,17.00,17.04]},{ x:'07/22/2024',y:[17.05,17.05,16.92,17.01]},{ x:'07/23/2024',y:[16.88,16.88,16.69,16.69]},{ x:'07/26/2024',y:[16.44,16.57,16.33,16.57]},{ x:'07/29/2024',y:[16.54,16.54,16.51,16.53]},{ x:'07/30/2024',y:[16.42,16.44,16.37,16.37]},{ x:'07/31/2024',y:[16.50,17.09,16.50,17.09]},{ x:'08/01/2024',y:[17.19,17.19,16.96,16.98]},{ x:'08/02/2024',y:[16.96,17.04,16.96,16.98]},{ x:'08/05/2024',y:[16.78,17.10,16.75,16.98]},{ x:'08/06/2024',y:[16.80,16.88,16.73,16.79]},{ x:'08/07/2024',y:[16.79,16.79,16.71,16.79]},{ x:'08/08/2024',y:[16.58,16.83,16.58,16.80]},{ x:'08/09/2024',y:[16.71,16.71,16.61,16.61]},{ x:'08/12/2024',y:[16.52,16.55,16.48,16.54]},{ x:'08/13/2024',y:[16.50,16.50,16.46,16.46]},{ x:'08/14/2024',y:[16.60,16.60,16.42,16.45]},{ x:'08/15/2024',y:[16.40,16.55,16.40,16.55]} ] }], 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());