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:'06/07/2023',y:[10.35,10.65,10.15,10.35]},{ x:'06/08/2023',y:[10.55,11.30,10.25,10.40]},{ x:'06/09/2023',y:[10.45,10.45,10.10,10.20]},{ x:'06/12/2023',y:[10.35,10.35,9.99,10.00]},{ x:'06/13/2023',y:[10.20,10.95,10.20,10.75]},{ x:'06/14/2023',y:[10.75,11.75,10.60,11.45]},{ x:'06/15/2023',y:[11.50,11.95,11.15,11.25]},{ x:'06/16/2023',y:[11.25,11.45,11.00,11.15]},{ x:'06/19/2023',y:[11.10,11.30,11.10,11.10]},{ x:'06/20/2023',y:[11.30,11.30,10.80,10.95]},{ x:'06/21/2023',y:[10.90,11.10,10.80,11.00]},{ x:'06/26/2023',y:[11.10,11.15,10.80,10.80]},{ x:'06/27/2023',y:[10.85,10.85,10.55,10.65]},{ x:'06/28/2023',y:[10.65,10.95,10.65,10.65]},{ x:'06/29/2023',y:[10.75,10.75,10.45,10.55]},{ x:'06/30/2023',y:[10.60,10.60,10.40,10.50]},{ x:'07/03/2023',y:[10.60,10.75,10.60,10.65]},{ x:'07/04/2023',y:[10.70,10.70,10.45,10.65]},{ x:'07/05/2023',y:[10.80,10.95,10.70,10.90]},{ x:'07/06/2023',y:[10.95,11.15,10.70,10.95]},{ x:'07/07/2023',y:[10.95,10.95,10.60,10.90]},{ x:'07/10/2023',y:[10.90,11.40,10.90,11.25]},{ x:'07/11/2023',y:[11.05,11.15,10.50,10.60]},{ x:'07/12/2023',y:[10.70,10.80,10.35,10.50]},{ x:'07/13/2023',y:[10.65,10.70,10.45,10.50]},{ x:'07/14/2023',y:[10.60,10.65,10.55,10.60]},{ x:'07/17/2023',y:[10.60,10.65,10.45,10.65]},{ x:'07/18/2023',y:[10.60,10.65,10.15,10.25]},{ x:'07/19/2023',y:[10.25,10.30,9.99,10.00]},{ x:'07/20/2023',y:[10.00,10.30,10.00,10.30]},{ x:'07/21/2023',y:[10.30,10.30,10.05,10.10]},{ x:'07/24/2023',y:[10.15,10.15,9.76,9.83]},{ x:'07/25/2023',y:[9.88,9.88,9.65,9.74]},{ x:'07/26/2023',y:[9.72,9.89,9.72,9.75]},{ x:'07/27/2023',y:[9.80,9.98,9.74,9.92]},{ x:'07/28/2023',y:[9.93,9.94,9.81,9.81]},{ x:'07/31/2023',y:[9.86,10.25,9.86,10.15]},{ x:'08/01/2023',y:[10.15,10.35,10.00,10.00]},{ x:'08/02/2023',y:[10.20,10.30,9.95,9.95]},{ x:'08/04/2023',y:[9.96,10.10,9.91,9.99]},{ x:'08/07/2023',y:[10.05,10.15,9.92,10.05]},{ x:'08/08/2023',y:[10.05,10.10,9.91,9.97]},{ x:'08/09/2023',y:[10.00,10.00,9.85,9.87]},{ x:'08/10/2023',y:[10.00,10.00,9.71,9.81]},{ x:'08/11/2023',y:[9.80,9.92,9.70,9.70]},{ x:'08/14/2023',y:[9.66,9.66,9.24,9.30]},{ x:'08/15/2023',y:[9.32,9.42,9.27,9.28]},{ x:'08/16/2023',y:[9.26,9.28,9.11,9.18]},{ x:'08/17/2023',y:[9.14,9.40,9.07,9.27]},{ x:'08/18/2023',y:[9.24,9.34,9.18,9.21]},{ x:'08/21/2023',y:[9.28,9.29,9.19,9.19]},{ x:'08/22/2023',y:[9.21,9.21,9.13,9.14]},{ x:'08/23/2023',y:[9.11,9.27,9.11,9.15]},{ x:'08/24/2023',y:[9.18,9.23,9.07,9.11]},{ x:'08/25/2023',y:[9.17,9.23,9.12,9.17]},{ x:'08/28/2023',y:[9.20,9.20,9.11,9.13]},{ x:'08/29/2023',y:[9.25,9.25,9.13,9.15]},{ x:'08/30/2023',y:[9.17,9.39,9.16,9.30]},{ x:'08/31/2023',y:[9.38,9.53,9.28,9.28]},{ x:'09/01/2023',y:[9.29,9.95,9.29,9.67]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1806 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());