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/26/2024',y:[12.21,12.57,12.21,12.54]},{ x:'04/29/2024',y:[12.60,12.78,12.53,12.64]},{ x:'04/30/2024',y:[12.64,12.71,12.58,12.58]},{ x:'05/02/2024',y:[12.41,12.98,12.40,12.94]},{ x:'05/03/2024',y:[13.19,13.30,13.14,13.29]},{ x:'05/06/2024',y:[13.41,13.53,13.20,13.48]},{ x:'05/07/2024',y:[13.39,13.46,13.12,13.15]},{ x:'05/08/2024',y:[13.30,13.30,13.05,13.05]},{ x:'05/09/2024',y:[13.04,13.24,12.98,13.19]},{ x:'05/10/2024',y:[13.22,13.51,13.22,13.50]},{ x:'05/13/2024',y:[13.51,13.58,13.35,13.58]},{ x:'05/14/2024',y:[13.60,13.74,13.55,13.61]},{ x:'05/15/2024',y:[13.77,13.77,13.48,13.52]},{ x:'05/16/2024',y:[13.57,13.75,13.50,13.74]},{ x:'05/17/2024',y:[13.79,13.99,13.79,13.86]},{ x:'05/20/2024',y:[13.93,14.11,13.93,14.06]},{ x:'05/21/2024',y:[14.06,14.06,13.76,13.85]},{ x:'05/22/2024',y:[13.79,13.82,13.69,13.81]},{ x:'05/23/2024',y:[13.73,13.73,13.37,13.42]},{ x:'05/24/2024',y:[13.41,13.42,13.20,13.26]},{ x:'06/11/2024',y:[12.97,12.97,12.75,12.81]},{ x:'06/12/2024',y:[12.81,12.82,12.66,12.69]},{ x:'06/13/2024',y:[12.70,12.80,12.70,12.72]},{ x:'06/14/2024',y:[12.77,12.82,12.71,12.75]},{ x:'06/17/2024',y:[12.74,12.91,12.57,12.74]},{ x:'06/18/2024',y:[12.74,12.84,12.72,12.74]},{ x:'06/19/2024',y:[12.80,13.06,12.80,13.06]},{ x:'06/20/2024',y:[13.13,13.29,13.11,13.11]},{ x:'06/21/2024',y:[12.81,12.96,12.76,12.81]},{ x:'06/24/2024',y:[12.84,12.84,12.62,12.72]},{ x:'06/25/2024',y:[12.89,12.99,12.86,12.93]},{ x:'06/26/2024',y:[12.86,12.95,12.76,12.95]},{ x:'06/27/2024',y:[12.92,12.92,12.68,12.69]},{ x:'06/28/2024',y:[12.61,12.77,12.53,12.67]},{ x:'07/01/2024',y:[12.67,12.67,12.58,12.64]},{ x:'07/02/2024',y:[12.64,12.90,12.62,12.75]},{ x:'07/03/2024',y:[12.81,12.98,12.76,12.94]},{ x:'07/04/2024',y:[12.99,13.12,12.99,13.01]},{ x:'07/05/2024',y:[13.05,13.11,12.83,12.85]},{ x:'07/12/2024',y:[12.95,13.25,12.95,13.25]},{ x:'07/15/2024',y:[13.35,13.35,13.09,13.15]},{ x:'07/16/2024',y:[12.99,12.99,12.89,12.90]},{ x:'07/17/2024',y:[12.88,12.95,12.80,12.82]},{ x:'07/18/2024',y:[12.82,12.92,12.76,12.92]},{ x:'07/19/2024',y:[12.83,12.83,12.56,12.62]},{ x:'07/22/2024',y:[12.62,12.82,12.55,12.75]},{ x:'07/23/2024',y:[12.76,12.85,12.75,12.78]},{ x:'07/26/2024',y:[12.40,12.50,12.26,12.31]},{ x:'07/29/2024',y:[12.31,12.56,12.31,12.54]},{ x:'07/30/2024',y:[12.45,12.45,12.26,12.30]},{ x:'07/31/2024',y:[12.22,12.57,12.22,12.54]},{ x:'08/01/2024',y:[12.54,12.54,12.41,12.46]},{ x:'08/02/2024',y:[12.41,12.41,12.17,12.17]},{ x:'08/05/2024',y:[12.15,12.24,11.95,11.97]},{ x:'08/06/2024',y:[12.19,12.26,11.97,11.99]},{ x:'08/07/2024',y:[12.04,12.21,12.03,12.21]},{ x:'08/08/2024',y:[12.09,12.25,12.00,12.18]},{ x:'08/09/2024',y:[12.26,12.38,12.22,12.25]},{ x:'08/12/2024',y:[12.23,12.24,12.15,12.24]},{ x:'08/13/2024',y:[12.30,12.37,12.21,12.27]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00700 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());