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/21/2023',y:[46.50,46.60,45.00,45.80]},{ x:'02/22/2023',y:[45.80,45.80,45.00,45.65]},{ x:'02/23/2023',y:[46.00,47.35,45.80,46.90]},{ x:'02/24/2023',y:[47.30,47.30,45.65,46.00]},{ x:'03/01/2023',y:[46.00,46.50,45.20,45.50]},{ x:'03/02/2023',y:[45.90,45.90,45.05,45.35]},{ x:'03/03/2023',y:[45.55,46.50,45.25,46.20]},{ x:'03/06/2023',y:[46.60,49.50,46.60,49.50]},{ x:'03/07/2023',y:[49.50,50.00,48.35,48.80]},{ x:'03/08/2023',y:[48.15,48.15,46.50,47.15]},{ x:'03/09/2023',y:[47.35,47.75,46.70,46.70]},{ x:'03/10/2023',y:[45.75,46.50,45.20,45.30]},{ x:'03/13/2023',y:[45.00,45.00,43.50,43.95]},{ x:'03/14/2023',y:[44.00,44.25,43.30,43.45]},{ x:'03/15/2023',y:[43.90,44.45,43.80,44.00]},{ x:'03/16/2023',y:[43.30,43.30,41.80,41.90]},{ x:'03/17/2023',y:[43.00,43.45,42.50,43.45]},{ x:'03/20/2023',y:[43.50,43.50,42.90,43.10]},{ x:'03/21/2023',y:[43.30,43.40,42.75,42.95]},{ x:'03/22/2023',y:[43.20,43.75,43.15,43.55]},{ x:'03/23/2023',y:[43.05,46.45,42.90,46.20]},{ x:'03/24/2023',y:[46.30,47.40,45.70,46.40]},{ x:'03/27/2023',y:[47.00,47.75,46.80,47.75]},{ x:'03/28/2023',y:[48.45,52.50,47.55,52.50]},{ x:'03/29/2023',y:[53.00,57.70,53.00,57.70]},{ x:'03/30/2023',y:[59.20,60.90,55.60,59.40]},{ x:'03/31/2023',y:[60.10,65.00,59.70,62.30]},{ x:'04/06/2023',y:[59.60,63.60,58.70,62.80]},{ x:'04/07/2023',y:[63.00,69.00,61.20,69.00]},{ x:'04/10/2023',y:[68.20,68.20,62.20,64.20]},{ x:'04/11/2023',y:[63.40,65.50,62.20,64.10]},{ x:'04/12/2023',y:[64.30,64.50,62.70,63.40]},{ x:'04/13/2023',y:[63.30,64.40,62.20,62.60]},{ x:'04/14/2023',y:[62.20,65.30,62.20,64.30]},{ x:'04/17/2023',y:[63.50,63.60,61.80,61.80]},{ x:'04/18/2023',y:[61.40,62.00,57.80,58.50]},{ x:'04/19/2023',y:[58.50,60.30,58.20,59.60]},{ x:'04/20/2023',y:[59.10,59.30,54.50,55.10]},{ x:'04/21/2023',y:[55.30,55.40,51.40,52.00]},{ x:'04/24/2023',y:[51.90,54.80,51.90,51.90]},{ x:'04/25/2023',y:[52.10,52.30,50.00,50.30]},{ x:'04/26/2023',y:[49.80,49.90,48.50,49.25]},{ x:'04/27/2023',y:[49.25,49.80,48.15,49.70]},{ x:'04/28/2023',y:[50.10,51.80,49.50,51.00]},{ x:'05/02/2023',y:[50.80,50.80,49.35,49.70]},{ x:'05/03/2023',y:[49.30,49.30,48.50,48.50]},{ x:'05/04/2023',y:[48.65,50.00,48.65,50.00]},{ x:'05/05/2023',y:[50.00,52.60,50.00,51.00]},{ x:'05/08/2023',y:[51.80,52.00,50.10,50.10]},{ x:'05/09/2023',y:[50.10,50.30,48.60,48.70]},{ x:'05/10/2023',y:[49.60,49.75,48.60,49.10]},{ x:'05/11/2023',y:[49.40,49.40,46.30,46.40]},{ x:'05/12/2023',y:[46.30,47.10,46.10,47.00]},{ x:'05/15/2023',y:[47.00,47.90,46.65,47.20]},{ x:'05/16/2023',y:[47.80,48.30,47.25,47.55]},{ x:'05/17/2023',y:[47.60,48.30,47.60,48.00]},{ x:'05/18/2023',y:[48.60,48.60,47.65,48.25]},{ x:'05/19/2023',y:[48.80,48.80,47.55,47.85]},{ x:'05/22/2023',y:[47.95,48.60,47.70,48.60]},{ x:'05/23/2023',y:[48.70,49.25,48.35,49.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3447 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());