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/21/2023',y:[32.40,33.20,32.10,32.40]},{ x:'04/24/2023',y:[31.95,33.15,31.90,33.15]},{ x:'04/25/2023',y:[32.70,32.80,31.60,31.70]},{ x:'04/26/2023',y:[31.25,32.20,31.25,32.15]},{ x:'04/27/2023',y:[32.10,32.95,32.10,32.95]},{ x:'04/28/2023',y:[32.60,33.10,32.45,33.10]},{ x:'05/02/2023',y:[33.10,33.20,32.75,33.05]},{ x:'05/03/2023',y:[32.70,32.95,32.45,32.85]},{ x:'05/04/2023',y:[32.35,32.60,31.90,32.35]},{ x:'05/05/2023',y:[32.00,32.30,31.75,32.10]},{ x:'05/08/2023',y:[32.50,33.00,32.25,32.75]},{ x:'05/09/2023',y:[32.20,32.70,32.20,32.70]},{ x:'05/10/2023',y:[32.25,32.50,31.50,31.75]},{ x:'05/11/2023',y:[31.55,32.50,31.55,32.25]},{ x:'05/12/2023',y:[32.25,33.30,32.10,32.75]},{ x:'05/15/2023',y:[31.00,31.35,29.85,30.95]},{ x:'05/16/2023',y:[30.00,31.00,29.10,30.80]},{ x:'05/17/2023',y:[30.00,30.95,29.65,30.45]},{ x:'05/18/2023',y:[30.40,30.75,30.20,30.55]},{ x:'05/19/2023',y:[30.80,31.50,30.65,31.45]},{ x:'05/22/2023',y:[30.85,31.35,30.30,30.55]},{ x:'05/23/2023',y:[30.50,31.00,30.40,31.00]},{ x:'05/24/2023',y:[30.95,30.95,30.35,30.85]},{ x:'05/25/2023',y:[31.35,33.25,31.25,33.25]},{ x:'05/26/2023',y:[33.60,34.45,32.30,34.10]},{ x:'05/29/2023',y:[34.50,37.50,34.45,37.50]},{ x:'05/30/2023',y:[38.30,39.00,36.50,37.70]},{ x:'05/31/2023',y:[38.00,38.25,36.05,36.85]},{ x:'06/01/2023',y:[36.20,36.30,35.30,35.55]},{ x:'06/02/2023',y:[35.95,37.60,35.85,36.25]},{ x:'06/05/2023',y:[36.45,36.75,35.80,36.25]},{ x:'06/06/2023',y:[36.30,36.30,35.30,36.20]},{ x:'06/07/2023',y:[36.30,36.90,36.00,36.75]},{ x:'06/08/2023',y:[36.80,37.10,36.10,36.40]},{ x:'06/09/2023',y:[37.10,38.90,36.85,38.65]},{ x:'06/12/2023',y:[38.80,39.00,36.85,36.95]},{ x:'06/13/2023',y:[38.05,40.60,38.05,40.60]},{ x:'06/14/2023',y:[41.00,44.45,40.60,42.95]},{ x:'06/15/2023',y:[43.50,46.35,43.35,46.00]},{ x:'06/16/2023',y:[46.20,47.35,44.85,45.50]},{ x:'06/19/2023',y:[45.20,45.25,43.70,44.10]},{ x:'06/20/2023',y:[44.00,44.00,42.40,43.10]},{ x:'06/21/2023',y:[43.70,45.25,43.55,44.75]},{ x:'06/26/2023',y:[44.05,45.15,43.40,44.35]},{ x:'06/27/2023',y:[43.85,44.15,42.65,42.90]},{ x:'06/28/2023',y:[43.80,44.45,42.60,42.70]},{ x:'06/29/2023',y:[43.00,43.50,42.40,43.15]},{ x:'06/30/2023',y:[43.35,43.75,42.75,43.20]},{ x:'07/03/2023',y:[44.00,45.60,43.95,44.15]},{ x:'07/04/2023',y:[44.30,48.55,44.30,47.15]},{ x:'07/05/2023',y:[47.30,47.40,45.10,45.20]},{ x:'07/06/2023',y:[44.50,46.60,44.00,44.70]},{ x:'07/07/2023',y:[44.50,46.00,44.45,44.60]},{ x:'07/10/2023',y:[45.45,45.80,44.25,44.40]},{ x:'07/11/2023',y:[45.05,47.25,45.05,47.25]},{ x:'07/12/2023',y:[47.15,48.80,46.80,47.60]},{ x:'07/13/2023',y:[48.90,52.30,48.90,50.80]},{ x:'07/14/2023',y:[53.80,55.80,52.20,55.80]},{ x:'07/17/2023',y:[57.90,61.30,57.40,61.30]},{ x:'07/18/2023',y:[65.00,67.40,61.30,65.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2356 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());