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:[10.25,10.45,9.85,10.40]},{ x:'04/29/2024',y:[10.30,10.60,10.25,10.60]},{ x:'04/30/2024',y:[10.55,10.55,9.95,10.35]},{ x:'05/02/2024',y:[10.00,10.25,9.68,10.15]},{ x:'05/03/2024',y:[9.90,10.15,9.90,10.15]},{ x:'05/06/2024',y:[10.50,10.50,10.10,10.15]},{ x:'05/07/2024',y:[10.05,10.15,9.90,10.15]},{ x:'05/08/2024',y:[10.15,10.30,10.15,10.20]},{ x:'05/09/2024',y:[10.35,10.35,10.20,10.20]},{ x:'05/10/2024',y:[10.05,10.30,10.05,10.20]},{ x:'05/13/2024',y:[9.85,10.15,9.85,10.00]},{ x:'05/14/2024',y:[10.00,10.25,10.00,10.00]},{ x:'05/15/2024',y:[10.00,10.05,10.00,10.00]},{ x:'05/16/2024',y:[10.00,10.10,9.98,10.00]},{ x:'05/17/2024',y:[9.67,9.86,9.65,9.86]},{ x:'05/20/2024',y:[9.87,9.97,9.84,9.88]},{ x:'05/21/2024',y:[9.60,9.97,9.60,9.78]},{ x:'05/22/2024',y:[9.78,9.91,9.74,9.89]},{ x:'05/23/2024',y:[9.63,9.87,9.63,9.87]},{ x:'05/24/2024',y:[9.67,9.88,9.67,9.86]},{ x:'06/11/2024',y:[8.75,8.92,8.46,8.90]},{ x:'06/12/2024',y:[9.00,9.11,8.61,8.90]},{ x:'06/13/2024',y:[8.88,8.88,8.57,8.65]},{ x:'06/14/2024',y:[8.91,9.00,8.62,9.00]},{ x:'06/17/2024',y:[9.27,9.27,9.10,9.18]},{ x:'06/18/2024',y:[9.17,9.17,8.99,9.12]},{ x:'06/19/2024',y:[8.71,9.00,8.71,9.00]},{ x:'06/20/2024',y:[8.61,8.86,8.61,8.86]},{ x:'06/21/2024',y:[8.64,8.86,8.61,8.86]},{ x:'06/24/2024',y:[8.57,8.79,8.41,8.68]},{ x:'06/25/2024',y:[8.66,8.76,8.36,8.62]},{ x:'06/26/2024',y:[8.88,8.88,8.46,8.50]},{ x:'06/27/2024',y:[8.73,8.73,8.50,8.50]},{ x:'06/28/2024',y:[8.33,8.45,8.33,8.45]},{ x:'07/01/2024',y:[8.39,8.50,8.35,8.48]},{ x:'07/02/2024',y:[8.27,8.40,8.27,8.33]},{ x:'07/03/2024',y:[8.33,8.44,8.33,8.42]},{ x:'07/04/2024',y:[8.42,8.45,8.23,8.40]},{ x:'07/05/2024',y:[8.40,8.40,8.30,8.39]},{ x:'07/12/2024',y:[8.45,8.46,8.17,8.44]},{ x:'07/15/2024',y:[8.41,8.44,8.40,8.40]},{ x:'07/16/2024',y:[8.24,8.40,8.24,8.35]},{ x:'07/17/2024',y:[8.31,8.39,8.26,8.35]},{ x:'07/18/2024',y:[8.31,8.40,8.30,8.40]},{ x:'07/19/2024',y:[8.40,8.45,8.36,8.36]},{ x:'07/22/2024',y:[8.13,8.45,8.13,8.36]},{ x:'07/23/2024',y:[8.32,8.33,8.21,8.21]},{ x:'07/26/2024',y:[8.16,8.37,8.16,8.20]},{ x:'07/29/2024',y:[8.26,8.26,8.25,8.25]},{ x:'07/30/2024',y:[7.48,8.25,7.48,8.23]},{ x:'07/31/2024',y:[8.01,8.23,8.00,8.23]},{ x:'08/01/2024',y:[8.50,8.50,8.01,8.01]},{ x:'08/02/2024',y:[8.54,8.54,7.88,8.00]},{ x:'08/05/2024',y:[8.00,8.00,7.20,7.98]},{ x:'08/06/2024',y:[7.90,7.90,7.21,7.30]},{ x:'08/07/2024',y:[7.32,7.43,7.02,7.30]},{ x:'08/08/2024',y:[7.20,7.38,7.10,7.12]},{ x:'08/09/2024',y:[7.13,7.31,7.05,7.12]},{ x:'08/12/2024',y:[7.01,7.12,7.01,7.05]},{ x:'08/13/2024',y:[7.20,7.28,7.02,7.28]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1512 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());