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/13/2023',y:[0.00,0.00,0.00,0.00]},{ x:'02/14/2023',y:[0.00,0.00,0.00,0.00]},{ x:'02/15/2023',y:[0.00,0.00,0.00,0.00]},{ x:'02/16/2023',y:[48.40,50.40,48.40,50.10]},{ x:'02/17/2023',y:[48.85,50.40,48.45,50.40]},{ x:'02/20/2023',y:[48.60,49.95,48.35,49.95]},{ x:'02/21/2023',y:[49.80,49.80,48.60,49.35]},{ x:'02/22/2023',y:[48.50,49.35,48.50,49.35]},{ x:'02/23/2023',y:[49.35,49.35,49.35,49.35]},{ x:'02/24/2023',y:[49.20,50.30,49.20,50.30]},{ x:'03/01/2023',y:[49.05,49.90,49.00,49.90]},{ x:'03/02/2023',y:[49.80,50.40,49.80,50.30]},{ x:'03/03/2023',y:[50.20,50.50,49.55,50.50]},{ x:'03/06/2023',y:[51.00,51.00,49.50,50.50]},{ x:'03/07/2023',y:[50.00,50.00,49.15,49.90]},{ x:'03/08/2023',y:[49.45,49.80,49.15,49.70]},{ x:'03/09/2023',y:[49.85,49.85,49.20,49.75]},{ x:'03/10/2023',y:[49.20,49.95,49.00,49.80]},{ x:'03/13/2023',y:[49.50,49.70,49.50,49.70]},{ x:'03/14/2023',y:[48.70,49.60,48.70,48.85]},{ x:'03/15/2023',y:[49.65,49.65,48.65,48.65]},{ x:'03/16/2023',y:[49.55,49.55,49.55,49.55]},{ x:'03/17/2023',y:[49.20,50.20,49.20,50.20]},{ x:'03/20/2023',y:[0.00,0.00,0.00,0.00]},{ x:'03/21/2023',y:[48.60,49.95,48.60,49.80]},{ x:'03/22/2023',y:[0.00,0.00,0.00,0.00]},{ x:'03/23/2023',y:[50.50,50.50,50.10,50.10]},{ x:'03/24/2023',y:[49.50,50.00,49.50,50.00]},{ x:'03/27/2023',y:[48.65,49.95,48.65,49.80]},{ x:'03/28/2023',y:[48.85,49.65,48.50,49.50]},{ x:'03/29/2023',y:[49.70,54.40,49.70,53.40]},{ x:'03/30/2023',y:[52.00,52.50,50.90,51.90]},{ x:'03/31/2023',y:[52.50,52.60,51.40,52.20]},{ x:'04/06/2023',y:[52.20,52.70,51.40,52.30]},{ x:'04/07/2023',y:[52.50,52.50,52.40,52.40]},{ x:'04/10/2023',y:[51.30,52.10,51.30,52.10]},{ x:'04/11/2023',y:[52.10,52.20,51.60,51.70]},{ x:'04/12/2023',y:[52.80,54.60,52.40,53.30]},{ x:'04/13/2023',y:[54.20,54.20,52.40,52.90]},{ x:'04/14/2023',y:[53.50,53.90,52.70,53.60]},{ x:'04/17/2023',y:[54.60,58.90,54.50,56.80]},{ x:'04/18/2023',y:[55.90,57.60,55.30,55.30]},{ x:'04/19/2023',y:[56.30,59.80,56.30,57.70]},{ x:'04/20/2023',y:[59.30,59.30,55.80,57.90]},{ x:'04/21/2023',y:[57.30,58.80,57.00,57.60]},{ x:'04/24/2023',y:[58.80,58.80,57.50,58.00]},{ x:'04/25/2023',y:[58.10,59.30,57.60,58.30]},{ x:'04/26/2023',y:[58.00,58.80,58.00,58.70]},{ x:'04/27/2023',y:[58.00,58.80,57.80,58.70]},{ x:'04/28/2023',y:[58.80,59.50,58.80,59.50]},{ x:'05/02/2023',y:[59.50,65.40,59.00,64.80]},{ x:'05/03/2023',y:[65.00,67.10,62.30,64.80]},{ x:'05/04/2023',y:[65.80,65.80,63.60,65.30]},{ x:'05/05/2023',y:[66.70,67.80,64.10,65.30]},{ x:'05/08/2023',y:[65.30,67.10,65.30,65.80]},{ x:'05/09/2023',y:[66.70,66.70,64.30,65.50]},{ x:'05/10/2023',y:[65.60,65.90,62.60,63.50]},{ x:'05/11/2023',y:[64.00,64.00,60.30,62.00]},{ x:'05/12/2023',y:[60.50,62.50,60.20,62.50]},{ x:'05/15/2023',y:[60.40,62.20,60.00,60.50]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6574 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());