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:'03/07/2024',y:[48.90,48.90,47.75,47.75]},{ x:'03/08/2024',y:[47.90,47.95,46.85,47.10]},{ x:'03/11/2024',y:[42.75,46.25,42.75,46.00]},{ x:'03/12/2024',y:[46.00,46.50,46.00,46.30]},{ x:'03/13/2024',y:[46.30,46.30,44.95,44.95]},{ x:'03/14/2024',y:[44.95,46.00,44.50,46.00]},{ x:'03/15/2024',y:[45.80,46.40,45.70,46.15]},{ x:'03/18/2024',y:[46.15,46.30,45.85,46.10]},{ x:'03/19/2024',y:[45.95,47.65,45.95,46.90]},{ x:'03/20/2024',y:[46.95,47.90,46.95,47.80]},{ x:'03/21/2024',y:[47.95,48.15,47.70,48.10]},{ x:'03/22/2024',y:[47.80,47.95,47.75,47.95]},{ x:'03/25/2024',y:[47.95,48.30,47.80,48.30]},{ x:'03/26/2024',y:[48.30,49.65,48.30,49.15]},{ x:'03/27/2024',y:[49.80,52.50,49.60,51.80]},{ x:'03/28/2024',y:[53.00,53.00,51.30,51.30]},{ x:'03/29/2024',y:[51.40,52.20,51.30,51.80]},{ x:'04/01/2024',y:[51.80,52.40,51.40,51.90]},{ x:'04/02/2024',y:[52.90,55.00,52.90,54.30]},{ x:'04/03/2024',y:[55.20,55.60,53.50,54.00]},{ x:'04/08/2024',y:[54.60,59.00,54.50,58.70]},{ x:'04/09/2024',y:[59.90,60.90,59.00,60.90]},{ x:'04/10/2024',y:[61.20,64.30,60.50,62.10]},{ x:'04/11/2024',y:[62.40,63.90,60.50,60.60]},{ x:'04/12/2024',y:[60.60,61.50,58.30,60.40]},{ x:'04/15/2024',y:[60.40,60.90,58.50,59.00]},{ x:'04/16/2024',y:[60.50,60.50,53.10,53.80]},{ x:'04/17/2024',y:[53.10,58.20,53.10,56.70]},{ x:'04/18/2024',y:[56.00,62.30,56.00,62.30]},{ x:'04/19/2024',y:[60.20,65.90,60.00,63.80]},{ x:'04/22/2024',y:[64.80,67.30,61.80,62.20]},{ x:'04/23/2024',y:[64.00,64.50,62.50,64.40]},{ x:'04/24/2024',y:[65.20,65.30,62.60,64.30]},{ x:'04/25/2024',y:[64.30,66.80,64.30,66.60]},{ x:'04/26/2024',y:[67.80,69.40,67.50,69.00]},{ x:'04/29/2024',y:[69.80,73.90,69.10,71.80]},{ x:'04/30/2024',y:[72.00,74.90,68.70,72.70]},{ x:'05/02/2024',y:[73.00,78.00,73.00,76.70]},{ x:'05/03/2024',y:[80.00,84.30,77.30,82.80]},{ x:'05/06/2024',y:[83.90,86.50,81.50,84.00]},{ x:'05/07/2024',y:[84.10,89.00,80.10,81.30]},{ x:'05/08/2024',y:[80.00,81.30,76.70,77.30]},{ x:'05/09/2024',y:[76.80,80.80,73.20,73.20]},{ x:'05/10/2024',y:[73.60,75.30,71.10,73.50]},{ x:'05/13/2024',y:[73.60,75.20,71.80,73.60]},{ x:'05/14/2024',y:[72.20,73.80,69.00,69.20]},{ x:'05/15/2024',y:[69.20,70.90,68.40,69.30]},{ x:'05/16/2024',y:[69.30,72.60,69.30,72.10]},{ x:'05/17/2024',y:[72.10,73.60,71.60,73.10]},{ x:'05/20/2024',y:[74.00,75.50,72.80,72.80]},{ x:'05/21/2024',y:[72.40,72.40,70.70,71.50]},{ x:'05/22/2024',y:[73.50,73.50,71.00,72.20]},{ x:'05/23/2024',y:[73.10,73.10,66.50,66.70]},{ x:'05/24/2024',y:[66.70,69.30,66.40,68.00]},{ x:'06/11/2024',y:[77.30,77.30,70.60,71.60]},{ x:'06/12/2024',y:[71.40,71.50,69.30,71.40]},{ x:'06/13/2024',y:[71.80,72.20,71.20,71.30]},{ x:'06/14/2024',y:[71.00,73.80,71.00,72.80]},{ x:'06/17/2024',y:[72.80,72.80,72.20,72.40]},{ x:'06/18/2024',y:[72.40,72.80,72.10,72.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4907 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());