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:'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]},{ x:'09/12/2023',y:[41.45,41.45,41.45,41.45]},{ x:'09/13/2023',y:[45.55,45.55,43.75,44.50]},{ x:'09/14/2023',y:[44.20,44.55,42.20,43.00]},{ x:'09/15/2023',y:[43.05,45.55,43.05,44.85]},{ x:'09/18/2023',y:[45.80,45.80,43.85,44.75]},{ x:'09/19/2023',y:[44.60,44.95,43.95,44.70]},{ x:'09/20/2023',y:[44.70,44.90,43.70,44.90]},{ x:'09/21/2023',y:[45.20,45.20,44.05,44.85]},{ x:'09/22/2023',y:[45.30,45.30,44.50,44.50]},{ x:'09/25/2023',y:[42.65,45.05,42.65,44.90]},{ x:'09/26/2023',y:[44.90,45.20,44.85,45.05]},{ x:'09/27/2023',y:[44.55,45.20,44.50,45.00]} ] }], 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());