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:'06/06/2023',y:[60.10,61.20,58.50,59.30]},{ x:'06/07/2023',y:[59.70,59.80,58.30,59.30]},{ x:'06/08/2023',y:[59.50,60.30,58.60,59.20]},{ x:'06/09/2023',y:[59.90,60.00,58.70,58.70]},{ x:'06/12/2023',y:[59.10,59.30,56.20,56.60]},{ x:'06/13/2023',y:[57.20,57.80,56.20,57.30]},{ x:'06/14/2023',y:[57.10,57.80,56.60,56.60]},{ x:'06/15/2023',y:[56.80,59.00,56.50,58.60]},{ x:'06/16/2023',y:[59.20,59.60,57.80,58.00]},{ x:'06/19/2023',y:[58.70,60.90,58.70,60.60]},{ x:'06/20/2023',y:[60.70,60.90,58.20,58.20]},{ x:'06/21/2023',y:[58.70,59.60,58.30,58.40]},{ x:'06/26/2023',y:[58.60,58.80,57.30,58.10]},{ x:'06/27/2023',y:[56.20,58.00,55.80,56.20]},{ x:'06/28/2023',y:[57.00,58.20,56.60,56.60]},{ x:'06/29/2023',y:[57.90,58.60,56.90,57.10]},{ x:'06/30/2023',y:[57.50,58.40,56.90,57.60]},{ x:'07/03/2023',y:[58.10,59.50,57.10,59.40]},{ x:'07/04/2023',y:[59.50,60.30,57.80,60.00]},{ x:'07/05/2023',y:[60.10,61.00,59.00,60.50]},{ x:'07/06/2023',y:[59.60,59.90,57.10,57.30]},{ x:'07/07/2023',y:[56.80,57.20,55.30,56.10]},{ x:'07/10/2023',y:[56.40,57.90,56.30,56.90]},{ x:'07/11/2023',y:[57.60,57.80,56.40,56.60]},{ x:'07/12/2023',y:[56.80,57.00,55.50,55.60]},{ x:'07/13/2023',y:[56.10,56.40,54.50,54.60]},{ x:'07/14/2023',y:[55.10,55.60,53.40,53.60]},{ x:'07/17/2023',y:[53.90,54.10,52.60,53.50]},{ x:'07/18/2023',y:[53.90,54.00,52.50,53.70]},{ x:'07/19/2023',y:[53.70,54.20,51.70,51.70]},{ x:'07/20/2023',y:[51.80,53.90,51.80,53.80]},{ x:'07/21/2023',y:[53.40,53.60,52.00,52.50]},{ x:'07/24/2023',y:[53.50,55.10,52.40,54.50]},{ x:'07/25/2023',y:[55.00,56.30,54.20,55.70]},{ x:'07/26/2023',y:[55.50,55.80,54.10,54.10]},{ x:'07/27/2023',y:[54.80,56.00,54.50,55.10]},{ x:'07/28/2023',y:[55.50,55.70,53.90,54.00]},{ x:'07/31/2023',y:[54.50,55.00,53.30,53.40]},{ x:'08/01/2023',y:[53.90,54.10,52.80,53.10]},{ x:'08/02/2023',y:[53.40,54.80,52.60,52.60]},{ x:'08/04/2023',y:[52.60,53.20,52.20,52.90]},{ x:'08/07/2023',y:[53.00,53.00,47.85,49.30]},{ x:'08/08/2023',y:[49.50,50.30,48.40,48.90]},{ x:'08/09/2023',y:[49.50,49.50,48.05,48.25]},{ x:'08/10/2023',y:[48.50,48.70,47.20,47.45]},{ x:'08/11/2023',y:[47.50,47.65,46.25,46.55]},{ x:'08/14/2023',y:[46.55,46.75,44.85,45.10]},{ x:'08/15/2023',y:[45.90,46.30,45.25,45.55]},{ x:'08/16/2023',y:[45.35,45.70,44.70,45.30]},{ x:'08/17/2023',y:[45.25,46.80,44.60,46.10]},{ x:'08/18/2023',y:[46.20,46.50,45.35,45.40]},{ x:'08/21/2023',y:[45.90,46.40,45.60,45.90]},{ x:'08/22/2023',y:[46.45,46.45,44.95,44.95]},{ x:'08/23/2023',y:[45.20,46.45,45.20,45.55]},{ x:'08/24/2023',y:[45.65,46.10,45.20,45.70]},{ x:'08/25/2023',y:[45.70,45.95,45.10,45.20]},{ x:'08/28/2023',y:[45.35,46.75,45.20,45.85]},{ x:'08/29/2023',y:[46.05,46.75,44.65,46.70]},{ x:'08/30/2023',y:[46.70,46.70,44.85,44.85]},{ x:'08/31/2023',y:[44.75,45.45,44.50,45.15]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "5009 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());