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/15/2023',y:[31.80,31.90,31.80,31.80]},{ x:'06/16/2023',y:[31.75,31.75,31.60,31.65]},{ x:'06/19/2023',y:[31.55,31.65,31.55,31.65]},{ x:'06/20/2023',y:[31.60,31.75,31.60,31.70]},{ x:'06/21/2023',y:[31.70,31.70,31.60,31.70]},{ x:'06/26/2023',y:[31.80,31.80,31.65,31.65]},{ x:'06/27/2023',y:[31.65,31.65,31.60,31.65]},{ x:'06/28/2023',y:[31.70,31.80,31.60,31.70]},{ x:'06/29/2023',y:[31.70,31.75,31.70,31.75]},{ x:'06/30/2023',y:[31.75,31.90,31.75,31.90]},{ x:'07/03/2023',y:[32.00,32.35,32.00,32.25]},{ x:'07/04/2023',y:[32.25,32.25,31.80,32.20]},{ x:'07/05/2023',y:[32.20,32.60,32.15,32.35]},{ x:'07/06/2023',y:[32.40,32.65,32.35,32.35]},{ x:'07/07/2023',y:[32.35,32.35,31.85,32.10]},{ x:'07/10/2023',y:[32.15,32.25,31.75,31.75]},{ x:'07/11/2023',y:[31.50,31.50,30.25,30.25]},{ x:'07/12/2023',y:[30.30,30.40,30.10,30.10]},{ x:'07/13/2023',y:[30.40,30.70,30.25,30.35]},{ x:'07/14/2023',y:[30.30,30.80,30.30,30.60]},{ x:'07/17/2023',y:[30.60,31.50,30.60,31.50]},{ x:'07/18/2023',y:[31.50,31.60,31.00,31.30]},{ x:'07/19/2023',y:[31.35,31.45,30.80,30.85]},{ x:'07/20/2023',y:[30.85,33.75,30.70,33.40]},{ x:'07/21/2023',y:[33.30,34.10,32.60,33.30]},{ x:'07/24/2023',y:[33.10,34.05,32.90,33.80]},{ x:'07/25/2023',y:[34.50,35.00,34.00,34.70]},{ x:'07/26/2023',y:[34.10,34.80,33.80,33.80]},{ x:'07/27/2023',y:[34.10,34.10,33.30,33.30]},{ x:'07/28/2023',y:[33.30,34.00,33.30,33.75]},{ x:'07/31/2023',y:[33.80,34.30,33.60,33.60]},{ x:'08/01/2023',y:[33.70,34.10,33.65,33.80]},{ x:'08/02/2023',y:[34.10,34.10,33.20,33.45]},{ x:'08/04/2023',y:[33.25,33.90,33.25,33.90]},{ x:'08/07/2023',y:[34.60,34.75,34.10,34.40]},{ x:'08/08/2023',y:[34.75,34.75,33.70,33.70]},{ x:'08/09/2023',y:[33.80,34.10,33.35,33.40]},{ x:'08/10/2023',y:[33.50,34.00,32.75,33.80]},{ x:'08/11/2023',y:[35.20,37.15,34.85,37.15]},{ x:'08/14/2023',y:[37.25,40.70,37.20,40.55]},{ x:'08/15/2023',y:[40.80,43.55,40.60,41.40]},{ x:'08/16/2023',y:[41.00,42.50,40.00,42.50]},{ x:'08/17/2023',y:[42.40,43.45,41.45,41.80]},{ x:'08/18/2023',y:[41.80,43.10,39.05,39.15]},{ x:'08/21/2023',y:[39.60,40.85,38.70,39.75]},{ x:'08/22/2023',y:[40.80,43.70,40.20,43.70]},{ x:'08/23/2023',y:[43.00,47.35,42.00,42.75]},{ x:'08/24/2023',y:[43.85,44.65,42.00,43.10]},{ x:'08/25/2023',y:[42.10,45.00,42.10,43.55]},{ x:'08/28/2023',y:[43.40,44.00,39.20,39.20]},{ x:'08/29/2023',y:[38.40,41.80,38.20,39.60]},{ x:'08/30/2023',y:[40.50,40.90,39.60,39.80]},{ x:'08/31/2023',y:[39.80,40.55,39.20,40.30]},{ x:'09/01/2023',y:[40.55,41.20,40.00,40.35]},{ x:'09/04/2023',y:[40.75,44.35,40.35,44.35]},{ x:'09/05/2023',y:[45.20,48.75,45.00,48.75]},{ x:'09/06/2023',y:[48.90,49.85,44.50,44.85]},{ x:'09/07/2023',y:[44.50,47.10,44.45,45.30]},{ x:'09/08/2023',y:[45.20,45.80,43.25,43.45]},{ x:'09/11/2023',y:[46.00,47.20,44.80,45.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3567 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());