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:'03/21/2024',y:[43.45,44.02,43.45,44.00]},{ x:'03/22/2024',y:[44.05,44.15,43.95,44.13]},{ x:'03/25/2024',y:[44.18,44.18,43.88,44.04]},{ x:'03/26/2024',y:[44.04,44.17,43.98,44.16]},{ x:'03/27/2024',y:[43.73,43.88,43.61,43.87]},{ x:'03/28/2024',y:[44.04,44.11,44.00,44.00]},{ x:'03/29/2024',y:[43.97,44.19,43.92,44.18]},{ x:'04/01/2024',y:[44.40,44.47,44.24,44.25]},{ x:'04/02/2024',y:[44.65,44.67,44.48,44.50]},{ x:'04/03/2024',y:[43.99,43.99,43.75,43.76]},{ x:'04/08/2024',y:[43.56,43.56,43.43,43.48]},{ x:'04/09/2024',y:[43.48,43.76,43.46,43.74]},{ 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]} ] }], 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());