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/14/2023',y:[58.85,58.85,58.60,58.65]},{ x:'04/17/2023',y:[58.65,58.95,58.60,58.80]},{ x:'04/18/2023',y:[58.85,58.85,58.50,58.50]},{ x:'04/19/2023',y:[58.50,58.55,58.25,58.45]},{ x:'04/20/2023',y:[58.45,58.45,57.50,57.70]},{ x:'04/21/2023',y:[57.70,57.70,57.05,57.05]},{ x:'04/24/2023',y:[57.20,57.50,57.05,57.35]},{ x:'04/25/2023',y:[57.35,57.35,56.20,56.35]},{ x:'04/26/2023',y:[56.30,56.45,56.00,56.35]},{ x:'04/27/2023',y:[56.35,57.00,56.15,56.95]},{ x:'04/28/2023',y:[57.15,57.40,57.15,57.40]},{ x:'05/02/2023',y:[57.50,57.90,57.45,57.90]},{ x:'05/03/2023',y:[57.90,57.90,57.65,57.75]},{ x:'05/04/2023',y:[57.70,57.90,57.45,57.90]},{ x:'05/05/2023',y:[57.90,57.90,57.75,57.85]},{ x:'05/08/2023',y:[57.95,58.20,57.85,58.15]},{ x:'05/09/2023',y:[58.15,58.15,57.80,57.95]},{ x:'05/10/2023',y:[57.95,57.95,57.55,57.75]},{ x:'05/11/2023',y:[57.75,57.75,57.40,57.40]},{ x:'05/12/2023',y:[57.10,57.55,56.85,57.55]},{ x:'05/15/2023',y:[57.55,57.55,57.20,57.35]},{ x:'05/16/2023',y:[57.60,58.20,57.60,58.05]},{ x:'05/17/2023',y:[58.35,58.60,58.20,58.45]},{ x:'05/18/2023',y:[58.95,59.25,58.90,58.90]},{ x:'05/19/2023',y:[59.15,59.60,59.15,59.45]},{ x:'05/22/2023',y:[59.65,59.95,59.50,59.55]},{ x:'05/23/2023',y:[59.95,60.00,59.60,59.80]},{ x:'05/24/2023',y:[59.75,59.75,59.20,59.55]},{ x:'05/25/2023',y:[60.00,60.60,60.00,60.30]},{ x:'05/26/2023',y:[60.45,61.05,60.45,60.70]},{ x:'05/29/2023',y:[61.00,62.20,61.00,62.00]},{ x:'05/30/2023',y:[62.00,62.50,61.80,61.95]},{ x:'05/31/2023',y:[62.10,62.10,61.75,62.00]},{ x:'06/01/2023',y:[62.00,62.05,61.80,62.00]},{ x:'06/02/2023',y:[62.00,63.40,62.00,63.05]},{ x:'06/05/2023',y:[63.20,63.90,63.10,63.70]},{ x:'06/06/2023',y:[63.25,63.55,63.05,63.50]},{ x:'06/07/2023',y:[63.55,64.15,63.55,64.15]},{ x:'06/08/2023',y:[64.15,64.15,63.10,63.25]},{ x:'06/09/2023',y:[63.25,64.10,63.25,63.85]},{ x:'06/12/2023',y:[63.85,64.50,63.85,64.10]},{ x:'06/13/2023',y:[64.35,64.90,64.35,64.70]},{ x:'06/14/2023',y:[64.85,65.50,64.85,65.20]},{ x:'06/15/2023',y:[65.20,66.50,65.20,66.45]},{ x:'06/16/2023',y:[66.45,66.90,66.05,66.55]},{ x:'06/19/2023',y:[66.50,67.00,66.10,66.30]},{ x:'06/20/2023',y:[66.30,66.60,66.00,66.15]},{ x:'06/21/2023',y:[66.15,66.70,66.15,66.70]},{ x:'06/26/2023',y:[66.40,66.70,65.80,66.65]},{ x:'06/27/2023',y:[66.50,66.50,65.05,65.15]},{ x:'06/28/2023',y:[65.15,65.90,65.15,65.60]},{ x:'06/29/2023',y:[65.65,66.60,65.65,66.15]},{ x:'06/30/2023',y:[66.20,66.40,66.15,66.35]},{ x:'07/03/2023',y:[66.60,68.05,66.60,67.90]},{ x:'07/04/2023',y:[68.10,69.05,68.10,68.95]},{ x:'07/05/2023',y:[68.80,69.00,68.25,68.50]},{ x:'07/06/2023',y:[68.00,68.60,67.55,67.95]},{ x:'07/07/2023',y:[67.60,67.60,66.45,67.20]},{ x:'07/10/2023',y:[67.20,67.90,67.20,67.40]},{ x:'07/11/2023',y:[67.80,68.75,67.80,68.75]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "0051 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());