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/27/2024',y:[16.73,16.73,16.72,16.72]},{ x:'03/28/2024',y:[17.11,17.15,17.08,17.08]},{ x:'03/29/2024',y:[17.07,17.11,17.06,17.08]},{ x:'04/01/2024',y:[17.23,17.23,17.17,17.20]},{ x:'04/02/2024',y:[17.20,17.20,17.16,17.17]},{ x:'04/03/2024',y:[16.98,16.98,16.90,16.92]},{ x:'04/08/2024',y:[16.91,16.91,16.80,16.82]},{ x:'04/09/2024',y:[16.85,16.91,16.84,16.86]},{ x:'04/10/2024',y:[17.27,17.27,17.17,17.18]},{ x:'04/11/2024',y:[17.09,17.09,16.92,16.95]},{ x:'04/12/2024',y:[16.90,16.94,16.86,16.89]},{ x:'04/15/2024',y:[16.82,16.82,16.64,16.73]},{ x:'04/16/2024',y:[16.30,16.32,16.06,16.19]},{ x:'04/17/2024',y:[16.13,16.13,15.98,16.05]},{ x:'04/18/2024',y:[16.06,16.09,16.05,16.09]},{ x:'04/19/2024',y:[16.00,16.01,15.96,15.98]},{ x:'04/22/2024',y:[16.00,16.16,16.00,16.07]},{ x:'04/23/2024',y:[16.19,16.20,16.14,16.15]},{ x:'04/24/2024',y:[16.32,16.32,16.26,16.29]},{ x:'04/25/2024',y:[16.28,16.28,16.19,16.19]},{ x:'04/26/2024',y:[16.05,16.11,16.05,16.11]},{ x:'04/29/2024',y:[16.28,16.34,16.28,16.33]},{ x:'04/30/2024',y:[16.50,16.50,16.47,16.48]},{ x:'05/02/2024',y:[16.48,16.48,16.35,16.40]},{ x:'05/03/2024',y:[16.63,16.63,16.56,16.56]},{ x:'05/06/2024',y:[17.05,17.05,16.97,17.01]},{ x:'05/07/2024',y:[17.10,17.17,17.09,17.16]},{ x:'05/08/2024',y:[17.20,17.24,17.20,17.22]},{ x:'05/09/2024',y:[17.16,17.16,17.00,17.00]},{ x:'05/10/2024',y:[17.30,17.30,17.24,17.24]},{ x:'05/13/2024',y:[17.28,17.28,17.19,17.20]},{ x:'05/14/2024',y:[17.21,17.25,17.18,17.25]},{ x:'05/15/2024',y:[17.57,17.57,17.50,17.51]},{ x:'05/16/2024',y:[17.60,17.60,17.51,17.55]},{ x:'05/17/2024',y:[17.55,17.55,17.49,17.55]},{ x:'05/20/2024',y:[17.47,17.47,17.42,17.42]},{ x:'05/21/2024',y:[17.42,17.42,17.36,17.36]},{ x:'05/22/2024',y:[17.35,17.40,17.34,17.40]},{ x:'05/23/2024',y:[17.89,18.03,17.87,17.95]},{ x:'05/24/2024',y:[17.92,17.92,17.72,17.72]},{ x:'06/11/2024',y:[18.40,18.40,18.09,18.09]},{ x:'06/12/2024',y:[18.18,18.19,17.99,18.07]},{ x:'06/13/2024',y:[18.20,18.23,18.17,18.18]},{ x:'06/14/2024',y:[18.04,18.04,17.92,17.95]},{ x:'06/17/2024',y:[17.82,17.82,17.50,17.58]},{ x:'06/18/2024',y:[17.55,17.55,17.33,17.33]},{ x:'06/19/2024',y:[17.35,17.36,17.33,17.34]},{ x:'06/20/2024',y:[17.34,17.34,17.30,17.34]},{ x:'06/21/2024',y:[17.21,17.21,17.06,17.15]},{ x:'06/24/2024',y:[17.15,17.20,17.00,17.07]},{ x:'06/25/2024',y:[17.11,17.18,17.09,17.18]},{ x:'06/26/2024',y:[17.10,17.27,17.02,17.03]},{ x:'06/27/2024',y:[17.00,17.00,16.83,16.83]},{ x:'06/28/2024',y:[16.83,16.93,16.83,16.89]},{ x:'07/01/2024',y:[16.60,16.60,16.50,16.54]},{ x:'07/02/2024',y:[16.48,16.48,16.37,16.45]},{ x:'07/03/2024',y:[16.45,16.48,16.36,16.47]},{ x:'07/04/2024',y:[16.66,16.76,16.66,16.72]},{ x:'07/05/2024',y:[16.72,16.79,16.72,16.79]},{ x:'07/12/2024',y:[17.30,17.43,17.30,17.43]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00899 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());