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/16/2023',y:[9.55,9.67,9.40,9.40]},{ x:'06/19/2023',y:[9.50,9.50,9.50,9.50]},{ x:'06/20/2023',y:[9.51,9.69,9.50,9.50]},{ x:'06/21/2023',y:[9.50,9.50,9.50,9.50]},{ x:'06/26/2023',y:[9.50,9.50,9.45,9.49]},{ x:'06/27/2023',y:[9.46,9.46,9.46,9.46]},{ x:'06/28/2023',y:[0.00,0.00,0.00,0.00]},{ x:'06/29/2023',y:[9.40,9.40,9.40,9.40]},{ x:'06/30/2023',y:[9.40,9.50,9.40,9.50]},{ x:'07/03/2023',y:[9.50,9.50,9.50,9.50]},{ x:'07/04/2023',y:[9.50,9.52,9.50,9.52]},{ x:'07/05/2023',y:[9.56,9.86,9.53,9.76]},{ x:'07/06/2023',y:[9.76,9.99,9.76,9.77]},{ x:'07/07/2023',y:[9.81,9.81,9.08,9.39]},{ x:'07/10/2023',y:[9.39,9.60,9.39,9.60]},{ x:'07/11/2023',y:[9.60,9.60,9.55,9.55]},{ x:'07/12/2023',y:[9.55,9.60,9.50,9.60]},{ x:'07/13/2023',y:[9.59,9.60,9.50,9.50]},{ x:'07/14/2023',y:[9.50,9.54,9.50,9.50]},{ x:'07/17/2023',y:[9.45,9.50,9.22,9.22]},{ x:'07/18/2023',y:[9.18,9.40,9.18,9.40]},{ x:'07/19/2023',y:[9.41,9.45,9.41,9.45]},{ x:'07/20/2023',y:[9.30,10.35,9.30,10.00]},{ x:'07/21/2023',y:[9.80,9.80,9.55,9.55]},{ x:'07/24/2023',y:[9.50,9.50,9.41,9.41]},{ x:'07/25/2023',y:[0.00,0.00,0.00,0.00]},{ x:'07/26/2023',y:[9.40,9.50,9.40,9.50]},{ x:'07/27/2023',y:[9.40,9.50,9.40,9.50]},{ x:'07/28/2023',y:[9.50,9.50,9.50,9.50]},{ x:'07/31/2023',y:[0.00,0.00,0.00,0.00]},{ x:'08/01/2023',y:[9.11,9.50,9.11,9.50]},{ x:'08/02/2023',y:[9.50,9.50,9.40,9.40]},{ x:'08/04/2023',y:[9.49,9.50,9.49,9.50]},{ x:'08/07/2023',y:[9.50,9.50,9.50,9.50]},{ x:'08/08/2023',y:[9.50,9.50,9.50,9.50]},{ x:'08/09/2023',y:[10.00,10.00,9.50,9.50]},{ x:'08/10/2023',y:[9.50,9.60,9.40,9.60]},{ x:'08/11/2023',y:[9.60,9.60,9.60,9.60]},{ x:'08/14/2023',y:[9.45,9.45,9.45,9.45]},{ x:'08/15/2023',y:[9.50,9.63,9.50,9.50]},{ x:'08/16/2023',y:[9.55,9.55,9.50,9.55]},{ x:'08/17/2023',y:[9.60,9.60,9.60,9.60]},{ x:'08/18/2023',y:[0.00,0.00,0.00,0.00]},{ x:'08/21/2023',y:[9.60,9.60,9.40,9.40]},{ x:'08/22/2023',y:[9.60,9.60,9.57,9.60]},{ x:'08/23/2023',y:[9.60,9.60,9.40,9.40]},{ x:'08/24/2023',y:[9.50,9.80,9.46,9.80]},{ x:'08/25/2023',y:[9.80,10.00,9.80,9.90]},{ x:'08/28/2023',y:[10.00,10.45,10.00,10.40]},{ x:'08/29/2023',y:[10.40,11.40,9.57,11.30]},{ x:'08/30/2023',y:[11.30,12.05,11.10,11.70]},{ x:'08/31/2023',y:[12.00,12.20,11.20,11.95]},{ x:'09/01/2023',y:[11.95,12.10,11.95,12.00]},{ x:'09/04/2023',y:[11.95,13.20,11.95,12.00]},{ x:'09/05/2023',y:[11.95,12.10,11.95,12.00]},{ x:'09/06/2023',y:[11.95,12.00,11.90,11.90]},{ x:'09/07/2023',y:[12.15,12.15,11.80,11.85]},{ x:'09/08/2023',y:[12.00,12.00,11.85,11.85]},{ x:'09/11/2023',y:[11.95,12.00,11.35,11.35]},{ x:'09/12/2023',y:[11.00,11.30,11.00,11.25]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1538 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());