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:[37.01,37.14,36.97,37.14]},{ x:'04/25/2024',y:[37.14,37.14,36.90,36.99]},{ x:'04/26/2024',y:[36.99,37.30,36.99,37.18]},{ x:'04/29/2024',y:[37.18,37.34,37.18,37.25]},{ x:'04/30/2024',y:[37.30,37.40,37.25,37.39]},{ x:'05/02/2024',y:[37.39,37.39,37.22,37.35]},{ x:'05/03/2024',y:[37.41,37.45,37.21,37.21]},{ x:'05/06/2024',y:[37.15,37.20,36.80,36.94]},{ x:'05/07/2024',y:[36.94,36.94,36.60,36.61]},{ x:'05/08/2024',y:[36.61,36.81,36.53,36.60]},{ x:'05/09/2024',y:[36.60,36.73,36.41,36.43]},{ x:'05/10/2024',y:[36.32,36.46,36.26,36.33]},{ x:'05/13/2024',y:[36.33,36.35,36.02,36.23]},{ x:'05/14/2024',y:[36.30,36.64,36.30,36.60]},{ x:'05/15/2024',y:[36.77,36.77,36.48,36.52]},{ x:'05/16/2024',y:[36.55,36.62,36.37,36.39]},{ x:'05/17/2024',y:[36.45,36.65,36.45,36.64]},{ x:'05/20/2024',y:[36.65,36.98,36.65,36.96]},{ x:'05/21/2024',y:[36.96,36.96,36.78,36.79]},{ x:'05/22/2024',y:[36.80,37.04,36.80,37.02]},{ x:'05/23/2024',y:[37.02,37.10,36.93,37.07]},{ x:'05/24/2024',y:[37.20,37.42,37.20,37.37]},{ x:'06/11/2024',y:[37.45,38.03,37.45,38.00]},{ x:'06/12/2024',y:[37.90,38.15,37.89,38.15]},{ x:'06/13/2024',y:[38.15,38.15,38.05,38.12]},{ x:'06/14/2024',y:[38.20,38.20,38.05,38.16]},{ x:'06/17/2024',y:[38.20,38.41,38.20,38.35]},{ x:'06/18/2024',y:[38.36,38.50,38.36,38.45]},{ x:'06/19/2024',y:[38.47,38.58,38.15,38.25]},{ x:'06/20/2024',y:[38.29,38.41,38.27,38.36]},{ x:'06/21/2024',y:[38.40,38.40,38.27,38.27]},{ x:'06/24/2024',y:[38.30,38.30,38.04,38.24]},{ x:'06/25/2024',y:[38.26,38.43,38.26,38.43]},{ x:'06/26/2024',y:[38.58,38.84,38.58,38.84]},{ x:'06/27/2024',y:[38.89,39.22,38.89,39.08]},{ x:'06/28/2024',y:[39.40,39.56,39.40,39.54]},{ x:'07/01/2024',y:[39.49,39.49,39.27,39.39]},{ x:'07/02/2024',y:[39.41,39.71,39.41,39.67]},{ x:'07/03/2024',y:[39.77,39.92,39.73,39.91]},{ x:'07/04/2024',y:[39.92,40.01,39.92,39.96]},{ x:'07/05/2024',y:[39.94,39.94,39.61,39.67]},{ x:'07/12/2024',y:[40.27,40.27,40.03,40.24]},{ x:'07/15/2024',y:[40.34,40.57,40.34,40.57]},{ x:'07/16/2024',y:[40.57,40.71,40.35,40.71]},{ x:'07/17/2024',y:[40.71,40.85,40.69,40.79]},{ x:'07/18/2024',y:[40.79,40.79,40.40,40.49]},{ x:'07/19/2024',y:[40.66,41.00,40.66,40.76]},{ x:'07/22/2024',y:[40.62,40.77,40.26,40.68]},{ x:'07/23/2024',y:[40.68,40.68,40.43,40.44]},{ x:'07/26/2024',y:[40.33,40.72,40.31,40.69]},{ x:'07/29/2024',y:[41.00,41.20,40.97,41.16]},{ x:'07/30/2024',y:[41.16,41.16,40.92,41.13]},{ x:'07/31/2024',y:[41.00,41.17,41.00,41.17]},{ x:'08/01/2024',y:[41.20,41.28,41.07,41.23]},{ x:'08/02/2024',y:[41.20,41.20,40.83,40.93]},{ x:'08/05/2024',y:[40.04,40.04,39.00,39.00]},{ x:'08/06/2024',y:[39.00,39.78,39.00,39.34]},{ x:'08/07/2024',y:[39.13,40.07,39.13,40.01]},{ x:'08/08/2024',y:[39.81,39.81,39.44,39.47]},{ x:'08/09/2024',y:[39.50,39.88,39.50,39.68]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00652 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());