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/29/2024',y:[36.70,37.30,36.70,36.75]},{ x:'04/30/2024',y:[37.25,37.30,36.45,36.70]},{ x:'05/02/2024',y:[36.90,36.90,36.20,36.65]},{ x:'05/03/2024',y:[36.80,37.05,36.00,36.05]},{ x:'05/06/2024',y:[36.95,38.75,36.70,37.25]},{ x:'05/07/2024',y:[37.65,38.70,36.40,38.20]},{ x:'05/08/2024',y:[38.30,39.20,37.50,38.25]},{ x:'05/09/2024',y:[38.40,39.00,37.75,37.85]},{ x:'05/10/2024',y:[38.25,38.35,36.90,38.10]},{ x:'05/13/2024',y:[38.30,38.40,37.05,37.30]},{ x:'05/14/2024',y:[37.30,37.80,37.25,37.65]},{ x:'05/15/2024',y:[37.90,38.15,37.05,37.05]},{ x:'05/16/2024',y:[37.50,40.75,37.00,40.75]},{ x:'05/17/2024',y:[41.00,43.20,38.50,40.00]},{ x:'05/20/2024',y:[40.05,40.05,38.55,38.55]},{ x:'05/21/2024',y:[38.95,41.70,38.60,40.75]},{ x:'05/22/2024',y:[41.15,44.40,41.15,43.35]},{ x:'05/23/2024',y:[44.10,44.60,41.20,41.95]},{ x:'05/24/2024',y:[41.30,43.30,40.40,42.65]},{ x:'06/11/2024',y:[46.20,46.20,43.90,44.60]},{ x:'06/12/2024',y:[44.80,44.95,43.40,44.30]},{ x:'06/13/2024',y:[45.00,46.00,44.45,44.45]},{ x:'06/14/2024',y:[44.45,44.65,43.80,43.85]},{ x:'06/17/2024',y:[43.85,45.15,43.85,44.70]},{ x:'06/18/2024',y:[44.55,45.25,44.15,44.25]},{ x:'06/19/2024',y:[45.00,45.35,43.90,43.95]},{ x:'06/20/2024',y:[44.20,44.40,43.95,44.25]},{ x:'06/21/2024',y:[44.05,44.20,43.20,44.10]},{ x:'06/24/2024',y:[44.00,45.70,43.40,44.65]},{ x:'06/25/2024',y:[44.50,45.50,43.85,45.30]},{ x:'06/26/2024',y:[45.00,45.55,44.80,44.80]},{ x:'06/27/2024',y:[44.80,45.40,44.00,44.00]},{ x:'06/28/2024',y:[44.10,48.40,44.00,47.80]},{ x:'07/01/2024',y:[48.10,49.90,47.80,48.70]},{ x:'07/02/2024',y:[48.95,49.00,46.80,47.55]},{ x:'07/03/2024',y:[48.60,52.30,48.55,52.30]},{ x:'07/04/2024',y:[56.30,57.20,53.00,53.20]},{ x:'07/05/2024',y:[53.00,58.30,53.00,58.30]},{ x:'07/12/2024',y:[51.10,52.40,50.60,51.00]},{ x:'07/15/2024',y:[51.10,51.40,49.90,50.30]},{ x:'07/16/2024',y:[50.40,51.00,49.20,49.30]},{ x:'07/17/2024',y:[49.65,50.50,49.35,49.60]},{ x:'07/18/2024',y:[49.05,49.35,48.05,48.20]},{ x:'07/19/2024',y:[48.00,48.60,46.40,46.70]},{ x:'07/22/2024',y:[46.60,46.95,44.85,45.45]},{ x:'07/23/2024',y:[46.10,46.90,45.30,45.90]},{ x:'07/26/2024',y:[44.80,45.00,43.30,44.65]},{ x:'07/29/2024',y:[45.30,45.55,42.90,42.90]},{ x:'07/30/2024',y:[42.30,43.30,41.85,43.15]},{ x:'07/31/2024',y:[42.60,43.80,42.00,43.05]},{ x:'08/01/2024',y:[44.80,47.35,44.30,46.75]},{ x:'08/02/2024',y:[45.50,46.80,44.70,44.70]},{ x:'08/05/2024',y:[41.15,42.60,40.25,40.25]},{ x:'08/06/2024',y:[39.50,41.00,36.25,38.45]},{ x:'08/07/2024',y:[39.50,42.25,39.10,42.25]},{ x:'08/08/2024',y:[41.20,43.40,41.05,42.10]},{ x:'08/09/2024',y:[43.55,45.20,43.25,43.25]},{ x:'08/12/2024',y:[43.50,44.55,43.45,43.70]},{ x:'08/13/2024',y:[43.95,44.60,42.55,44.55]},{ x:'08/14/2024',y:[45.00,45.40,43.95,44.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2417 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());