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:[38.10,38.10,38.10,38.10]},{ x:'04/11/2024',y:[38.04,38.10,38.04,38.10]},{ x:'04/12/2024',y:[38.25,38.25,38.25,38.25]},{ x:'04/15/2024',y:[38.26,38.33,38.26,38.33]},{ x:'04/16/2024',y:[38.34,38.52,38.34,38.48]},{ x:'04/17/2024',y:[38.40,38.40,38.31,38.31]},{ x:'04/18/2024',y:[38.14,38.14,38.14,38.14]},{ x:'04/19/2024',y:[38.21,38.24,38.21,38.24]},{ x:'04/22/2024',y:[38.35,38.35,38.35,38.35]},{ x:'04/23/2024',y:[38.40,38.40,38.40,38.40]},{ x:'04/24/2024',y:[38.37,38.37,38.37,38.37]},{ x:'04/25/2024',y:[38.37,38.37,38.37,38.37]},{ x:'04/26/2024',y:[38.37,38.37,38.32,38.32]},{ x:'04/29/2024',y:[38.35,38.35,38.27,38.27]},{ x:'04/30/2024',y:[38.32,38.32,38.31,38.31]},{ x:'05/02/2024',y:[38.32,38.32,38.32,38.32]},{ x:'05/03/2024',y:[38.32,38.32,38.30,38.30]},{ x:'05/06/2024',y:[38.27,38.27,38.22,38.22]},{ x:'05/07/2024',y:[38.32,38.32,38.26,38.26]},{ x:'05/08/2024',y:[38.40,38.40,38.31,38.31]},{ x:'05/09/2024',y:[38.35,38.35,38.35,38.35]},{ x:'05/10/2024',y:[38.38,38.38,38.38,38.38]},{ x:'05/13/2024',y:[38.33,38.33,38.33,38.33]},{ x:'05/14/2024',y:[38.36,38.36,38.36,38.36]},{ x:'05/15/2024',y:[38.19,38.21,38.19,38.21]},{ x:'05/16/2024',y:[38.13,38.13,38.03,38.03]},{ x:'05/17/2024',y:[38.30,38.30,38.17,38.17]},{ x:'05/20/2024',y:[38.18,38.18,38.18,38.18]},{ x:'05/21/2024',y:[38.26,38.26,38.26,38.26]},{ x:'05/22/2024',y:[38.25,38.25,38.25,38.25]},{ x:'05/23/2024',y:[38.20,38.20,38.20,38.20]},{ x:'05/24/2024',y:[38.17,38.17,38.17,38.17]},{ x:'06/11/2024',y:[38.42,38.42,38.42,38.42]},{ x:'06/12/2024',y:[38.48,38.51,38.48,38.51]},{ x:'06/13/2024',y:[38.50,38.50,38.50,38.50]},{ x:'06/14/2024',y:[38.59,38.65,38.59,38.65]},{ x:'06/17/2024',y:[38.66,38.66,38.60,38.60]},{ x:'06/18/2024',y:[38.56,38.56,38.55,38.55]},{ x:'06/19/2024',y:[38.61,38.64,38.61,38.64]},{ x:'06/20/2024',y:[38.61,38.61,38.61,38.61]},{ x:'06/21/2024',y:[38.54,38.54,38.54,38.54]},{ x:'06/24/2024',y:[38.58,38.58,38.58,38.58]},{ x:'06/25/2024',y:[38.69,38.69,38.69,38.69]},{ x:'06/26/2024',y:[38.74,38.74,38.72,38.73]},{ x:'06/27/2024',y:[38.75,38.75,38.69,38.69]},{ x:'06/28/2024',y:[38.72,38.72,38.72,38.72]},{ x:'07/01/2024',y:[38.70,38.70,38.70,38.70]},{ x:'07/02/2024',y:[38.68,38.71,38.68,38.71]},{ x:'07/03/2024',y:[38.91,38.91,38.88,38.88]},{ x:'07/04/2024',y:[38.84,38.84,38.84,38.84]},{ x:'07/05/2024',y:[38.72,38.72,38.72,38.72]},{ x:'07/12/2024',y:[38.90,38.96,38.90,38.96]},{ x:'07/15/2024',y:[38.99,39.10,38.99,39.06]},{ x:'07/16/2024',y:[38.98,39.00,38.95,38.95]},{ x:'07/17/2024',y:[38.97,38.97,38.90,38.90]},{ x:'07/18/2024',y:[38.98,38.98,38.98,38.98]},{ x:'07/19/2024',y:[39.06,39.07,39.06,39.07]},{ x:'07/22/2024',y:[39.06,39.13,39.06,39.13]},{ x:'07/23/2024',y:[39.09,39.09,39.09,39.09]},{ x:'07/26/2024',y:[39.14,39.19,39.10,39.10]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00784b 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());