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:'04/14/2023',y:[34.20,34.75,33.00,33.00]},{ x:'04/17/2023',y:[33.00,34.60,32.80,34.00]},{ x:'04/18/2023',y:[34.80,34.90,33.00,33.60]},{ x:'04/19/2023',y:[33.90,34.65,33.75,34.60]},{ x:'04/20/2023',y:[34.80,34.95,31.45,32.60]},{ x:'04/21/2023',y:[33.25,33.25,29.95,29.95]},{ x:'04/24/2023',y:[30.40,30.70,29.15,29.20]},{ x:'04/25/2023',y:[29.50,29.70,28.25,28.50]},{ x:'04/26/2023',y:[28.35,29.30,28.20,29.10]},{ x:'04/27/2023',y:[29.35,29.60,28.55,29.10]},{ x:'04/28/2023',y:[29.50,31.00,29.50,30.15]},{ x:'05/02/2023',y:[31.05,31.05,30.05,30.60]},{ x:'05/03/2023',y:[30.60,30.80,29.85,30.60]},{ x:'05/04/2023',y:[30.40,32.10,30.30,31.85]},{ x:'05/05/2023',y:[31.75,32.10,31.20,31.95]},{ x:'05/08/2023',y:[32.65,32.70,31.60,31.85]},{ x:'05/09/2023',y:[32.80,32.85,30.50,30.50]},{ x:'05/10/2023',y:[32.10,33.55,32.00,33.55]},{ x:'05/11/2023',y:[34.65,35.80,33.00,33.00]},{ x:'05/12/2023',y:[32.30,36.30,32.20,36.30]},{ x:'05/15/2023',y:[37.45,37.80,33.70,33.70]},{ x:'05/16/2023',y:[34.20,35.80,34.15,34.20]},{ x:'05/17/2023',y:[34.25,37.00,33.95,35.75]},{ x:'05/18/2023',y:[36.25,37.20,35.80,37.10]},{ x:'05/19/2023',y:[37.10,37.45,35.20,35.35]},{ x:'05/22/2023',y:[35.60,36.65,35.25,36.35]},{ x:'05/23/2023',y:[36.35,38.30,35.90,37.35]},{ x:'05/24/2023',y:[37.35,38.40,36.85,37.10]},{ x:'05/25/2023',y:[37.25,38.40,36.45,36.45]},{ x:'05/26/2023',y:[36.55,36.70,35.00,36.00]},{ x:'05/29/2023',y:[36.45,37.70,36.30,37.10]},{ x:'05/30/2023',y:[37.65,37.80,37.00,37.05]},{ 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]} ] }], 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());