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/30/2024',y:[42.30,45.30,42.30,42.70]},{ x:'05/02/2024',y:[42.70,42.70,41.70,41.70]},{ x:'05/03/2024',y:[42.10,42.55,41.55,41.65]},{ x:'05/06/2024',y:[42.10,42.75,42.10,42.60]},{ x:'05/07/2024',y:[42.90,43.35,42.20,42.30]},{ x:'05/08/2024',y:[42.45,42.45,41.25,41.50]},{ x:'05/09/2024',y:[42.20,44.25,42.20,43.80]},{ x:'05/10/2024',y:[44.25,44.30,42.80,43.55]},{ x:'05/13/2024',y:[43.85,44.95,42.35,44.60]},{ x:'05/14/2024',y:[44.45,45.80,43.05,43.05]},{ x:'05/15/2024',y:[43.05,43.90,42.75,43.25]},{ x:'05/16/2024',y:[43.80,44.90,43.60,44.05]},{ x:'05/17/2024',y:[44.60,48.45,44.25,48.45]},{ x:'05/20/2024',y:[48.70,50.10,45.60,47.00]},{ x:'05/21/2024',y:[47.00,47.80,46.05,46.15]},{ x:'05/22/2024',y:[46.60,49.30,46.20,47.00]},{ x:'05/23/2024',y:[48.40,49.45,46.30,47.70]},{ x:'05/24/2024',y:[47.30,48.75,46.60,48.50]},{ x:'06/11/2024',y:[48.60,49.60,47.15,48.30]},{ x:'06/12/2024',y:[49.00,49.70,47.70,47.95]},{ x:'06/13/2024',y:[48.10,49.30,48.10,48.10]},{ x:'06/14/2024',y:[48.70,50.50,48.35,49.85]},{ x:'06/17/2024',y:[50.40,50.40,48.50,48.50]},{ x:'06/18/2024',y:[47.55,47.55,44.20,45.50]},{ x:'06/19/2024',y:[45.85,49.80,45.85,46.50]},{ x:'06/20/2024',y:[47.35,47.45,45.80,46.20]},{ x:'06/21/2024',y:[46.45,46.50,45.70,46.00]},{ x:'06/24/2024',y:[46.00,46.35,45.60,45.75]},{ x:'06/25/2024',y:[45.75,46.20,44.70,46.20]},{ x:'06/26/2024',y:[46.95,50.80,46.95,50.80]},{ x:'06/27/2024',y:[51.00,53.50,49.65,50.40]},{ x:'06/28/2024',y:[50.10,51.30,49.50,49.55]},{ x:'07/01/2024',y:[49.80,51.10,49.00,49.00]},{ x:'07/02/2024',y:[49.80,50.70,48.70,49.15]},{ x:'07/03/2024',y:[49.60,53.00,49.35,52.70]},{ x:'07/04/2024',y:[53.10,54.30,52.00,52.70]},{ x:'07/05/2024',y:[53.50,57.90,53.30,57.90]},{ x:'07/12/2024',y:[52.70,53.40,51.50,52.20]},{ x:'07/15/2024',y:[52.50,53.80,51.00,51.00]},{ x:'07/16/2024',y:[51.10,53.40,51.10,53.10]},{ x:'07/17/2024',y:[52.70,53.50,52.30,52.40]},{ x:'07/18/2024',y:[51.80,52.00,50.30,51.10]},{ x:'07/19/2024',y:[51.10,51.10,48.80,49.00]},{ x:'07/22/2024',y:[48.75,49.40,47.70,48.10]},{ x:'07/23/2024',y:[48.80,48.85,47.10,47.10]},{ x:'07/26/2024',y:[45.80,45.80,44.20,44.95]},{ x:'07/29/2024',y:[45.00,45.80,43.00,43.50]},{ x:'07/30/2024',y:[43.50,45.15,43.10,45.15]},{ x:'07/31/2024',y:[45.10,46.45,44.20,45.70]},{ x:'08/01/2024',y:[46.80,47.00,46.20,46.30]},{ x:'08/02/2024',y:[46.10,46.10,44.35,44.35]},{ x:'08/05/2024',y:[42.00,43.20,39.95,39.95]},{ x:'08/06/2024',y:[40.25,41.20,36.00,39.65]},{ x:'08/07/2024',y:[39.85,42.45,39.85,42.20]},{ x:'08/08/2024',y:[41.50,43.00,40.85,42.10]},{ x:'08/09/2024',y:[44.00,44.15,42.35,42.60]},{ x:'08/12/2024',y:[43.60,44.95,43.15,44.45]},{ x:'08/13/2024',y:[45.50,45.65,43.80,45.45]},{ x:'08/14/2024',y:[46.00,46.35,44.65,45.30]},{ x:'08/15/2024',y:[45.35,47.05,44.60,46.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4976 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());