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/25/2024',y:[41.23,41.23,40.57,40.59]},{ x:'04/26/2024',y:[41.45,41.80,41.45,41.72]},{ x:'04/29/2024',y:[42.10,42.20,42.08,42.15]},{ x:'04/30/2024',y:[42.04,42.04,41.92,41.93]},{ x:'05/02/2024',y:[41.29,41.29,40.99,41.09]},{ x:'05/03/2024',y:[41.40,41.50,41.35,41.39]},{ x:'05/06/2024',y:[41.99,41.99,41.75,41.83]},{ x:'05/07/2024',y:[42.36,42.50,42.33,42.47]},{ x:'05/08/2024',y:[42.50,42.58,42.50,42.50]},{ x:'05/09/2024',y:[42.50,42.50,42.40,42.40]},{ x:'05/10/2024',y:[42.50,42.58,42.48,42.50]},{ x:'05/13/2024',y:[42.55,42.65,42.52,42.64]},{ x:'05/14/2024',y:[42.63,42.63,42.54,42.57]},{ x:'05/15/2024',y:[42.89,42.94,42.76,42.77]},{ x:'05/16/2024',y:[43.46,43.69,43.46,43.66]},{ x:'05/17/2024',y:[43.66,43.66,43.56,43.62]},{ x:'05/20/2024',y:[43.62,43.68,43.62,43.66]},{ x:'05/21/2024',y:[43.88,44.14,43.88,44.08]},{ x:'05/22/2024',y:[44.08,44.12,44.05,44.12]},{ x:'05/23/2024',y:[44.32,44.82,44.32,44.72]},{ x:'05/24/2024',y:[44.29,44.29,44.10,44.14]},{ x:'06/11/2024',y:[45.00,45.05,44.99,45.04]},{ x:'06/12/2024',y:[45.59,45.67,45.58,45.66]},{ x:'06/13/2024',y:[46.60,46.82,46.60,46.76]},{ x:'06/14/2024',y:[46.78,46.83,46.74,46.81]},{ x:'06/17/2024',y:[46.85,47.08,46.85,47.08]},{ x:'06/18/2024',y:[47.33,47.58,47.33,47.58]},{ x:'06/19/2024',y:[47.80,47.80,47.70,47.79]},{ x:'06/20/2024',y:[47.82,48.00,47.77,48.00]},{ x:'06/21/2024',y:[47.50,47.50,47.20,47.26]},{ x:'06/24/2024',y:[47.17,47.17,46.85,46.99]},{ x:'06/25/2024',y:[46.57,46.59,46.32,46.58]},{ x:'06/26/2024',y:[47.05,47.34,47.05,47.33]},{ x:'06/27/2024',y:[47.14,47.20,47.06,47.19]},{ x:'06/28/2024',y:[47.60,47.85,47.60,47.73]},{ x:'07/01/2024',y:[47.68,47.68,47.36,47.63]},{ x:'07/02/2024',y:[47.63,47.72,47.58,47.67]},{ x:'07/03/2024',y:[47.72,48.23,47.72,48.22]},{ x:'07/04/2024',y:[48.56,48.64,48.45,48.51]},{ x:'07/05/2024',y:[48.55,48.58,48.37,48.46]},{ x:'07/12/2024',y:[48.70,48.74,48.42,48.50]},{ x:'07/15/2024',y:[48.97,49.03,48.92,49.03]},{ x:'07/16/2024',y:[49.04,49.46,49.04,49.30]},{ x:'07/17/2024',y:[49.14,49.14,48.84,48.86]},{ x:'07/18/2024',y:[47.19,47.54,47.18,47.50]},{ x:'07/19/2024',y:[47.45,47.45,47.25,47.32]},{ x:'07/22/2024',y:[46.90,47.11,46.80,47.08]},{ x:'07/23/2024',y:[47.52,47.73,47.52,47.63]},{ x:'07/26/2024',y:[45.54,45.67,45.25,45.60]},{ x:'07/29/2024',y:[45.93,46.28,45.93,46.26]},{ x:'07/30/2024',y:[46.00,46.00,45.54,45.82]},{ x:'07/31/2024',y:[45.50,45.69,45.30,45.61]},{ x:'08/01/2024',y:[47.00,47.00,46.74,46.91]},{ x:'08/02/2024',y:[45.60,45.60,44.65,44.66]},{ x:'08/05/2024',y:[43.91,43.91,41.40,41.40]},{ x:'08/06/2024',y:[41.87,43.50,41.87,43.30]},{ x:'08/07/2024',y:[43.28,43.63,42.93,43.57]},{ x:'08/08/2024',y:[42.90,42.90,42.00,42.45]},{ x:'08/09/2024',y:[43.37,43.70,43.37,43.44]},{ x:'08/12/2024',y:[43.65,44.10,43.64,44.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00770 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());