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/29/2024',y:[13.85,13.94,13.85,13.93]},{ x:'04/30/2024',y:[14.03,14.05,14.02,14.02]},{ x:'05/02/2024',y:[14.02,14.06,13.96,14.01]},{ x:'05/03/2024',y:[14.05,14.07,14.05,14.05]},{ x:'05/06/2024',y:[14.21,14.34,14.21,14.28]},{ x:'05/07/2024',y:[14.29,14.31,14.28,14.30]},{ x:'05/08/2024',y:[14.42,14.44,14.41,14.43]},{ x:'05/09/2024',y:[14.44,14.44,14.41,14.41]},{ x:'05/10/2024',y:[14.47,14.55,14.47,14.53]},{ x:'05/13/2024',y:[14.55,14.55,14.52,14.53]},{ x:'05/14/2024',y:[14.53,14.53,14.50,14.50]},{ x:'05/15/2024',y:[14.60,14.66,14.60,14.62]},{ x:'05/16/2024',y:[14.69,14.75,14.69,14.71]},{ x:'05/17/2024',y:[14.71,14.85,14.71,14.79]},{ x:'05/20/2024',y:[14.80,14.80,14.77,14.79]},{ x:'05/21/2024',y:[14.74,14.74,14.71,14.73]},{ x:'05/22/2024',y:[14.80,14.82,14.80,14.82]},{ x:'05/23/2024',y:[15.01,15.16,15.01,15.14]},{ x:'05/24/2024',y:[15.13,15.13,14.90,14.94]},{ x:'06/11/2024',y:[15.49,15.49,15.31,15.34]},{ x:'06/12/2024',y:[15.34,15.38,15.34,15.36]},{ x:'06/13/2024',y:[15.50,15.55,15.50,15.54]},{ x:'06/14/2024',y:[15.50,15.50,15.31,15.41]},{ x:'06/17/2024',y:[15.18,15.18,15.11,15.13]},{ x:'06/18/2024',y:[15.05,15.05,14.96,14.96]},{ x:'06/19/2024',y:[14.96,15.12,14.96,15.10]},{ x:'06/20/2024',y:[15.10,15.13,15.10,15.12]},{ x:'06/21/2024',y:[15.00,15.09,14.97,15.04]},{ x:'06/24/2024',y:[15.06,15.06,14.93,14.97]},{ x:'06/25/2024',y:[14.99,15.04,14.96,15.04]},{ x:'06/26/2024',y:[15.04,15.04,15.02,15.03]},{ x:'06/27/2024',y:[14.99,14.99,14.86,14.88]},{ x:'06/28/2024',y:[14.88,14.88,14.81,14.83]},{ x:'07/01/2024',y:[14.62,14.63,14.61,14.62]},{ x:'07/02/2024',y:[14.62,14.62,14.58,14.61]},{ x:'07/03/2024',y:[14.55,14.60,14.51,14.60]},{ x:'07/04/2024',y:[14.67,14.90,14.67,14.86]},{ x:'07/05/2024',y:[14.88,14.88,14.86,14.87]},{ x:'07/12/2024',y:[15.41,15.41,15.38,15.40]},{ x:'07/15/2024',y:[15.40,15.48,15.40,15.48]},{ x:'07/16/2024',y:[15.25,15.25,15.02,15.02]},{ x:'07/17/2024',y:[15.09,15.09,15.02,15.03]},{ x:'07/18/2024',y:[15.03,15.03,14.90,14.90]},{ x:'07/19/2024',y:[14.90,14.94,14.89,14.93]},{ x:'07/22/2024',y:[14.96,14.96,14.86,14.88]},{ x:'07/23/2024',y:[14.95,14.95,14.83,14.86]},{ x:'07/26/2024',y:[14.91,14.97,14.89,14.96]},{ x:'07/29/2024',y:[15.08,15.11,15.07,15.10]},{ x:'07/30/2024',y:[15.10,15.10,14.93,15.03]},{ x:'07/31/2024',y:[15.04,15.10,15.03,15.07]},{ x:'08/01/2024',y:[15.11,15.24,15.11,15.23]},{ x:'08/02/2024',y:[14.90,14.96,14.84,14.86]},{ x:'08/05/2024',y:[14.75,14.75,14.25,14.25]},{ x:'08/06/2024',y:[14.25,14.28,14.10,14.10]},{ x:'08/07/2024',y:[14.41,14.60,14.40,14.56]},{ x:'08/08/2024',y:[14.42,14.47,14.36,14.41]},{ x:'08/09/2024',y:[14.45,14.45,14.32,14.34]},{ x:'08/12/2024',y:[14.34,14.46,14.34,14.45]},{ x:'08/13/2024',y:[14.45,14.49,14.45,14.48]},{ x:'08/14/2024',y:[14.60,14.78,14.60,14.77]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00920 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());