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/15/2023',y:[31.70,31.70,31.10,31.20]},{ x:'06/16/2023',y:[32.60,32.60,31.65,32.00]},{ x:'06/19/2023',y:[32.00,32.00,31.50,32.00]},{ x:'06/20/2023',y:[31.15,31.95,31.00,31.95]},{ x:'06/21/2023',y:[31.10,31.65,31.05,31.65]},{ x:'06/26/2023',y:[31.30,31.80,31.10,31.10]},{ x:'06/27/2023',y:[30.80,31.15,30.70,31.15]},{ x:'06/28/2023',y:[31.00,31.60,30.95,31.30]},{ x:'06/29/2023',y:[31.50,31.50,31.50,31.50]},{ x:'06/30/2023',y:[30.75,32.85,30.75,32.75]},{ x:'07/03/2023',y:[32.75,32.75,31.40,31.40]},{ x:'07/04/2023',y:[32.35,32.35,31.45,32.05]},{ x:'07/05/2023',y:[32.50,32.50,32.30,32.30]},{ x:'07/06/2023',y:[32.20,32.70,31.55,32.40]},{ x:'07/07/2023',y:[35.60,35.60,35.60,35.60]},{ x:'07/10/2023',y:[39.15,39.15,39.15,39.15]},{ x:'07/11/2023',y:[43.05,43.05,43.00,43.05]},{ x:'07/12/2023',y:[45.10,47.35,44.05,46.55]},{ x:'07/13/2023',y:[48.20,48.20,44.60,44.75]},{ x:'07/14/2023',y:[46.00,46.00,45.00,45.70]},{ x:'07/17/2023',y:[45.20,45.70,44.20,45.60]},{ x:'07/18/2023',y:[45.60,45.60,44.35,45.00]},{ x:'07/19/2023',y:[45.00,45.05,44.00,44.80]},{ x:'07/20/2023',y:[44.80,48.00,44.75,47.50]},{ x:'07/21/2023',y:[40.00,41.10,38.50,39.90]},{ x:'07/24/2023',y:[38.70,40.00,37.10,37.10]},{ x:'07/25/2023',y:[37.15,37.15,35.50,35.85]},{ x:'07/26/2023',y:[35.40,36.30,34.80,35.85]},{ x:'07/27/2023',y:[35.25,38.70,35.25,38.10]},{ x:'07/28/2023',y:[35.60,38.10,35.60,36.70]},{ x:'07/31/2023',y:[36.05,36.35,34.45,35.25]},{ x:'08/01/2023',y:[35.65,35.65,33.20,33.90]},{ x:'08/02/2023',y:[34.85,34.85,32.30,32.30]},{ x:'08/04/2023',y:[32.30,34.40,32.30,33.75]},{ x:'08/07/2023',y:[33.75,34.50,33.60,33.65]},{ x:'08/08/2023',y:[34.45,34.45,34.00,34.00]},{ x:'08/09/2023',y:[33.60,33.60,31.70,32.90]},{ x:'08/10/2023',y:[32.50,34.10,32.50,32.95]},{ x:'08/11/2023',y:[35.85,35.85,33.55,34.75]},{ x:'08/14/2023',y:[34.75,36.00,34.50,35.70]},{ x:'08/15/2023',y:[36.30,36.30,34.60,35.70]},{ x:'08/16/2023',y:[35.95,35.95,35.20,35.75]},{ x:'08/17/2023',y:[35.80,36.30,35.45,35.85]},{ x:'08/18/2023',y:[35.45,35.80,34.95,35.70]},{ x:'08/21/2023',y:[34.90,35.75,34.00,35.40]},{ x:'08/22/2023',y:[34.30,35.30,34.30,35.20]},{ x:'08/23/2023',y:[35.10,35.10,33.90,35.00]},{ x:'08/24/2023',y:[34.95,34.95,33.45,34.80]},{ x:'08/25/2023',y:[34.60,35.00,34.00,34.50]},{ x:'08/28/2023',y:[34.95,35.00,34.75,35.00]},{ x:'08/29/2023',y:[35.35,35.35,34.95,34.95]},{ x:'08/30/2023',y:[35.05,35.50,34.10,34.85]},{ x:'08/31/2023',y:[34.85,35.75,34.80,35.20]},{ x:'09/01/2023',y:[35.30,35.30,34.90,35.25]},{ x:'09/04/2023',y:[35.65,35.70,35.05,35.70]},{ x:'09/05/2023',y:[35.70,39.25,35.70,39.25]},{ x:'09/06/2023',y:[43.00,43.00,41.00,42.30]},{ x:'09/07/2023',y:[41.80,41.80,39.00,40.40]},{ x:'09/08/2023',y:[39.55,40.05,38.70,38.70]},{ x:'09/11/2023',y:[38.50,38.50,37.40,37.70]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "6419 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());