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/11/2023',y:[38.65,39.50,38.50,38.85]},{ x:'04/12/2023',y:[39.50,39.90,39.40,39.60]},{ x:'04/13/2023',y:[39.60,39.80,39.00,39.00]},{ x:'04/14/2023',y:[39.30,39.60,39.15,39.50]},{ x:'04/17/2023',y:[40.05,40.45,39.00,39.30]},{ x:'04/18/2023',y:[39.30,40.00,39.30,40.00]},{ x:'04/19/2023',y:[40.50,41.95,40.40,41.50]},{ x:'04/20/2023',y:[41.50,41.75,40.40,40.45]},{ x:'04/21/2023',y:[40.60,40.60,38.65,39.10]},{ x:'04/24/2023',y:[39.10,39.80,39.10,39.80]},{ x:'04/25/2023',y:[40.00,40.00,38.50,38.50]},{ x:'04/26/2023',y:[38.50,39.50,37.80,39.50]},{ x:'04/27/2023',y:[39.55,40.20,39.40,39.95]},{ x:'04/28/2023',y:[40.00,40.45,39.40,39.95]},{ x:'05/02/2023',y:[40.50,41.95,40.10,41.50]},{ x:'05/03/2023',y:[41.40,41.40,39.90,40.80]},{ x:'05/04/2023',y:[40.15,40.60,40.15,40.20]},{ x:'05/05/2023',y:[40.70,40.70,40.00,40.00]},{ x:'05/08/2023',y:[41.30,41.30,40.50,40.50]},{ x:'05/09/2023',y:[40.80,40.80,39.80,40.00]},{ x:'05/10/2023',y:[39.90,39.90,38.65,39.30]},{ x:'05/11/2023',y:[43.20,43.20,43.20,43.20]},{ x:'05/12/2023',y:[44.20,45.40,42.10,45.30]},{ x:'05/15/2023',y:[47.30,47.30,44.05,46.35]},{ x:'05/16/2023',y:[46.80,48.85,45.80,47.95]},{ x:'05/17/2023',y:[49.50,52.70,48.70,49.25]},{ x:'05/18/2023',y:[49.45,52.50,49.15,52.50]},{ x:'05/19/2023',y:[52.40,52.50,49.50,49.90]},{ x:'05/22/2023',y:[49.90,50.70,48.70,49.90]},{ x:'05/23/2023',y:[50.00,51.80,49.90,50.50]},{ x:'05/24/2023',y:[50.20,51.30,49.85,50.60]},{ x:'05/25/2023',y:[51.30,52.20,50.30,50.50]},{ x:'05/26/2023',y:[51.10,55.50,50.00,55.50]},{ x:'05/29/2023',y:[57.90,59.60,56.10,57.20]},{ x:'05/30/2023',y:[56.80,58.00,54.70,56.00]},{ x:'05/31/2023',y:[56.40,60.00,56.00,58.00]},{ x:'06/01/2023',y:[58.00,61.20,58.00,61.10]},{ x:'06/02/2023',y:[60.60,60.70,59.40,60.00]},{ x:'06/05/2023',y:[60.00,60.70,58.60,59.90]},{ x:'06/06/2023',y:[60.20,63.60,57.50,58.40]},{ x:'06/07/2023',y:[59.00,60.50,58.00,59.20]},{ x:'06/08/2023',y:[59.70,59.70,56.30,56.50]},{ x:'06/09/2023',y:[57.50,58.50,57.00,57.20]},{ x:'06/12/2023',y:[57.40,57.70,51.50,55.30]},{ x:'06/13/2023',y:[55.80,59.60,55.60,58.50]},{ x:'06/14/2023',y:[59.00,59.50,57.60,57.70]},{ x:'06/15/2023',y:[58.90,58.90,56.50,57.30]},{ x:'06/16/2023',y:[57.90,57.90,56.00,56.50]},{ x:'06/19/2023',y:[56.10,57.60,56.10,57.50]},{ x:'06/20/2023',y:[57.50,58.00,56.10,57.80]},{ x:'06/21/2023',y:[58.90,62.80,58.00,61.20]},{ x:'06/26/2023',y:[61.20,64.40,59.00,62.10]},{ x:'06/27/2023',y:[61.00,63.70,59.50,59.50]},{ x:'06/28/2023',y:[60.40,65.40,60.40,63.10]},{ x:'06/29/2023',y:[62.00,64.00,61.30,62.60]},{ x:'06/30/2023',y:[63.00,68.80,62.20,68.80]},{ x:'07/03/2023',y:[72.30,73.50,69.30,70.80]},{ x:'07/04/2023',y:[71.20,76.00,68.60,74.30]},{ x:'07/05/2023',y:[77.50,81.20,76.00,81.20]},{ x:'07/06/2023',y:[79.90,83.10,77.30,79.80]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "8048 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());