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:[21.20,21.20,21.12,21.13]},{ x:'05/02/2024',y:[21.06,21.06,20.84,20.97]},{ x:'05/03/2024',y:[21.26,21.26,21.11,21.12]},{ x:'05/06/2024',y:[21.17,21.30,21.17,21.26]},{ x:'05/07/2024',y:[21.32,21.51,21.32,21.50]},{ x:'05/08/2024',y:[21.51,21.56,21.51,21.52]},{ x:'05/09/2024',y:[21.50,21.50,21.46,21.46]},{ x:'05/10/2024',y:[21.50,21.64,21.50,21.62]},{ x:'05/13/2024',y:[21.63,21.63,21.55,21.61]},{ x:'05/14/2024',y:[21.61,21.61,21.56,21.58]},{ x:'05/15/2024',y:[21.62,21.66,21.61,21.62]},{ x:'05/16/2024',y:[21.62,21.76,21.62,21.68]},{ x:'05/17/2024',y:[21.52,21.73,21.52,21.69]},{ x:'05/20/2024',y:[21.70,21.83,21.68,21.81]},{ x:'05/21/2024',y:[21.82,21.84,21.80,21.80]},{ x:'05/22/2024',y:[21.80,21.87,21.80,21.85]},{ x:'05/23/2024',y:[21.85,21.87,21.78,21.85]},{ x:'05/24/2024',y:[21.64,21.64,21.56,21.59]},{ x:'06/11/2024',y:[21.91,21.91,21.87,21.90]},{ x:'06/12/2024',y:[22.13,22.17,22.13,22.17]},{ x:'06/13/2024',y:[22.25,22.34,22.25,22.34]},{ x:'06/14/2024',y:[22.35,22.40,22.33,22.39]},{ x:'06/17/2024',y:[22.34,22.37,22.32,22.34]},{ x:'06/18/2024',y:[22.40,22.59,22.40,22.55]},{ x:'06/19/2024',y:[22.55,22.56,22.44,22.54]},{ x:'06/20/2024',y:[22.40,22.40,22.29,22.30]},{ x:'06/21/2024',y:[22.30,22.30,22.25,22.29]},{ x:'06/24/2024',y:[22.30,22.34,22.28,22.28]},{ x:'06/25/2024',y:[22.31,22.36,22.31,22.36]},{ x:'06/26/2024',y:[22.36,22.50,22.36,22.48]},{ x:'06/27/2024',y:[22.50,22.63,22.50,22.62]},{ x:'06/28/2024',y:[22.67,22.88,22.67,22.84]},{ x:'07/01/2024',y:[22.62,22.65,22.50,22.63]},{ x:'07/02/2024',y:[22.69,22.80,22.69,22.74]},{ x:'07/03/2024',y:[23.00,23.14,23.00,23.13]},{ x:'07/04/2024',y:[23.13,23.20,23.13,23.16]},{ x:'07/05/2024',y:[23.17,23.20,23.13,23.16]},{ x:'07/12/2024',y:[23.30,23.30,23.18,23.20]},{ x:'07/15/2024',y:[23.33,23.37,23.30,23.34]},{ x:'07/16/2024',y:[23.37,23.55,23.37,23.52]},{ x:'07/17/2024',y:[23.52,23.53,23.44,23.44]},{ x:'07/18/2024',y:[23.20,23.28,23.20,23.25]},{ x:'07/19/2024',y:[23.10,23.10,23.03,23.09]},{ x:'07/22/2024',y:[23.04,23.04,22.93,23.02]},{ x:'07/23/2024',y:[23.05,23.11,23.05,23.08]},{ x:'07/26/2024',y:[22.60,22.60,22.36,22.43]},{ x:'07/29/2024',y:[22.66,22.67,22.60,22.62]},{ x:'07/30/2024',y:[22.57,22.59,22.51,22.56]},{ x:'07/31/2024',y:[22.48,22.53,22.44,22.51]},{ x:'08/01/2024',y:[22.60,22.87,22.60,22.85]},{ x:'08/02/2024',y:[22.56,22.56,22.26,22.29]},{ x:'08/05/2024',y:[21.89,21.89,21.45,21.45]},{ x:'08/06/2024',y:[21.41,21.63,21.35,21.57]},{ x:'08/07/2024',y:[21.41,21.62,21.41,21.61]},{ x:'08/08/2024',y:[21.40,21.45,21.35,21.36]},{ x:'08/09/2024',y:[21.61,21.70,21.61,21.61]},{ x:'08/12/2024',y:[21.66,21.82,21.66,21.82]},{ x:'08/13/2024',y:[21.84,21.85,21.80,21.83]},{ x:'08/14/2024',y:[22.01,22.02,21.99,22.00]},{ x:'08/15/2024',y:[22.08,22.17,22.08,22.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00916 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());