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/05/2023',y:[23.20,23.75,23.15,23.20]},{ x:'05/08/2023',y:[23.65,24.40,23.45,24.15]},{ x:'05/09/2023',y:[24.25,24.40,23.20,23.50]},{ x:'05/10/2023',y:[23.10,23.20,21.15,21.20]},{ x:'05/11/2023',y:[20.95,21.10,19.90,20.10]},{ x:'05/12/2023',y:[20.20,20.70,20.00,20.50]},{ x:'05/15/2023',y:[20.20,20.60,20.10,20.20]},{ x:'05/16/2023',y:[20.45,20.80,20.40,20.50]},{ x:'05/17/2023',y:[20.50,20.95,20.50,20.70]},{ x:'05/18/2023',y:[21.10,21.25,21.00,21.05]},{ x:'05/19/2023',y:[21.25,21.35,20.55,20.60]},{ x:'05/22/2023',y:[20.65,21.45,20.60,21.10]},{ x:'05/23/2023',y:[21.30,21.60,20.90,21.40]},{ x:'05/24/2023',y:[21.30,21.90,21.30,21.80]},{ x:'05/25/2023',y:[22.10,23.45,21.90,23.15]},{ x:'05/26/2023',y:[23.20,23.70,22.80,23.35]},{ x:'05/29/2023',y:[24.25,25.65,24.25,25.65]},{ x:'05/30/2023',y:[25.45,27.35,25.15,26.60]},{ x:'05/31/2023',y:[27.80,29.25,27.45,29.25]},{ x:'06/01/2023',y:[30.00,30.60,28.60,29.65]},{ x:'06/02/2023',y:[30.20,31.10,29.50,29.85]},{ x:'06/05/2023',y:[30.35,30.95,30.00,30.20]},{ x:'06/06/2023',y:[30.95,31.00,29.55,29.75]},{ x:'06/07/2023',y:[30.30,30.90,30.00,30.05]},{ x:'06/08/2023',y:[30.05,30.05,28.75,28.95]},{ x:'06/09/2023',y:[29.40,29.85,28.95,29.30]},{ x:'06/12/2023',y:[29.10,29.20,28.05,28.25]},{ x:'06/13/2023',y:[28.65,29.45,28.35,28.65]},{ x:'06/14/2023',y:[28.80,29.40,28.55,28.95]},{ x:'06/15/2023',y:[29.30,30.75,28.95,30.45]},{ x:'06/16/2023',y:[29.80,29.80,27.45,27.90]},{ x:'06/19/2023',y:[27.65,28.85,27.60,28.35]},{ x:'06/20/2023',y:[28.10,29.30,28.10,28.90]},{ x:'06/21/2023',y:[29.05,30.80,29.05,29.70]},{ x:'06/26/2023',y:[28.80,29.05,27.75,27.80]},{ x:'06/27/2023',y:[27.80,27.80,26.40,26.70]},{ x:'06/28/2023',y:[27.10,28.20,26.90,28.20]},{ x:'06/29/2023',y:[27.85,29.60,27.80,29.25]},{ x:'06/30/2023',y:[29.65,32.15,29.45,32.15]},{ x:'07/03/2023',y:[35.30,35.35,34.90,35.35]},{ x:'07/04/2023',y:[38.00,38.85,37.05,38.85]},{ x:'07/05/2023',y:[41.90,42.70,40.50,42.70]},{ x:'07/06/2023',y:[42.15,45.45,40.80,44.25]},{ x:'07/07/2023',y:[43.00,44.55,42.55,43.90]},{ x:'07/10/2023',y:[44.40,44.40,39.90,39.90]},{ x:'07/11/2023',y:[40.30,41.65,38.50,41.30]},{ x:'07/12/2023',y:[40.20,41.35,40.10,40.65]},{ x:'07/13/2023',y:[42.20,44.35,42.20,43.35]},{ x:'07/14/2023',y:[44.20,45.05,43.40,44.65]},{ x:'07/17/2023',y:[43.70,48.30,43.15,47.40]},{ x:'07/18/2023',y:[48.70,50.50,45.30,46.70]},{ x:'07/19/2023',y:[48.30,49.40,46.85,47.80]},{ x:'07/20/2023',y:[48.30,52.50,48.30,52.50]},{ x:'07/21/2023',y:[49.15,57.40,48.80,56.80]},{ x:'07/24/2023',y:[58.50,62.00,51.60,53.40]},{ x:'07/25/2023',y:[53.70,55.50,51.90,53.80]},{ x:'07/26/2023',y:[54.00,54.00,50.30,51.20]},{ x:'07/27/2023',y:[52.30,53.80,50.40,51.10]},{ x:'07/28/2023',y:[51.10,51.10,47.30,48.60]},{ x:'07/31/2023',y:[49.95,50.30,45.10,46.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3013 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());