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:'04/09/2024',y:[30.80,30.80,29.80,29.85]},{ x:'04/10/2024',y:[30.05,30.75,29.30,29.35]},{ x:'04/11/2024',y:[29.20,29.20,28.30,28.35]},{ x:'04/12/2024',y:[28.30,30.75,28.30,30.25]},{ x:'04/15/2024',y:[30.50,30.50,29.05,29.10]},{ x:'04/16/2024',y:[29.10,29.15,27.75,28.25]},{ x:'04/17/2024',y:[28.60,30.40,28.55,30.10]},{ x:'04/18/2024',y:[29.60,30.30,29.30,29.45]},{ x:'04/19/2024',y:[28.85,29.15,27.50,28.50]},{ x:'04/22/2024',y:[29.25,30.20,28.40,28.50]},{ x:'04/23/2024',y:[29.00,29.75,28.50,29.25]},{ x:'04/24/2024',y:[29.45,30.85,29.45,29.80]},{ x:'04/25/2024',y:[29.50,30.20,29.35,29.80]},{ x:'04/26/2024',y:[30.10,31.80,29.80,30.20]},{ x:'04/29/2024',y:[30.30,33.20,30.00,33.20]},{ x:'04/30/2024',y:[36.00,36.50,35.30,36.50]},{ x:'05/02/2024',y:[37.40,37.45,32.85,32.85]},{ x:'05/03/2024',y:[32.65,32.95,30.75,30.90]},{ x:'05/06/2024',y:[31.45,31.60,30.20,30.20]},{ x:'05/07/2024',y:[30.80,31.30,30.40,30.50]},{ x:'05/08/2024',y:[30.55,30.75,29.80,29.85]},{ x:'05/09/2024',y:[30.00,30.20,29.25,29.25]},{ x:'05/10/2024',y:[29.15,29.55,28.55,29.30]},{ x:'05/13/2024',y:[29.70,29.85,28.90,28.90]},{ x:'05/14/2024',y:[28.75,29.30,28.75,28.85]},{ x:'05/15/2024',y:[28.95,30.25,28.85,30.10]},{ x:'05/16/2024',y:[30.35,31.10,29.85,29.95]},{ x:'05/17/2024',y:[30.00,30.35,29.70,29.80]},{ x:'05/20/2024',y:[30.00,30.90,29.40,30.15]},{ x:'05/21/2024',y:[30.20,32.20,29.75,31.95]},{ x:'05/22/2024',y:[32.70,33.80,32.00,32.45]},{ x:'05/23/2024',y:[32.80,32.90,31.25,31.85]},{ x:'05/24/2024',y:[31.50,34.90,31.00,34.00]},{ x:'06/11/2024',y:[36.55,36.90,35.10,35.45]},{ x:'06/12/2024',y:[35.90,36.85,35.25,36.65]},{ x:'06/13/2024',y:[37.60,37.80,36.40,36.90]},{ x:'06/14/2024',y:[36.90,37.20,36.30,36.45]},{ x:'06/17/2024',y:[36.75,38.70,36.75,37.60]},{ x:'06/18/2024',y:[37.75,40.75,37.40,39.50]},{ x:'06/19/2024',y:[39.15,43.25,39.00,40.20]},{ x:'06/20/2024',y:[39.80,43.35,39.60,42.15]},{ x:'06/21/2024',y:[42.50,46.35,42.40,46.35]},{ x:'06/24/2024',y:[48.50,50.50,45.00,45.30]},{ x:'06/25/2024',y:[46.00,46.90,43.00,43.15]},{ x:'06/26/2024',y:[44.05,47.45,43.80,47.45]},{ x:'06/27/2024',y:[47.90,49.25,44.80,44.95]},{ x:'06/28/2024',y:[45.00,48.80,45.00,47.30]},{ x:'07/01/2024',y:[47.75,52.00,47.00,52.00]},{ x:'07/02/2024',y:[52.20,53.40,50.10,51.40]},{ x:'07/03/2024',y:[51.70,54.80,51.40,52.40]},{ x:'07/04/2024',y:[52.90,56.80,52.40,54.40]},{ x:'07/05/2024',y:[54.70,59.80,54.50,59.80]},{ x:'07/12/2024',y:[60.50,62.40,58.60,61.90]},{ x:'07/15/2024',y:[62.50,62.90,58.20,58.60]},{ x:'07/16/2024',y:[58.50,59.50,56.50,57.50]},{ x:'07/17/2024',y:[57.10,58.50,56.50,56.80]},{ x:'07/18/2024',y:[55.10,55.90,54.50,55.10]},{ x:'07/19/2024',y:[55.30,60.50,55.30,58.50]},{ x:'07/22/2024',y:[58.30,61.40,56.50,59.20]},{ x:'07/23/2024',y:[61.00,62.80,57.70,59.30]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8064 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());