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/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]},{ x:'07/15/2024',y:[17.50,18.20,17.50,17.87]},{ x:'07/16/2024',y:[17.31,17.31,17.02,17.04]},{ x:'07/17/2024',y:[17.15,17.30,17.12,17.13]},{ x:'07/18/2024',y:[17.13,17.13,16.94,17.00]},{ x:'07/19/2024',y:[16.83,17.00,16.83,16.89]},{ x:'07/22/2024',y:[16.95,17.05,16.90,17.05]},{ x:'07/23/2024',y:[17.10,17.11,17.03,17.04]},{ x:'07/26/2024',y:[16.85,17.00,16.85,16.96]},{ x:'07/29/2024',y:[17.13,17.24,17.10,17.10]},{ x:'07/30/2024',y:[17.07,17.07,16.91,16.99]},{ x:'07/31/2024',y:[16.95,16.95,16.85,16.88]},{ x:'08/01/2024',y:[17.04,17.11,17.02,17.06]},{ x:'08/02/2024',y:[17.06,17.06,16.85,16.88]},{ x:'08/05/2024',y:[16.66,16.66,16.16,16.23]},{ x:'08/06/2024',y:[16.35,16.50,16.32,16.35]},{ x:'08/07/2024',y:[16.36,16.48,16.36,16.46]},{ x:'08/08/2024',y:[16.50,16.50,16.35,16.35]},{ x:'08/09/2024',y:[16.85,16.85,16.37,16.39]} ] }], 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());