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:'05/31/2023',y:[37.65,38.00,37.15,38.00]},{ x:'06/01/2023',y:[38.85,39.55,36.00,36.45]},{ x:'06/02/2023',y:[36.85,37.25,36.50,36.70]},{ x:'06/05/2023',y:[37.10,37.95,36.80,37.05]},{ x:'06/06/2023',y:[37.65,37.65,36.55,36.55]},{ x:'06/07/2023',y:[36.90,37.10,36.50,36.80]},{ x:'06/08/2023',y:[40.10,40.45,39.70,40.45]},{ x:'06/09/2023',y:[42.65,44.45,41.80,44.45]},{ x:'06/12/2023',y:[45.45,45.45,40.20,40.55]},{ x:'06/13/2023',y:[41.10,44.60,41.00,44.60]},{ x:'06/14/2023',y:[45.20,47.25,43.40,44.75]},{ x:'06/15/2023',y:[44.95,46.30,44.00,44.50]},{ x:'06/16/2023',y:[44.95,45.60,43.85,43.85]},{ x:'06/19/2023',y:[43.65,44.80,42.20,43.10]},{ x:'06/20/2023',y:[43.50,44.45,43.20,43.50]},{ x:'06/21/2023',y:[43.50,44.80,43.20,44.65]},{ x:'06/26/2023',y:[45.35,45.35,44.00,44.25]},{ x:'06/27/2023',y:[44.50,45.95,43.00,43.00]},{ x:'06/28/2023',y:[43.90,44.30,42.80,43.05]},{ x:'06/29/2023',y:[43.60,44.00,43.20,43.50]},{ x:'06/30/2023',y:[44.30,46.95,44.20,44.55]},{ x:'07/03/2023',y:[44.80,46.90,44.75,46.85]},{ x:'07/04/2023',y:[47.85,48.80,45.70,46.55]},{ x:'07/05/2023',y:[46.90,48.00,46.30,48.00]},{ x:'07/06/2023',y:[47.00,48.40,46.30,47.35]},{ x:'07/07/2023',y:[46.85,48.35,46.05,48.35]},{ x:'07/10/2023',y:[47.50,48.50,46.00,46.00]},{ x:'07/11/2023',y:[46.40,47.75,46.05,46.45]},{ x:'07/12/2023',y:[47.70,47.70,45.35,45.40]},{ x:'07/13/2023',y:[45.75,46.70,45.20,45.25]},{ x:'07/14/2023',y:[45.90,47.25,45.60,46.10]},{ x:'07/17/2023',y:[46.50,47.75,46.10,46.50]},{ x:'07/18/2023',y:[47.40,47.70,43.15,43.15]},{ x:'07/19/2023',y:[43.40,44.30,40.70,41.05]},{ x:'07/20/2023',y:[41.45,41.85,40.70,40.80]},{ x:'07/21/2023',y:[40.50,40.75,39.55,40.20]},{ x:'07/24/2023',y:[41.45,41.45,39.00,39.60]},{ x:'07/25/2023',y:[40.00,41.20,39.75,40.85]},{ x:'07/26/2023',y:[41.20,41.20,39.75,39.80]},{ x:'07/27/2023',y:[39.95,41.20,39.80,41.00]},{ x:'07/28/2023',y:[40.60,41.90,40.30,41.85]},{ x:'07/31/2023',y:[42.10,42.40,41.00,41.00]},{ x:'08/01/2023',y:[41.50,41.80,40.70,41.65]},{ x:'08/02/2023',y:[42.75,42.75,40.70,40.70]},{ x:'08/04/2023',y:[41.05,42.45,40.20,42.15]},{ x:'08/07/2023',y:[42.15,43.00,41.50,42.95]},{ x:'08/08/2023',y:[43.00,44.25,42.40,44.10]},{ x:'08/09/2023',y:[46.50,47.50,44.85,44.85]},{ x:'08/10/2023',y:[45.00,45.80,44.20,45.10]},{ x:'08/11/2023',y:[45.10,46.40,45.05,46.20]},{ x:'08/14/2023',y:[45.55,45.95,43.85,44.30]},{ x:'08/15/2023',y:[44.60,46.45,44.60,45.35]},{ x:'08/16/2023',y:[44.70,46.35,43.95,46.25]},{ x:'08/17/2023',y:[45.80,46.65,45.75,46.05]},{ x:'08/18/2023',y:[46.40,46.80,45.00,45.35]},{ x:'08/21/2023',y:[46.25,46.30,44.90,45.60]},{ x:'08/22/2023',y:[45.75,45.75,41.10,42.10]},{ x:'08/23/2023',y:[42.25,42.70,41.20,41.40]},{ x:'08/24/2023',y:[41.50,41.95,40.50,40.85]},{ x:'08/25/2023',y:[41.15,41.60,40.75,41.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6122 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());