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:'02/02/2024',y:[39.65,40.70,39.65,39.70]},{ x:'02/05/2024',y:[39.65,40.20,39.55,39.55]},{ x:'02/15/2024',y:[39.55,39.85,39.20,39.20]},{ x:'02/16/2024',y:[38.50,39.45,38.50,39.20]},{ x:'02/19/2024',y:[38.55,39.45,38.55,38.80]},{ x:'02/20/2024',y:[38.70,38.70,38.30,38.50]},{ x:'02/21/2024',y:[38.50,38.50,38.20,38.50]},{ x:'02/22/2024',y:[39.20,39.20,38.60,38.70]},{ x:'02/23/2024',y:[38.55,40.55,38.55,39.80]},{ x:'02/26/2024',y:[40.60,40.60,39.40,39.40]},{ x:'02/27/2024',y:[39.65,40.00,39.20,39.40]},{ x:'02/29/2024',y:[39.40,39.40,38.90,39.00]},{ x:'03/01/2024',y:[39.40,39.50,38.70,38.80]},{ x:'03/04/2024',y:[38.95,42.65,38.95,42.65]},{ x:'03/05/2024',y:[44.00,46.90,44.00,46.90]},{ x:'03/06/2024',y:[47.10,48.50,44.60,45.30]},{ x:'03/07/2024',y:[45.50,46.80,45.00,45.20]},{ x:'03/08/2024',y:[45.55,49.70,45.35,49.70]},{ x:'03/11/2024',y:[50.20,54.60,47.15,54.50]},{ x:'03/12/2024',y:[53.70,59.90,52.00,56.40]},{ x:'03/13/2024',y:[55.70,58.90,50.80,50.80]},{ x:'03/14/2024',y:[49.20,50.40,48.60,48.60]},{ x:'03/15/2024',y:[48.65,50.50,48.15,49.60]},{ x:'03/18/2024',y:[49.55,50.10,48.90,49.05]},{ x:'03/19/2024',y:[49.10,49.40,48.00,48.00]},{ x:'03/20/2024',y:[48.00,52.80,47.90,52.80]},{ x:'03/21/2024',y:[55.20,58.00,54.20,57.80]},{ x:'03/22/2024',y:[56.10,57.80,54.10,55.90]},{ x:'03/25/2024',y:[55.90,61.40,55.90,61.40]},{ x:'03/26/2024',y:[63.80,67.50,61.40,62.00]},{ x:'03/27/2024',y:[62.60,66.80,59.50,63.00]},{ x:'03/28/2024',y:[61.80,65.30,59.80,60.30]},{ x:'03/29/2024',y:[61.10,64.40,60.10,64.40]},{ x:'04/01/2024',y:[66.80,68.00,63.30,63.30]},{ x:'04/02/2024',y:[63.90,65.40,61.50,61.50]},{ x:'04/03/2024',y:[61.70,66.60,61.40,62.10]},{ x:'04/08/2024',y:[64.50,64.50,62.60,62.70]},{ x:'04/09/2024',y:[63.50,63.50,61.00,61.00]},{ x:'04/10/2024',y:[61.00,62.30,60.10,60.20]},{ x:'04/11/2024',y:[60.80,61.00,58.70,58.80]},{ x:'04/12/2024',y:[58.10,61.30,58.10,59.10]},{ x:'04/15/2024',y:[59.10,61.00,58.00,58.10]},{ x:'04/16/2024',y:[58.80,58.80,54.50,54.60]},{ x:'04/17/2024',y:[54.20,54.90,53.70,54.20]},{ x:'04/18/2024',y:[54.20,54.50,53.10,54.20]},{ x:'04/19/2024',y:[53.50,53.50,50.00,51.20]},{ x:'04/22/2024',y:[51.10,52.80,51.10,51.90]},{ x:'04/23/2024',y:[52.00,52.70,52.00,52.50]},{ x:'04/24/2024',y:[52.80,54.00,52.70,53.20]},{ x:'04/25/2024',y:[53.40,53.40,51.50,51.80]},{ x:'04/26/2024',y:[52.60,52.60,51.50,51.50]},{ x:'04/29/2024',y:[51.50,51.70,51.30,51.60]},{ x:'04/30/2024',y:[51.40,51.40,50.90,51.20]},{ x:'05/02/2024',y:[51.50,51.50,51.00,51.30]},{ x:'05/03/2024',y:[51.70,51.90,51.30,51.80]},{ x:'05/06/2024',y:[52.00,54.90,52.00,54.90]},{ x:'05/07/2024',y:[55.30,60.30,55.30,60.30]},{ x:'05/08/2024',y:[60.30,65.00,54.80,55.70]},{ x:'05/09/2024',y:[56.00,58.60,55.50,55.80]},{ x:'05/10/2024',y:[57.30,57.60,54.20,54.60]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "4523 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());