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/10/2024',y:[43.87,43.93,43.74,43.78]},{ x:'04/11/2024',y:[43.24,43.54,43.20,43.52]},{ x:'04/12/2024',y:[44.33,44.41,44.28,44.32]},{ x:'04/15/2024',y:[43.28,43.32,43.16,43.20]},{ x:'04/16/2024',y:[42.71,42.74,42.59,42.68]},{ x:'04/17/2024',y:[43.05,43.27,43.05,43.07]},{ x:'04/18/2024',y:[41.89,41.89,41.77,41.86]},{ x:'04/19/2024',y:[40.78,40.78,40.00,40.44]},{ x:'04/22/2024',y:[39.50,39.83,39.46,39.83]},{ x:'04/23/2024',y:[40.13,40.24,40.13,40.22]},{ x:'04/24/2024',y:[41.55,41.74,41.51,41.74]},{ x:'04/25/2024',y:[41.40,41.59,41.25,41.27]},{ x:'04/26/2024',y:[42.20,42.29,42.20,42.26]},{ x:'04/29/2024',y:[43.32,43.50,43.32,43.49]},{ x:'04/30/2024',y:[43.54,43.56,43.46,43.49]},{ x:'05/02/2024',y:[41.64,41.90,41.50,41.85]},{ x:'05/03/2024',y:[42.19,42.19,41.94,41.98]},{ x:'05/06/2024',y:[42.82,42.92,42.80,42.85]},{ x:'05/07/2024',y:[43.58,43.70,43.56,43.70]},{ x:'05/08/2024',y:[43.52,43.61,43.51,43.52]},{ x:'05/09/2024',y:[43.52,43.52,43.40,43.40]},{ x:'05/10/2024',y:[43.39,43.39,43.32,43.36]},{ x:'05/13/2024',y:[43.69,43.79,43.68,43.77]},{ x:'05/14/2024',y:[43.76,43.79,43.69,43.70]},{ x:'05/15/2024',y:[44.40,44.45,44.38,44.41]},{ x:'05/16/2024',y:[45.51,45.52,45.41,45.41]},{ x:'05/17/2024',y:[45.23,45.44,45.23,45.42]},{ x:'05/20/2024',y:[45.35,45.35,45.12,45.33]},{ x:'05/21/2024',y:[46.14,46.22,46.10,46.21]},{ x:'05/22/2024',y:[46.18,46.23,46.10,46.21]},{ x:'05/23/2024',y:[47.14,47.70,47.14,47.55]},{ x:'05/24/2024',y:[46.74,46.74,46.46,46.48]},{ x:'06/11/2024',y:[48.63,48.92,48.63,48.85]},{ x:'06/12/2024',y:[48.85,49.13,48.85,49.12]},{ x:'06/13/2024',y:[50.90,51.25,50.85,51.15]},{ x:'06/14/2024',y:[51.50,51.60,50.95,51.40]},{ x:'06/17/2024',y:[51.25,51.25,51.05,51.10]},{ x:'06/18/2024',y:[51.80,51.95,51.75,51.95]},{ x:'06/19/2024',y:[52.65,52.80,52.60,52.75]},{ x:'06/20/2024',y:[52.80,53.15,52.75,53.10]},{ x:'06/21/2024',y:[51.20,51.25,51.05,51.10]},{ x:'06/24/2024',y:[50.65,50.65,50.05,50.20]},{ x:'06/25/2024',y:[48.82,49.46,48.78,49.36]},{ x:'06/26/2024',y:[50.25,50.25,49.99,50.15]},{ x:'06/27/2024',y:[49.44,49.60,49.41,49.60]},{ x:'06/28/2024',y:[49.64,49.91,49.64,49.75]},{ x:'07/01/2024',y:[50.00,50.10,49.99,50.10]},{ x:'07/02/2024',y:[49.80,49.93,49.76,49.93]},{ x:'07/03/2024',y:[50.60,51.00,50.60,50.95]},{ x:'07/04/2024',y:[51.70,51.80,51.50,51.65]},{ x:'07/05/2024',y:[51.60,51.70,51.40,51.65]},{ x:'07/12/2024',y:[52.10,52.25,51.95,52.00]},{ x:'07/15/2024',y:[52.80,53.15,52.80,53.05]},{ x:'07/16/2024',y:[53.15,53.20,52.95,53.10]},{ x:'07/17/2024',y:[53.00,53.10,52.75,52.90]},{ x:'07/18/2024',y:[50.00,50.30,49.80,50.25]},{ x:'07/19/2024',y:[50.00,50.40,50.00,50.25]},{ x:'07/22/2024',y:[49.04,49.07,48.82,49.00]},{ x:'07/23/2024',y:[50.10,50.30,50.05,50.20]},{ x:'07/26/2024',y:[46.36,47.34,46.36,47.29]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00830 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());