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/13/2023',y:[54.80,54.95,54.65,54.90]},{ x:'04/14/2023',y:[56.25,56.25,56.15,56.20]},{ x:'04/17/2023',y:[56.20,56.30,56.15,56.20]},{ x:'04/18/2023',y:[56.30,56.45,56.30,56.35]},{ x:'04/19/2023',y:[56.35,56.40,56.25,56.25]},{ x:'04/20/2023',y:[56.25,56.35,56.10,56.10]},{ x:'04/21/2023',y:[55.95,55.95,55.75,55.75]},{ x:'04/24/2023',y:[55.65,55.70,55.50,55.50]},{ x:'04/25/2023',y:[55.90,55.95,55.60,55.60]},{ x:'04/26/2023',y:[54.90,54.90,54.75,54.85]},{ x:'04/27/2023',y:[54.15,54.20,54.05,54.20]},{ x:'04/28/2023',y:[55.80,56.00,55.75,55.80]},{ x:'05/02/2023',y:[56.70,56.95,56.60,56.95]},{ x:'05/03/2023',y:[55.80,55.80,55.60,55.80]},{ x:'05/04/2023',y:[54.45,55.00,54.40,55.00]},{ x:'05/05/2023',y:[54.30,54.35,54.15,54.30]},{ x:'05/08/2023',y:[55.65,55.85,55.60,55.65]},{ x:'05/09/2023',y:[55.70,55.90,55.70,55.85]},{ x:'05/10/2023',y:[55.55,55.60,55.45,55.45]},{ x:'05/11/2023',y:[56.15,56.15,56.00,56.05]},{ x:'05/12/2023',y:[55.95,55.95,55.75,55.90]},{ x:'05/15/2023',y:[55.35,55.75,55.30,55.75]},{ x:'05/16/2023',y:[55.80,55.80,55.70,55.70]},{ x:'05/17/2023',y:[55.50,55.55,55.35,55.45]},{ x:'05/18/2023',y:[56.40,56.50,56.30,56.50]},{ x:'05/19/2023',y:[57.50,57.75,57.50,57.70]},{ x:'05/22/2023',y:[57.10,57.25,57.05,57.25]},{ x:'05/23/2023',y:[57.50,57.80,57.35,57.40]},{ x:'05/24/2023',y:[56.35,56.45,56.10,56.25]},{ x:'05/25/2023',y:[55.80,55.85,55.55,55.70]},{ x:'05/26/2023',y:[55.90,56.00,55.75,55.95]},{ x:'05/29/2023',y:[57.80,57.85,57.65,57.80]},{ x:'05/30/2023',y:[57.75,57.75,57.60,57.65]},{ x:'05/31/2023',y:[57.45,57.50,57.20,57.25]},{ x:'06/01/2023',y:[56.95,57.05,56.80,57.05]},{ x:'06/02/2023',y:[57.95,58.10,57.85,58.05]},{ x:'06/05/2023',y:[59.30,59.55,59.30,59.45]},{ x:'06/06/2023',y:[59.20,59.40,59.20,59.40]},{ x:'06/07/2023',y:[59.60,59.70,59.55,59.60]},{ x:'06/08/2023',y:[59.20,59.20,58.85,58.95]},{ x:'06/09/2023',y:[59.60,59.70,59.60,59.65]},{ x:'06/12/2023',y:[60.10,60.25,60.10,60.25]},{ x:'06/13/2023',y:[61.00,61.30,60.95,61.30]},{ x:'06/14/2023',y:[61.65,61.85,61.65,61.85]},{ x:'06/15/2023',y:[61.90,61.95,61.70,61.90]},{ x:'06/16/2023',y:[63.00,63.20,62.95,63.10]},{ x:'06/19/2023',y:[62.80,62.90,62.65,62.75]},{ x:'06/20/2023',y:[62.70,62.75,62.55,62.55]},{ x:'06/21/2023',y:[62.50,62.60,62.45,62.55]},{ x:'06/26/2023',y:[61.45,61.65,61.40,61.40]},{ x:'06/27/2023',y:[61.00,61.10,60.90,61.05]},{ x:'06/28/2023',y:[61.85,62.00,61.80,61.90]},{ x:'06/29/2023',y:[62.35,62.45,62.15,62.15]},{ x:'06/30/2023',y:[62.65,62.90,62.65,62.85]},{ x:'07/03/2023',y:[64.10,64.30,64.10,64.30]},{ x:'07/04/2023',y:[64.25,64.35,64.10,64.25]},{ x:'07/05/2023',y:[64.25,64.35,64.15,64.20]},{ x:'07/06/2023',y:[64.00,64.10,63.65,63.70]},{ x:'07/07/2023',y:[63.10,63.25,63.05,63.15]},{ x:'07/10/2023',y:[62.65,62.80,62.55,62.55]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00647l 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());