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/02/2024',y:[49.15,49.30,47.85,47.85]},{ x:'04/03/2024',y:[47.85,48.20,47.00,47.90]},{ x:'04/08/2024',y:[48.55,49.30,47.55,48.70]},{ x:'04/09/2024',y:[49.00,50.30,48.75,49.60]},{ x:'04/10/2024',y:[50.00,50.40,49.05,49.05]},{ x:'04/11/2024',y:[48.95,49.00,47.85,48.10]},{ x:'04/12/2024',y:[48.35,49.65,48.35,48.75]},{ x:'04/15/2024',y:[49.60,52.00,48.75,48.75]},{ x:'04/16/2024',y:[48.95,49.70,47.25,47.30]},{ x:'04/17/2024',y:[47.60,49.70,47.60,48.95]},{ x:'04/18/2024',y:[48.60,48.80,47.55,47.80]},{ x:'04/19/2024',y:[47.20,47.20,45.10,46.25]},{ x:'04/22/2024',y:[45.60,46.20,44.15,44.20]},{ x:'04/23/2024',y:[45.00,45.30,43.90,44.15]},{ x:'04/24/2024',y:[44.80,45.45,44.60,45.10]},{ x:'04/25/2024',y:[45.10,45.10,44.25,44.40]},{ x:'04/26/2024',y:[44.80,45.15,44.40,44.40]},{ x:'04/29/2024',y:[44.50,45.00,44.10,45.00]},{ x:'04/30/2024',y:[44.85,44.95,44.50,44.50]},{ x:'05/02/2024',y:[44.30,44.90,44.00,44.70]},{ x:'05/03/2024',y:[45.10,45.35,43.40,43.40]},{ x:'05/06/2024',y:[43.50,43.65,42.60,43.15]},{ x:'05/07/2024',y:[43.40,44.10,42.55,42.80]},{ x:'05/08/2024',y:[43.15,44.45,42.80,44.45]},{ x:'05/09/2024',y:[44.55,44.55,42.90,43.00]},{ x:'05/10/2024',y:[43.20,43.30,42.50,42.95]},{ x:'05/13/2024',y:[44.05,44.80,43.60,44.20]},{ x:'05/14/2024',y:[43.80,44.50,43.80,44.00]},{ x:'05/15/2024',y:[44.45,44.90,44.35,44.60]},{ x:'05/16/2024',y:[45.20,45.75,44.90,44.90]},{ x:'05/17/2024',y:[45.00,45.00,43.70,43.80]},{ x:'05/20/2024',y:[43.55,45.45,43.55,44.50]},{ x:'05/21/2024',y:[45.00,47.15,44.80,46.95]},{ x:'05/22/2024',y:[47.80,47.80,46.70,47.80]},{ x:'05/23/2024',y:[47.80,47.80,46.40,47.10]},{ x:'05/24/2024',y:[46.70,47.35,46.25,46.70]},{ x:'06/11/2024',y:[49.90,49.90,48.40,48.75]},{ x:'06/12/2024',y:[49.00,49.15,48.15,48.55]},{ x:'06/13/2024',y:[49.00,53.40,48.85,53.40]},{ x:'06/14/2024',y:[53.90,53.90,51.90,52.20]},{ x:'06/17/2024',y:[53.90,57.30,53.70,55.70]},{ x:'06/18/2024',y:[56.70,58.00,55.60,56.60]},{ x:'06/19/2024',y:[58.40,61.60,57.10,58.00]},{ x:'06/20/2024',y:[58.30,61.40,56.70,60.20]},{ x:'06/21/2024',y:[60.00,66.20,59.10,66.20]},{ x:'06/24/2024',y:[67.00,70.10,66.20,66.50]},{ x:'06/25/2024',y:[66.00,69.50,61.50,69.00]},{ x:'06/26/2024',y:[69.20,70.10,66.50,67.50]},{ x:'06/27/2024',y:[66.90,68.70,64.50,65.30]},{ x:'06/28/2024',y:[65.70,67.30,64.60,65.30]},{ x:'07/01/2024',y:[64.80,65.30,63.50,64.00]},{ x:'07/02/2024',y:[65.00,66.20,62.00,63.10]},{ x:'07/03/2024',y:[63.80,68.20,63.60,66.80]},{ x:'07/04/2024',y:[67.30,72.50,66.60,68.50]},{ x:'07/05/2024',y:[68.90,75.30,68.10,75.30]},{ x:'07/12/2024',y:[72.90,74.50,72.00,72.20]},{ x:'07/15/2024',y:[73.00,73.00,70.80,71.10]},{ x:'07/16/2024',y:[72.20,73.50,70.20,70.20]},{ x:'07/17/2024',y:[71.00,73.00,70.80,71.50]},{ x:'07/18/2024',y:[69.50,72.30,68.50,71.40]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "1785 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());