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/29/2023',y:[39.30,40.00,39.10,39.55]},{ x:'03/30/2023',y:[40.00,42.00,40.00,41.70]},{ x:'03/31/2023',y:[44.80,45.85,44.60,45.85]},{ x:'04/06/2023',y:[46.05,46.45,45.00,45.95]},{ x:'04/07/2023',y:[46.00,46.15,43.55,44.85]},{ x:'04/10/2023',y:[45.50,46.20,44.50,45.75]},{ x:'04/11/2023',y:[46.50,50.30,45.70,49.90]},{ x:'04/12/2023',y:[51.00,52.40,49.20,51.10]},{ x:'04/13/2023',y:[50.30,51.70,48.60,48.85]},{ x:'04/14/2023',y:[53.00,53.70,51.60,53.70]},{ x:'04/17/2023',y:[52.70,55.70,52.40,54.30]},{ x:'04/18/2023',y:[55.20,56.30,51.40,54.70]},{ x:'04/19/2023',y:[54.50,57.80,53.50,55.90]},{ x:'04/20/2023',y:[55.30,56.30,52.60,52.80]},{ x:'04/21/2023',y:[52.90,53.50,47.80,50.70]},{ x:'04/24/2023',y:[51.30,52.50,50.40,51.50]},{ x:'04/25/2023',y:[51.30,51.80,48.20,49.20]},{ x:'04/26/2023',y:[49.30,49.90,48.30,49.35]},{ x:'04/27/2023',y:[49.40,50.80,49.20,49.95]},{ x:'04/28/2023',y:[50.60,51.50,49.70,50.60]},{ x:'05/02/2023',y:[51.30,53.20,50.30,52.90]},{ x:'05/03/2023',y:[52.00,52.00,47.65,47.65]},{ x:'05/04/2023',y:[45.85,48.25,45.35,47.60]},{ x:'05/05/2023',y:[48.05,48.05,46.60,47.80]},{ x:'05/08/2023',y:[48.45,49.10,47.75,48.05]},{ x:'05/09/2023',y:[48.15,48.95,47.50,48.40]},{ x:'05/10/2023',y:[48.15,49.30,47.95,48.30]},{ x:'05/11/2023',y:[49.65,51.10,48.30,48.80]},{ x:'05/12/2023',y:[44.90,48.40,44.00,47.30]},{ x:'05/15/2023',y:[47.30,47.65,45.80,47.10]},{ x:'05/16/2023',y:[48.00,48.80,47.70,48.25]},{ x:'05/17/2023',y:[48.05,52.30,48.05,51.40]},{ x:'05/18/2023',y:[51.90,52.50,50.90,52.40]},{ x:'05/19/2023',y:[53.10,53.90,50.30,52.80]},{ x:'05/22/2023',y:[54.00,54.90,53.10,54.30]},{ x:'05/23/2023',y:[54.50,55.50,53.30,54.50]},{ x:'05/24/2023',y:[54.50,55.30,53.70,55.30]},{ x:'05/25/2023',y:[56.00,57.20,54.60,55.50]},{ x:'05/26/2023',y:[56.40,56.70,53.60,55.40]},{ x:'05/29/2023',y:[56.50,60.90,56.50,60.90]},{ x:'05/30/2023',y:[60.70,62.50,55.10,55.20]},{ x:'05/31/2023',y:[55.30,55.80,53.70,54.00]},{ x:'06/01/2023',y:[53.50,55.50,53.30,54.60]},{ x:'06/02/2023',y:[55.60,58.20,55.00,56.30]},{ x:'06/05/2023',y:[56.90,57.50,56.00,57.00]},{ x:'06/06/2023',y:[57.80,57.80,55.00,56.50]},{ x:'06/07/2023',y:[57.10,57.50,56.30,56.60]},{ x:'06/08/2023',y:[57.50,57.70,55.00,55.50]},{ x:'06/09/2023',y:[58.40,61.00,57.70,60.80]},{ x:'06/12/2023',y:[61.60,62.00,57.80,59.50]},{ x:'06/13/2023',y:[59.80,61.70,59.20,61.00]},{ x:'06/14/2023',y:[61.00,64.40,60.60,62.70]},{ x:'06/15/2023',y:[63.90,64.80,61.30,61.60]},{ x:'06/16/2023',y:[62.90,63.40,59.20,59.30]},{ x:'06/19/2023',y:[59.30,61.60,58.50,60.60]},{ x:'06/20/2023',y:[61.00,61.70,60.30,61.40]},{ x:'06/21/2023',y:[62.00,67.50,61.50,67.50]},{ x:'06/26/2023',y:[65.00,66.90,60.80,60.80]},{ x:'06/27/2023',y:[60.00,60.10,55.00,55.20]},{ x:'06/28/2023',y:[56.20,57.20,56.00,56.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3032 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());