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/06/2023',y:[46.20,46.60,44.95,45.70]},{ x:'04/07/2023',y:[46.00,49.35,45.55,49.10]},{ x:'04/10/2023',y:[49.10,50.70,49.00,49.00]},{ x:'04/11/2023',y:[49.10,49.40,48.00,48.85]},{ x:'04/12/2023',y:[48.85,49.00,47.00,48.00]},{ x:'04/13/2023',y:[48.30,49.40,47.05,48.30]},{ x:'04/14/2023',y:[48.05,51.40,47.85,50.40]},{ x:'04/17/2023',y:[50.40,51.70,49.65,50.00]},{ x:'04/18/2023',y:[50.40,52.40,49.50,51.60]},{ x:'04/19/2023',y:[52.10,52.10,50.20,50.60]},{ x:'04/20/2023',y:[50.40,50.40,45.55,45.55]},{ x:'04/21/2023',y:[45.55,46.70,42.95,45.00]},{ x:'04/24/2023',y:[45.75,46.95,45.10,46.50]},{ x:'04/25/2023',y:[46.50,48.75,45.50,48.40]},{ x:'04/26/2023',y:[48.75,49.90,47.90,49.75]},{ x:'04/27/2023',y:[48.60,49.50,47.00,47.00]},{ x:'04/28/2023',y:[47.95,49.70,47.50,48.55]},{ x:'05/02/2023',y:[48.45,48.45,46.00,46.95]},{ x:'05/03/2023',y:[47.35,47.35,45.40,45.40]},{ x:'05/04/2023',y:[45.45,47.00,45.20,45.80]},{ x:'05/05/2023',y:[46.00,46.10,45.20,45.80]},{ x:'05/08/2023',y:[45.80,46.00,45.35,45.75]},{ x:'05/09/2023',y:[45.40,45.40,41.20,41.20]},{ x:'05/10/2023',y:[40.30,41.45,38.90,40.85]},{ x:'05/11/2023',y:[40.85,42.00,39.20,40.55]},{ x:'05/12/2023',y:[39.00,39.00,36.50,37.20]},{ x:'05/15/2023',y:[36.25,36.90,33.50,34.50]},{ x:'05/16/2023',y:[34.85,37.00,33.80,36.95]},{ x:'05/17/2023',y:[36.95,37.90,36.25,37.50]},{ x:'05/18/2023',y:[38.00,38.65,37.00,37.30]},{ x:'05/19/2023',y:[38.00,38.00,36.10,36.70]},{ x:'05/22/2023',y:[37.40,37.40,36.00,36.70]},{ x:'05/23/2023',y:[36.80,36.95,35.90,36.70]},{ x:'05/24/2023',y:[36.95,36.95,35.80,36.00]},{ x:'05/25/2023',y:[35.80,36.00,34.35,34.90]},{ x:'05/26/2023',y:[35.10,35.45,33.90,34.60]},{ x:'05/29/2023',y:[34.70,35.25,33.95,34.35]},{ x:'05/30/2023',y:[34.35,34.70,32.80,32.95]},{ x:'05/31/2023',y:[33.30,33.40,32.80,33.30]},{ x:'06/01/2023',y:[33.30,33.45,32.00,32.45]},{ x:'06/02/2023',y:[32.55,33.00,32.10,32.80]},{ x:'06/05/2023',y:[33.00,35.95,32.70,35.15]},{ x:'06/06/2023',y:[35.00,35.70,34.30,35.30]},{ x:'06/07/2023',y:[35.85,38.80,35.30,38.80]},{ x:'06/08/2023',y:[39.80,42.65,39.70,42.65]},{ x:'06/09/2023',y:[45.85,46.90,43.50,45.75]},{ x:'06/12/2023',y:[44.50,45.05,41.20,41.20]},{ x:'06/13/2023',y:[40.00,44.30,40.00,43.20]},{ x:'06/14/2023',y:[42.00,43.60,40.60,41.35]},{ x:'06/15/2023',y:[41.90,42.80,37.30,39.50]},{ x:'06/16/2023',y:[39.50,39.60,37.85,39.40]},{ x:'06/19/2023',y:[39.45,40.60,39.00,39.80]},{ x:'06/20/2023',y:[39.80,39.80,37.90,39.30]},{ x:'06/21/2023',y:[39.50,39.50,38.00,38.20]},{ x:'06/26/2023',y:[38.60,38.60,37.50,38.05]},{ x:'06/27/2023',y:[39.40,39.40,37.50,37.80]},{ x:'06/28/2023',y:[37.90,38.40,37.10,38.00]},{ x:'06/29/2023',y:[38.55,40.55,38.50,39.80]},{ x:'06/30/2023',y:[39.80,40.50,39.30,39.60]},{ x:'07/03/2023',y:[40.30,40.90,39.60,39.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6101 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());