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/29/2024',y:[33.95,34.40,33.00,33.15]},{ x:'04/30/2024',y:[33.50,33.75,33.00,33.35]},{ x:'05/02/2024',y:[33.45,33.50,33.10,33.15]},{ x:'05/03/2024',y:[33.25,33.25,33.10,33.15]},{ x:'05/06/2024',y:[33.95,33.95,33.00,33.30]},{ x:'05/07/2024',y:[33.95,36.45,33.40,35.40]},{ x:'05/08/2024',y:[35.45,36.15,34.90,35.05]},{ x:'05/09/2024',y:[34.80,35.00,34.10,34.10]},{ x:'05/10/2024',y:[34.30,34.45,34.20,34.45]},{ x:'05/13/2024',y:[34.40,34.40,33.85,33.95]},{ x:'05/14/2024',y:[33.95,33.95,33.75,33.75]},{ x:'05/15/2024',y:[33.50,34.10,33.50,33.65]},{ x:'05/16/2024',y:[34.10,34.10,32.65,33.00]},{ x:'05/17/2024',y:[33.00,34.05,33.00,33.30]},{ x:'05/20/2024',y:[33.70,35.20,33.40,34.65]},{ x:'05/21/2024',y:[34.20,35.10,34.20,34.45]},{ x:'05/22/2024',y:[34.60,36.90,34.60,36.90]},{ x:'05/23/2024',y:[37.45,37.55,35.45,36.05]},{ x:'05/24/2024',y:[36.05,36.30,35.60,35.80]},{ x:'06/11/2024',y:[41.90,43.50,40.10,40.10]},{ x:'06/12/2024',y:[40.10,40.50,39.35,40.00]},{ x:'06/13/2024',y:[39.90,39.90,39.25,39.30]},{ x:'06/14/2024',y:[39.50,39.55,38.80,38.80]},{ x:'06/17/2024',y:[38.80,42.10,38.20,40.15]},{ x:'06/18/2024',y:[40.15,43.70,40.15,42.30]},{ x:'06/19/2024',y:[42.70,43.00,40.85,41.10]},{ x:'06/20/2024',y:[41.75,45.00,40.90,42.70]},{ x:'06/21/2024',y:[42.70,43.45,41.55,41.80]},{ x:'06/24/2024',y:[42.35,42.40,41.05,41.15]},{ x:'06/25/2024',y:[40.70,41.40,39.60,41.40]},{ x:'06/26/2024',y:[41.85,42.30,41.40,41.40]},{ x:'06/27/2024',y:[41.15,41.70,41.00,41.25]},{ x:'06/28/2024',y:[41.45,43.00,41.30,41.50]},{ x:'07/01/2024',y:[41.40,42.35,41.35,41.50]},{ x:'07/02/2024',y:[42.20,43.50,41.35,42.80]},{ x:'07/03/2024',y:[43.35,44.35,42.50,43.50]},{ x:'07/04/2024',y:[47.85,47.85,47.85,47.85]},{ x:'07/05/2024',y:[52.60,52.60,52.60,52.60]},{ x:'07/12/2024',y:[49.80,54.20,49.50,54.20]},{ x:'07/15/2024',y:[57.00,59.60,50.60,51.30]},{ x:'07/16/2024',y:[51.40,56.40,51.40,54.50]},{ x:'07/17/2024',y:[53.10,54.40,53.10,53.90]},{ x:'07/18/2024',y:[53.70,56.60,51.50,52.90]},{ x:'07/19/2024',y:[52.30,56.50,51.60,55.00]},{ x:'07/22/2024',y:[58.80,58.90,52.60,53.50]},{ x:'07/23/2024',y:[54.30,54.70,52.80,54.50]},{ x:'07/26/2024',y:[53.00,57.60,52.00,55.00]},{ x:'07/29/2024',y:[57.00,57.80,54.80,55.10]},{ x:'07/30/2024',y:[54.00,57.50,52.50,57.20]},{ x:'07/31/2024',y:[56.10,62.90,56.00,62.80]},{ x:'08/01/2024',y:[65.40,69.00,61.60,63.10]},{ x:'08/02/2024',y:[61.10,69.40,60.20,69.40]},{ x:'08/05/2024',y:[67.20,69.40,62.50,62.50]},{ x:'08/06/2024',y:[63.30,65.70,56.30,56.30]},{ x:'08/07/2024',y:[53.20,61.30,53.20,57.00]},{ x:'08/08/2024',y:[57.90,60.60,54.30,57.10]},{ x:'08/09/2024',y:[58.20,61.20,56.50,56.80]},{ x:'08/12/2024',y:[57.00,60.70,56.60,57.40]},{ x:'08/13/2024',y:[60.60,61.20,57.20,60.00]},{ x:'08/14/2024',y:[62.20,62.30,58.10,59.20]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "2070 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());