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:'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]},{ x:'07/07/2023',y:[60.85,60.85,60.55,60.80]},{ x:'07/10/2023',y:[60.65,60.65,60.50,60.60]},{ x:'07/11/2023',y:[60.75,60.90,60.75,60.80]},{ x:'07/12/2023',y:[61.00,61.05,60.85,61.00]},{ x:'07/13/2023',y:[61.60,61.65,61.40,61.55]},{ x:'07/14/2023',y:[62.00,62.10,61.85,61.95]},{ x:'07/17/2023',y:[61.95,62.25,61.80,62.25]},{ x:'07/18/2023',y:[62.80,62.80,62.45,62.70]},{ x:'07/19/2023',y:[63.10,63.70,63.10,63.45]},{ x:'07/20/2023',y:[63.20,63.20,63.00,63.10]},{ x:'07/21/2023',y:[61.90,62.35,61.85,62.30]},{ x:'07/24/2023',y:[62.30,62.50,62.10,62.40]},{ x:'07/25/2023',y:[62.50,62.55,62.30,62.40]},{ x:'07/26/2023',y:[62.75,62.80,62.60,62.70]},{ x:'07/27/2023',y:[62.60,62.70,62.55,62.70]},{ x:'07/28/2023',y:[62.55,62.80,62.45,62.65]},{ x:'07/31/2023',y:[63.60,63.65,63.40,63.60]},{ x:'08/01/2023',y:[63.85,64.15,63.85,64.10]} ] }], 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());