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:'07/10/2023',y:[45.00,45.95,43.00,43.05]},{ x:'07/11/2023',y:[43.25,45.85,43.25,45.35]},{ x:'07/12/2023',y:[45.35,45.35,43.35,43.75]},{ x:'07/13/2023',y:[44.30,44.40,43.50,43.50]},{ x:'07/14/2023',y:[43.50,44.40,43.15,44.00]},{ x:'07/17/2023',y:[44.00,44.90,43.40,44.45]},{ x:'07/18/2023',y:[45.00,45.00,43.40,43.60]},{ x:'07/19/2023',y:[44.70,45.20,44.00,44.05]},{ x:'07/20/2023',y:[44.80,45.60,44.60,45.40]},{ x:'07/21/2023',y:[45.30,45.30,44.50,44.60]},{ x:'07/24/2023',y:[45.00,45.05,42.60,42.85]},{ x:'07/25/2023',y:[43.00,44.25,42.50,44.00]},{ x:'07/26/2023',y:[44.00,44.00,42.75,42.95]},{ x:'07/27/2023',y:[43.40,43.70,43.15,43.45]},{ x:'07/28/2023',y:[43.55,43.65,42.75,43.00]},{ x:'07/31/2023',y:[43.80,43.80,42.15,42.35]},{ x:'08/01/2023',y:[42.40,42.55,42.05,42.15]},{ x:'08/02/2023',y:[42.15,42.15,40.50,40.60]},{ x:'08/04/2023',y:[40.60,41.65,40.00,41.40]},{ x:'08/07/2023',y:[41.40,41.45,40.80,41.25]},{ x:'08/08/2023',y:[41.45,43.00,40.85,41.65]},{ x:'08/09/2023',y:[41.20,41.65,40.55,40.75]},{ x:'08/10/2023',y:[41.20,41.20,38.10,38.90]},{ x:'08/11/2023',y:[38.90,40.25,38.80,39.40]},{ x:'08/14/2023',y:[39.50,39.50,38.20,38.20]},{ x:'08/15/2023',y:[38.75,39.90,38.55,39.50]},{ x:'08/16/2023',y:[39.50,39.70,38.40,39.40]},{ x:'08/17/2023',y:[39.00,39.75,38.25,39.40]},{ x:'08/18/2023',y:[39.00,39.50,38.20,38.30]},{ x:'08/21/2023',y:[38.30,39.25,38.30,39.05]},{ x:'08/22/2023',y:[39.10,39.20,38.20,38.35]},{ x:'08/23/2023',y:[38.20,38.85,38.00,38.05]},{ x:'08/24/2023',y:[38.50,38.90,37.90,37.90]},{ x:'08/25/2023',y:[37.90,38.25,37.80,37.80]},{ x:'08/28/2023',y:[37.90,38.15,36.80,37.15]},{ x:'08/29/2023',y:[37.15,37.25,36.85,37.20]},{ x:'08/30/2023',y:[37.40,38.50,37.40,38.45]},{ x:'08/31/2023',y:[38.45,38.45,37.90,38.20]},{ x:'09/01/2023',y:[38.40,38.85,38.20,38.20]},{ x:'09/04/2023',y:[38.25,38.95,38.20,38.75]},{ x:'09/05/2023',y:[38.95,39.95,38.95,39.35]},{ x:'09/06/2023',y:[39.40,39.60,39.20,39.50]},{ x:'09/07/2023',y:[39.50,39.50,38.95,39.00]},{ x:'09/08/2023',y:[39.55,39.55,38.80,38.80]},{ x:'09/11/2023',y:[38.80,39.25,38.00,38.05]},{ x:'09/12/2023',y:[38.05,38.50,38.05,38.35]},{ x:'09/13/2023',y:[38.45,39.20,38.45,38.95]},{ x:'09/14/2023',y:[38.95,40.45,38.95,40.30]},{ x:'09/15/2023',y:[40.85,40.90,39.75,39.95]},{ x:'09/18/2023',y:[39.90,43.00,39.50,42.00]},{ x:'09/19/2023',y:[41.90,41.90,41.00,41.25]},{ x:'09/20/2023',y:[40.90,41.65,40.90,41.25]},{ x:'09/21/2023',y:[41.65,42.80,40.20,40.20]},{ x:'09/22/2023',y:[39.50,40.35,39.00,40.25]},{ x:'09/25/2023',y:[40.45,41.25,40.45,40.55]},{ x:'09/26/2023',y:[40.50,40.85,39.10,39.15]},{ x:'09/27/2023',y:[39.15,39.30,38.30,38.40]},{ x:'09/28/2023',y:[38.45,38.80,38.35,38.40]},{ x:'10/02/2023',y:[38.45,39.50,38.45,39.35]},{ x:'10/03/2023',y:[40.05,41.10,39.70,39.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8171 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());