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/24/2024',y:[37.60,37.60,37.10,37.55]},{ x:'04/25/2024',y:[37.55,38.30,37.50,38.20]},{ x:'04/26/2024',y:[38.20,38.65,38.00,38.20]},{ x:'04/29/2024',y:[38.50,39.00,38.45,38.70]},{ x:'04/30/2024',y:[39.00,39.00,37.35,38.30]},{ x:'05/02/2024',y:[38.30,39.40,38.30,38.80]},{ x:'05/03/2024',y:[39.05,39.95,38.75,39.65]},{ x:'05/06/2024',y:[40.00,42.35,39.85,41.45]},{ x:'05/07/2024',y:[41.80,41.80,38.25,39.15]},{ x:'05/08/2024',y:[39.45,39.45,36.50,37.75]},{ x:'05/09/2024',y:[37.80,38.55,36.20,36.60]},{ x:'05/10/2024',y:[36.45,37.35,35.40,36.80]},{ x:'05/13/2024',y:[36.90,37.75,36.20,36.80]},{ x:'05/14/2024',y:[36.85,36.90,35.00,35.30]},{ x:'05/15/2024',y:[35.15,36.40,35.15,35.85]},{ x:'05/16/2024',y:[35.85,37.10,35.85,36.75]},{ x:'05/17/2024',y:[36.75,37.15,36.70,37.05]},{ x:'05/20/2024',y:[37.05,37.55,36.70,36.85]},{ x:'05/21/2024',y:[36.80,37.00,36.30,36.40]},{ x:'05/22/2024',y:[36.45,36.70,36.40,36.55]},{ x:'05/23/2024',y:[36.60,36.60,35.05,35.30]},{ x:'05/24/2024',y:[35.05,35.75,35.05,35.70]},{ x:'06/11/2024',y:[41.00,41.00,39.20,39.70]},{ x:'06/12/2024',y:[39.70,39.85,38.90,39.70]},{ x:'06/13/2024',y:[39.75,40.20,39.70,39.95]},{ x:'06/14/2024',y:[40.60,42.00,40.60,40.80]},{ x:'06/17/2024',y:[41.10,41.30,40.10,40.40]},{ x:'06/18/2024',y:[40.45,41.10,40.45,40.90]},{ x:'06/19/2024',y:[40.80,40.80,39.90,40.50]},{ x:'06/20/2024',y:[40.70,40.80,40.50,40.75]},{ x:'06/21/2024',y:[40.75,40.75,39.90,40.40]},{ x:'06/24/2024',y:[40.40,40.50,40.00,40.10]},{ x:'06/25/2024',y:[40.40,41.00,40.00,40.55]},{ x:'06/26/2024',y:[40.60,40.90,40.50,40.90]},{ x:'06/27/2024',y:[41.05,41.90,40.95,41.85]},{ x:'06/28/2024',y:[41.90,42.75,41.90,41.90]},{ x:'07/01/2024',y:[41.70,42.90,41.50,42.15]},{ x:'07/02/2024',y:[42.40,42.75,42.15,42.45]},{ x:'07/03/2024',y:[42.45,42.45,41.85,41.85]},{ x:'07/04/2024',y:[42.05,42.35,41.75,41.90]},{ x:'07/05/2024',y:[42.00,42.00,41.90,42.00]},{ x:'07/12/2024',y:[43.95,44.85,43.85,44.15]},{ x:'07/15/2024',y:[44.50,46.15,44.50,46.00]},{ x:'07/16/2024',y:[46.00,48.30,46.00,48.30]},{ x:'07/17/2024',y:[49.00,49.95,48.30,48.50]},{ x:'07/18/2024',y:[48.50,49.80,47.95,48.70]},{ x:'07/19/2024',y:[48.70,48.80,46.50,48.75]},{ x:'07/22/2024',y:[48.75,48.75,46.60,48.00]},{ x:'07/23/2024',y:[46.90,49.35,46.90,48.15]},{ x:'07/26/2024',y:[48.15,50.90,47.50,50.70]},{ x:'07/29/2024',y:[50.70,53.30,50.70,51.10]},{ x:'07/30/2024',y:[51.10,54.80,51.00,54.60]},{ x:'07/31/2024',y:[55.00,55.80,53.80,55.30]},{ x:'08/01/2024',y:[54.90,57.70,54.00,57.00]},{ x:'08/02/2024',y:[56.50,57.20,53.20,53.20]},{ x:'08/05/2024',y:[48.00,49.50,47.90,47.90]},{ x:'08/06/2024',y:[47.90,48.45,43.15,43.15]},{ x:'08/07/2024',y:[42.65,47.45,41.35,47.25]},{ x:'08/08/2024',y:[46.90,48.00,45.50,47.85]},{ x:'08/09/2024',y:[49.10,52.10,49.10,51.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5206 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());