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:[47.10,47.55,46.85,46.90]},{ x:'05/02/2024',y:[46.55,46.55,45.45,45.55]},{ x:'05/03/2024',y:[45.70,46.60,45.20,45.60]},{ x:'05/06/2024',y:[45.30,45.70,44.70,44.70]},{ x:'05/07/2024',y:[44.75,44.75,42.20,43.05]},{ x:'05/08/2024',y:[42.95,43.70,42.30,43.45]},{ x:'05/09/2024',y:[43.45,43.60,42.90,43.00]},{ x:'05/10/2024',y:[43.00,43.25,42.50,43.00]},{ x:'05/13/2024',y:[43.50,43.55,43.00,43.55]},{ x:'05/14/2024',y:[43.55,43.70,41.95,42.20]},{ x:'05/15/2024',y:[42.20,43.00,40.60,42.80]},{ x:'05/16/2024',y:[42.60,43.20,42.60,42.85]},{ x:'05/17/2024',y:[38.60,38.60,38.60,38.60]},{ x:'05/20/2024',y:[37.10,38.00,35.05,36.95]},{ x:'05/21/2024',y:[37.25,40.05,37.25,39.55]},{ x:'05/22/2024',y:[38.15,40.60,38.15,39.00]},{ x:'05/23/2024',y:[39.55,39.55,38.00,38.10]},{ x:'05/24/2024',y:[38.10,38.45,37.30,38.00]},{ x:'06/11/2024',y:[42.45,43.05,41.70,41.80]},{ x:'06/12/2024',y:[42.95,42.95,41.30,41.85]},{ x:'06/13/2024',y:[42.30,42.70,41.55,42.00]},{ x:'06/14/2024',y:[42.45,42.65,41.05,41.05]},{ x:'06/17/2024',y:[40.70,41.30,40.40,40.40]},{ x:'06/18/2024',y:[39.10,40.60,39.10,39.70]},{ x:'06/19/2024',y:[41.00,41.00,39.25,39.30]},{ x:'06/20/2024',y:[39.40,39.95,39.40,39.70]},{ x:'06/21/2024',y:[40.05,41.05,40.05,40.80]},{ x:'06/24/2024',y:[41.60,44.85,41.30,43.85]},{ x:'06/25/2024',y:[43.00,43.20,41.60,42.10]},{ x:'06/26/2024',y:[42.40,44.30,42.35,44.00]},{ x:'06/27/2024',y:[44.95,45.90,44.40,44.55]},{ x:'06/28/2024',y:[45.05,46.00,45.05,45.65]},{ x:'07/01/2024',y:[50.20,50.20,50.20,50.20]},{ x:'07/02/2024',y:[55.20,55.20,55.20,55.20]},{ x:'07/03/2024',y:[60.70,60.70,60.70,60.70]},{ x:'07/04/2024',y:[66.70,66.70,66.70,66.70]},{ x:'07/05/2024',y:[73.30,73.30,65.10,67.60]},{ x:'07/12/2024',y:[70.00,70.50,67.20,68.80]},{ x:'07/15/2024',y:[68.80,70.30,68.10,68.60]},{ x:'07/16/2024',y:[68.50,69.40,68.50,68.80]},{ x:'07/17/2024',y:[69.20,70.00,69.00,69.10]},{ x:'07/18/2024',y:[69.20,69.20,68.40,68.80]},{ x:'07/19/2024',y:[69.00,71.60,69.00,69.10]},{ x:'07/22/2024',y:[68.50,68.50,62.20,62.20]},{ x:'07/23/2024',y:[61.50,61.80,56.00,57.20]},{ x:'07/26/2024',y:[56.80,56.80,55.00,55.60]},{ x:'07/29/2024',y:[55.90,57.20,52.70,54.30]},{ x:'07/30/2024',y:[54.40,55.40,54.00,54.70]},{ x:'07/31/2024',y:[54.60,55.30,53.80,54.00]},{ x:'08/01/2024',y:[54.00,54.70,53.30,54.00]},{ x:'08/02/2024',y:[54.00,54.00,52.10,52.90]},{ x:'08/05/2024',y:[53.00,54.50,48.20,48.80]},{ x:'08/06/2024',y:[48.80,50.90,43.95,47.00]},{ x:'08/07/2024',y:[46.00,50.00,46.00,49.95]},{ x:'08/08/2024',y:[49.50,49.65,48.00,49.50]},{ x:'08/09/2024',y:[50.10,51.90,50.10,50.90]},{ x:'08/12/2024',y:[51.50,52.00,50.80,51.20]},{ x:'08/13/2024',y:[51.80,51.80,50.50,51.40]},{ x:'08/14/2024',y:[51.70,53.30,51.20,51.90]},{ x:'08/15/2024',y:[51.00,51.80,51.00,51.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6541 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());