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/26/2024',y:[49.10,49.25,48.70,48.75]},{ x:'04/29/2024',y:[48.90,49.60,48.90,49.60]},{ x:'04/30/2024',y:[49.75,50.90,49.55,50.20]},{ x:'05/02/2024',y:[50.00,50.20,49.65,50.20]},{ x:'05/03/2024',y:[50.60,50.80,50.20,50.30]},{ x:'05/06/2024',y:[50.80,51.10,50.40,50.80]},{ x:'05/07/2024',y:[51.00,51.30,50.30,50.60]},{ x:'05/08/2024',y:[51.40,52.80,51.30,52.10]},{ x:'05/09/2024',y:[52.20,53.10,51.60,51.90]},{ x:'05/10/2024',y:[52.00,52.00,51.10,51.80]},{ x:'05/13/2024',y:[52.70,52.90,51.90,52.50]},{ x:'05/14/2024',y:[52.50,52.60,52.20,52.20]},{ x:'05/15/2024',y:[52.30,52.60,52.10,52.30]},{ x:'05/16/2024',y:[52.90,57.50,52.30,57.50]},{ x:'05/17/2024',y:[60.90,63.20,59.80,60.20]},{ x:'05/20/2024',y:[60.50,66.20,60.50,66.20]},{ x:'05/21/2024',y:[68.70,69.00,65.40,68.00]},{ x:'05/22/2024',y:[68.20,68.20,63.60,63.80]},{ x:'05/23/2024',y:[64.40,64.40,61.30,62.00]},{ x:'05/24/2024',y:[62.40,63.80,61.70,63.40]},{ x:'06/11/2024',y:[67.80,68.60,65.80,67.30]},{ x:'06/12/2024',y:[67.30,72.30,67.00,72.20]},{ x:'06/13/2024',y:[72.80,73.50,68.80,68.90]},{ x:'06/14/2024',y:[68.40,70.50,67.50,69.70]},{ x:'06/17/2024',y:[69.10,69.90,68.20,68.50]},{ x:'06/18/2024',y:[69.30,69.60,66.70,66.90]},{ x:'06/19/2024',y:[67.10,67.80,65.70,65.70]},{ x:'06/20/2024',y:[65.90,67.20,65.90,66.80]},{ x:'06/21/2024',y:[66.50,66.60,65.60,66.10]},{ x:'06/24/2024',y:[65.80,66.30,64.40,64.40]},{ x:'06/25/2024',y:[63.20,63.60,62.10,63.20]},{ x:'06/26/2024',y:[63.50,65.00,63.50,64.10]},{ x:'06/27/2024',y:[64.10,64.10,62.50,63.20]},{ x:'06/28/2024',y:[63.20,64.20,63.10,63.90]},{ x:'07/01/2024',y:[64.00,64.50,63.80,63.80]},{ x:'07/02/2024',y:[64.10,64.10,62.80,63.20]},{ x:'07/03/2024',y:[63.50,65.70,63.50,64.40]},{ x:'07/04/2024',y:[65.10,65.40,63.50,64.10]},{ x:'07/05/2024',y:[64.60,67.70,64.60,67.20]},{ x:'07/12/2024',y:[65.20,67.90,64.10,67.00]},{ x:'07/15/2024',y:[67.80,69.90,66.60,68.30]},{ x:'07/16/2024',y:[68.30,69.30,67.10,67.50]},{ x:'07/17/2024',y:[68.40,68.40,66.90,67.70]},{ x:'07/18/2024',y:[67.30,67.30,64.70,65.90]},{ x:'07/19/2024',y:[65.80,65.80,62.60,62.80]},{ x:'07/22/2024',y:[63.00,63.20,59.00,59.40]},{ x:'07/23/2024',y:[60.30,60.80,59.50,59.90]},{ x:'07/26/2024',y:[58.30,58.40,57.00,58.20]},{ x:'07/29/2024',y:[58.70,58.80,56.20,56.40]},{ x:'07/30/2024',y:[56.00,57.00,55.00,56.90]},{ x:'07/31/2024',y:[56.30,57.60,56.30,57.20]},{ x:'08/01/2024',y:[58.10,59.30,58.10,59.10]},{ x:'08/02/2024',y:[57.80,58.10,56.40,56.50]},{ x:'08/05/2024',y:[54.50,54.50,50.90,51.00]},{ x:'08/06/2024',y:[51.80,53.00,47.45,49.85]},{ x:'08/07/2024',y:[49.85,53.60,49.85,52.90]},{ x:'08/08/2024',y:[53.40,54.50,52.60,53.30]},{ x:'08/09/2024',y:[54.50,55.90,54.00,54.30]},{ x:'08/12/2024',y:[54.20,55.20,54.00,54.70]},{ x:'08/13/2024',y:[55.40,55.60,53.80,54.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4952 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());