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:'08/08/2023',y:[87.70,88.00,87.70,88.00]},{ x:'08/09/2023',y:[87.70,88.05,87.70,87.90]},{ x:'08/10/2023',y:[86.90,86.90,86.60,86.60]},{ x:'08/11/2023',y:[87.25,87.25,86.75,86.75]},{ x:'08/14/2023',y:[85.85,85.85,85.40,85.40]},{ x:'08/15/2023',y:[86.15,86.15,86.05,86.05]},{ x:'08/16/2023',y:[85.60,86.00,85.50,86.00]},{ x:'08/17/2023',y:[85.35,86.20,85.35,86.20]},{ x:'08/18/2023',y:[86.20,86.20,85.60,85.95]},{ x:'08/21/2023',y:[86.50,86.50,85.85,85.85]},{ x:'08/22/2023',y:[86.65,86.65,86.25,86.25]},{ x:'08/23/2023',y:[86.40,86.85,86.35,86.85]},{ x:'08/24/2023',y:[88.05,88.05,87.55,87.90]},{ x:'08/25/2023',y:[87.05,87.05,86.50,86.50]},{ x:'08/28/2023',y:[86.75,86.80,86.55,86.60]},{ x:'08/29/2023',y:[86.90,87.10,86.80,87.10]},{ x:'08/30/2023',y:[87.90,87.90,87.65,87.65]},{ x:'08/31/2023',y:[87.35,87.45,87.35,87.35]},{ x:'09/01/2023',y:[87.40,87.45,87.40,87.45]},{ x:'09/04/2023',y:[87.45,87.80,87.45,87.80]},{ x:'09/05/2023',y:[87.85,88.05,87.85,88.05]},{ x:'09/06/2023',y:[88.10,88.15,87.85,87.85]},{ x:'09/07/2023',y:[87.20,87.35,87.20,87.20]},{ x:'09/08/2023',y:[0.00,0.00,0.00,0.00]},{ x:'09/11/2023',y:[86.80,86.80,86.10,86.10]},{ x:'09/12/2023',y:[86.20,86.65,86.20,86.65]},{ x:'09/13/2023',y:[86.70,86.95,86.55,86.70]},{ x:'09/14/2023',y:[87.50,87.75,87.50,87.70]},{ x:'09/15/2023',y:[87.95,88.20,87.95,88.20]},{ x:'09/18/2023',y:[87.80,87.80,87.50,87.50]},{ x:'09/19/2023',y:[87.65,87.65,87.65,87.65]},{ x:'09/20/2023',y:[87.20,87.20,86.85,86.85]},{ x:'09/21/2023',y:[85.55,85.55,85.40,85.40]},{ x:'09/22/2023',y:[85.35,85.35,85.35,85.35]},{ x:'09/25/2023',y:[86.05,86.25,85.70,86.10]},{ x:'09/26/2023',y:[85.85,85.85,85.40,85.40]},{ x:'09/27/2023',y:[85.25,85.25,85.20,85.20]},{ x:'09/28/2023',y:[85.80,85.80,85.35,85.50]},{ x:'10/02/2023',y:[86.20,86.75,86.20,86.70]},{ x:'10/03/2023',y:[86.75,86.80,86.20,86.20]},{ x:'10/04/2023',y:[85.20,85.20,84.95,85.20]},{ x:'10/05/2023',y:[85.70,86.25,85.70,86.25]},{ x:'10/06/2023',y:[86.40,86.70,86.35,86.60]},{ x:'10/11/2023',y:[87.35,87.60,87.35,87.60]},{ x:'10/12/2023',y:[87.60,88.25,87.60,88.25]},{ x:'10/13/2023',y:[88.05,88.05,87.80,87.90]},{ x:'10/18/2023',y:[87.50,87.50,86.40,86.40]},{ x:'10/19/2023',y:[82.40,82.40,82.00,82.25]},{ x:'10/20/2023',y:[81.95,82.20,81.45,82.20]},{ x:'10/23/2023',y:[81.90,81.90,81.45,81.45]},{ x:'10/24/2023',y:[81.40,81.40,81.25,81.40]},{ x:'10/25/2023',y:[81.65,82.20,81.65,81.95]},{ x:'10/26/2023',y:[80.35,80.55,80.35,80.35]},{ x:'10/27/2023',y:[80.55,80.55,80.55,80.55]},{ x:'10/30/2023',y:[80.55,80.85,80.55,80.55]},{ x:'10/31/2023',y:[80.15,80.30,80.15,80.30]},{ x:'11/01/2023',y:[80.50,80.50,80.30,80.40]},{ x:'11/02/2023',y:[81.45,81.95,81.45,81.95]},{ x:'11/03/2023',y:[82.45,82.50,82.45,82.50]},{ x:'11/06/2023',y:[83.35,83.75,83.35,83.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "006204 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());