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/07/2023',y:[32.80,32.85,32.55,32.75]},{ x:'06/08/2023',y:[32.70,33.30,32.50,33.05]},{ x:'06/09/2023',y:[33.45,33.65,33.10,33.40]},{ x:'06/12/2023',y:[33.85,34.15,33.50,34.00]},{ x:'06/13/2023',y:[34.35,34.50,34.05,34.20]},{ x:'06/14/2023',y:[34.35,35.20,34.30,34.60]},{ x:'06/15/2023',y:[34.60,34.85,33.55,33.65]},{ x:'06/16/2023',y:[33.70,33.70,33.05,33.45]},{ x:'06/19/2023',y:[33.80,33.85,33.20,33.60]},{ x:'06/20/2023',y:[33.55,33.60,33.15,33.25]},{ x:'06/21/2023',y:[33.25,33.45,33.20,33.40]},{ x:'06/26/2023',y:[33.50,33.75,33.25,33.30]},{ x:'06/27/2023',y:[33.30,33.40,32.70,32.80]},{ x:'06/28/2023',y:[32.80,33.00,32.50,32.65]},{ x:'06/29/2023',y:[32.80,33.25,32.80,33.20]},{ x:'06/30/2023',y:[33.20,33.40,33.00,33.40]},{ x:'07/03/2023',y:[33.50,33.60,33.35,33.50]},{ x:'07/04/2023',y:[33.50,33.95,33.50,33.85]},{ x:'07/05/2023',y:[33.85,34.15,33.85,34.05]},{ x:'07/06/2023',y:[34.20,34.70,34.10,34.45]},{ x:'07/07/2023',y:[34.50,34.85,34.25,34.75]},{ x:'07/10/2023',y:[35.15,35.20,34.20,34.25]},{ x:'07/11/2023',y:[34.35,34.65,34.15,34.65]},{ x:'07/12/2023',y:[34.75,34.90,34.65,34.85]},{ x:'07/13/2023',y:[35.00,35.20,34.70,34.85]},{ x:'07/14/2023',y:[35.00,35.95,35.00,35.85]},{ x:'07/17/2023',y:[36.30,37.00,36.25,36.95]},{ x:'07/18/2023',y:[37.10,37.10,35.20,35.80]},{ x:'07/19/2023',y:[35.90,36.00,34.70,34.90]},{ x:'07/20/2023',y:[35.35,35.45,34.95,35.40]},{ x:'07/21/2023',y:[35.20,35.25,34.85,34.95]},{ x:'07/24/2023',y:[35.10,35.20,34.75,35.10]},{ x:'07/25/2023',y:[35.30,35.40,35.00,35.05]},{ x:'07/26/2023',y:[35.30,35.45,35.05,35.10]},{ x:'07/27/2023',y:[35.25,35.30,35.05,35.10]},{ x:'07/28/2023',y:[35.60,35.60,34.90,35.05]},{ x:'07/31/2023',y:[35.15,35.20,34.45,34.55]},{ x:'08/01/2023',y:[34.00,34.00,33.05,33.65]},{ x:'08/02/2023',y:[30.10,30.50,29.55,29.70]},{ x:'08/04/2023',y:[29.70,29.75,28.95,29.25]},{ x:'08/07/2023',y:[29.20,29.55,28.85,29.45]},{ x:'08/08/2023',y:[29.60,29.60,29.10,29.15]},{ x:'08/09/2023',y:[29.15,29.30,29.00,29.25]},{ x:'08/10/2023',y:[29.30,29.30,28.70,28.80]},{ x:'08/11/2023',y:[28.90,29.50,28.90,29.30]},{ x:'08/14/2023',y:[29.30,29.30,28.80,29.00]},{ x:'08/15/2023',y:[29.10,29.45,29.05,29.30]},{ x:'08/16/2023',y:[29.10,29.30,28.90,29.25]},{ x:'08/17/2023',y:[29.05,29.30,28.90,29.25]},{ x:'08/18/2023',y:[29.25,29.35,28.70,28.80]},{ x:'08/21/2023',y:[28.80,29.10,28.75,28.95]},{ x:'08/22/2023',y:[29.10,29.15,28.85,29.05]},{ x:'08/23/2023',y:[29.00,29.15,28.90,29.05]},{ x:'08/24/2023',y:[29.25,29.45,28.95,28.95]},{ x:'08/25/2023',y:[28.90,29.00,28.75,28.80]},{ x:'08/28/2023',y:[28.85,28.85,28.35,28.40]},{ x:'08/29/2023',y:[28.45,28.95,28.25,28.75]},{ x:'08/30/2023',y:[28.90,29.15,28.70,29.00]},{ x:'08/31/2023',y:[29.00,29.30,28.95,29.25]},{ x:'09/01/2023',y:[29.35,29.70,29.20,29.65]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "3033 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());