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/11/2023',y:[51.20,51.30,51.10,51.20]},{ x:'04/12/2023',y:[51.05,51.05,50.90,51.00]},{ x:'04/13/2023',y:[50.50,50.65,50.40,50.65]},{ x:'04/14/2023',y:[51.25,51.35,51.15,51.25]},{ x:'04/17/2023',y:[51.25,51.40,51.10,51.10]},{ x:'04/18/2023',y:[51.10,51.35,50.90,51.20]},{ x:'04/19/2023',y:[51.30,51.30,51.15,51.20]},{ x:'04/20/2023',y:[51.20,51.35,51.20,51.35]},{ x:'04/21/2023',y:[51.25,51.25,51.05,51.05]},{ x:'04/24/2023',y:[51.05,51.15,50.95,50.95]},{ x:'04/25/2023',y:[50.95,51.15,50.85,50.85]},{ x:'04/26/2023',y:[50.70,50.90,50.65,50.80]},{ x:'04/27/2023',y:[50.75,50.80,50.70,50.80]},{ x:'04/28/2023',y:[51.50,51.90,51.50,51.85]},{ x:'05/02/2023',y:[51.90,52.35,51.90,52.30]},{ x:'05/03/2023',y:[52.00,52.00,51.65,51.70]},{ x:'05/04/2023',y:[51.50,51.65,51.30,51.65]},{ x:'05/05/2023',y:[51.60,51.60,51.30,51.40]},{ x:'05/08/2023',y:[52.05,52.30,52.05,52.30]},{ x:'05/09/2023',y:[52.30,52.40,52.30,52.35]},{ x:'05/10/2023',y:[52.20,52.25,52.10,52.20]},{ x:'05/11/2023',y:[52.60,52.85,52.60,52.80]},{ x:'05/12/2023',y:[52.90,53.15,52.90,53.10]},{ x:'05/15/2023',y:[52.25,52.95,52.25,52.95]},{ x:'05/16/2023',y:[53.05,53.20,53.00,53.05]},{ x:'05/17/2023',y:[53.15,53.35,53.15,53.35]},{ x:'05/18/2023',y:[53.75,53.80,53.65,53.75]},{ x:'05/19/2023',y:[54.75,54.85,54.65,54.70]},{ x:'05/22/2023',y:[54.45,54.50,54.25,54.45]},{ x:'05/23/2023',y:[54.70,54.90,54.55,54.60]},{ x:'05/24/2023',y:[54.10,54.20,54.00,54.05]},{ x:'05/25/2023',y:[54.55,54.70,54.50,54.70]},{ x:'05/26/2023',y:[55.05,55.20,54.85,55.05]},{ x:'05/29/2023',y:[56.45,56.75,56.45,56.65]},{ x:'05/30/2023',y:[56.70,56.70,56.35,56.70]},{ x:'05/31/2023',y:[56.70,56.85,56.55,56.75]},{ x:'06/01/2023',y:[56.50,56.55,56.30,56.45]},{ x:'06/02/2023',y:[57.05,57.30,57.00,57.30]},{ x:'06/05/2023',y:[57.40,57.50,57.35,57.40]},{ x:'06/06/2023',y:[57.50,57.60,57.40,57.55]},{ x:'06/07/2023',y:[57.55,57.60,57.50,57.60]},{ x:'06/08/2023',y:[56.70,56.75,56.40,56.55]},{ x:'06/09/2023',y:[57.20,57.40,57.15,57.40]},{ x:'06/12/2023',y:[57.55,57.80,57.55,57.70]},{ x:'06/13/2023',y:[58.50,58.90,58.40,58.85]},{ x:'06/14/2023',y:[59.00,59.10,58.85,58.85]},{ x:'06/15/2023',y:[59.25,59.55,59.20,59.25]},{ x:'06/16/2023',y:[59.80,59.95,59.75,59.85]},{ x:'06/19/2023',y:[59.85,59.95,59.70,59.75]},{ x:'06/20/2023',y:[60.00,60.00,59.65,59.85]},{ x:'06/21/2023',y:[59.85,60.10,59.85,60.00]},{ x:'06/26/2023',y:[59.50,59.65,59.30,59.50]},{ x:'06/27/2023',y:[59.30,59.30,58.65,58.75]},{ x:'06/28/2023',y:[59.35,59.65,59.30,59.65]},{ x:'06/29/2023',y:[59.90,60.15,59.90,60.00]},{ x:'06/30/2023',y:[60.00,60.05,59.90,60.00]},{ x:'07/03/2023',y:[60.90,61.05,60.80,61.00]},{ x:'07/04/2023',y:[61.00,61.05,60.90,61.05]},{ x:'07/05/2023',y:[61.05,61.05,60.85,60.95]},{ x:'07/06/2023',y:[61.00,61.20,60.85,61.00]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00662 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());