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:[39.20,40.70,39.00,40.70]},{ x:'04/30/2024',y:[41.00,42.05,40.70,41.40]},{ x:'05/02/2024',y:[41.80,41.90,41.15,41.90]},{ x:'05/03/2024',y:[42.15,42.90,42.10,42.20]},{ x:'05/06/2024',y:[42.40,42.65,42.25,42.45]},{ x:'05/07/2024',y:[42.45,43.20,41.90,42.30]},{ x:'05/08/2024',y:[42.20,42.25,41.85,42.10]},{ x:'05/09/2024',y:[41.90,42.30,41.40,41.70]},{ x:'05/10/2024',y:[41.80,41.80,40.60,40.90]},{ x:'05/13/2024',y:[40.85,41.30,40.40,40.75]},{ x:'05/14/2024',y:[40.75,41.65,40.75,41.35]},{ x:'05/15/2024',y:[41.35,41.50,40.70,41.10]},{ x:'05/16/2024',y:[41.65,42.10,41.40,41.50]},{ x:'05/17/2024',y:[41.50,42.20,40.85,41.40]},{ x:'05/20/2024',y:[41.75,41.75,41.05,41.35]},{ x:'05/21/2024',y:[41.40,41.55,40.50,40.70]},{ x:'05/22/2024',y:[40.70,42.40,40.70,41.75]},{ x:'05/23/2024',y:[41.30,41.65,40.35,40.40]},{ x:'05/24/2024',y:[40.40,40.80,39.70,40.70]},{ x:'06/11/2024',y:[39.75,40.30,38.80,38.90]},{ x:'06/12/2024',y:[38.95,39.45,38.70,38.95]},{ x:'06/13/2024',y:[39.05,39.15,38.50,38.55]},{ x:'06/14/2024',y:[38.55,39.40,38.55,39.05]},{ x:'06/17/2024',y:[39.00,39.15,38.80,38.90]},{ x:'06/18/2024',y:[39.00,39.00,38.05,38.20]},{ x:'06/19/2024',y:[38.20,38.60,37.75,37.85]},{ x:'06/20/2024',y:[37.85,38.55,37.85,38.55]},{ x:'06/21/2024',y:[38.60,38.60,37.90,38.00]},{ x:'06/24/2024',y:[38.05,38.40,37.65,38.05]},{ x:'06/25/2024',y:[38.40,38.70,37.55,38.70]},{ x:'06/26/2024',y:[38.70,39.30,38.50,38.65]},{ x:'06/27/2024',y:[38.55,38.55,38.00,38.00]},{ x:'06/28/2024',y:[38.20,39.10,38.20,38.70]},{ x:'07/01/2024',y:[38.80,39.20,38.05,38.10]},{ x:'07/02/2024',y:[38.10,38.10,37.60,37.80]},{ x:'07/03/2024',y:[37.80,38.40,37.80,38.05]},{ x:'07/04/2024',y:[38.05,38.35,37.90,38.15]},{ x:'07/05/2024',y:[38.15,39.20,38.15,39.05]},{ x:'07/12/2024',y:[49.50,52.00,49.50,52.00]},{ x:'07/15/2024',y:[56.60,57.00,52.00,54.90]},{ x:'07/16/2024',y:[53.50,57.00,53.20,54.70]},{ x:'07/17/2024',y:[54.50,54.50,53.00,53.10]},{ x:'07/18/2024',y:[52.50,52.50,50.00,51.60]},{ x:'07/19/2024',y:[52.00,53.10,51.60,52.50]},{ x:'07/22/2024',y:[52.60,53.80,50.60,51.90]},{ x:'07/23/2024',y:[52.10,53.40,52.10,53.00]},{ x:'07/26/2024',y:[50.00,52.10,50.00,51.50]},{ x:'07/29/2024',y:[53.10,53.10,51.70,52.60]},{ x:'07/30/2024',y:[52.70,54.00,52.60,53.90]},{ x:'07/31/2024',y:[53.20,54.20,53.20,54.00]},{ x:'08/01/2024',y:[54.50,55.50,54.30,55.50]},{ x:'08/02/2024',y:[53.30,54.90,51.40,51.60]},{ x:'08/05/2024',y:[49.50,49.60,46.50,46.95]},{ x:'08/06/2024',y:[48.05,50.00,43.10,49.05]},{ x:'08/07/2024',y:[48.20,51.40,48.20,50.30]},{ x:'08/08/2024',y:[48.80,50.60,48.80,49.75]},{ x:'08/09/2024',y:[50.60,51.10,49.85,50.00]},{ x:'08/12/2024',y:[50.00,54.50,50.00,53.80]},{ x:'08/13/2024',y:[54.40,54.60,52.80,53.80]},{ x:'08/14/2024',y:[54.10,54.80,52.40,52.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4927 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());