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/30/2024',y:[6.30,6.32,6.27,6.32]},{ x:'05/02/2024',y:[6.32,6.34,6.29,6.29]},{ x:'05/03/2024',y:[6.30,6.33,6.29,6.30]},{ x:'05/06/2024',y:[6.35,6.35,6.27,6.27]},{ x:'05/07/2024',y:[6.30,6.34,6.26,6.26]},{ x:'05/08/2024',y:[6.30,6.30,6.25,6.29]},{ x:'05/09/2024',y:[6.29,6.29,6.23,6.25]},{ x:'05/10/2024',y:[6.23,6.27,6.19,6.20]},{ x:'05/13/2024',y:[6.26,6.31,6.19,6.23]},{ x:'05/14/2024',y:[6.20,6.23,6.19,6.19]},{ x:'05/15/2024',y:[6.19,6.24,6.19,6.23]},{ x:'05/16/2024',y:[6.24,6.24,6.19,6.21]},{ x:'05/17/2024',y:[6.23,6.32,6.22,6.29]},{ x:'05/20/2024',y:[6.30,6.60,6.30,6.43]},{ x:'05/21/2024',y:[6.48,6.50,6.30,6.40]},{ x:'05/22/2024',y:[6.42,6.47,6.39,6.39]},{ x:'05/23/2024',y:[6.39,6.45,6.36,6.36]},{ x:'05/24/2024',y:[6.36,6.63,6.33,6.45]},{ x:'06/11/2024',y:[6.45,6.45,6.40,6.40]},{ x:'06/12/2024',y:[6.40,6.41,6.38,6.38]},{ x:'06/13/2024',y:[6.38,6.40,6.36,6.40]},{ x:'06/14/2024',y:[6.49,6.49,6.39,6.39]},{ x:'06/17/2024',y:[6.40,6.85,6.40,6.72]},{ x:'06/18/2024',y:[6.85,6.85,6.46,6.58]},{ x:'06/19/2024',y:[6.65,6.65,6.52,6.59]},{ x:'06/20/2024',y:[6.64,6.65,6.59,6.59]},{ x:'06/21/2024',y:[6.59,6.80,6.57,6.67]},{ x:'06/24/2024',y:[6.77,7.00,6.75,6.95]},{ x:'06/25/2024',y:[7.20,7.64,7.07,7.64]},{ x:'06/26/2024',y:[7.90,8.40,7.85,8.40]},{ x:'06/27/2024',y:[8.81,8.99,7.58,7.58]},{ x:'06/28/2024',y:[7.66,8.15,7.28,7.73]},{ x:'07/01/2024',y:[7.86,8.10,7.75,7.86]},{ x:'07/02/2024',y:[7.87,8.07,7.67,7.76]},{ x:'07/03/2024',y:[7.84,7.97,7.60,7.87]},{ x:'07/04/2024',y:[7.98,8.09,7.89,7.91]},{ x:'07/05/2024',y:[8.02,8.22,7.96,7.97]},{ x:'07/12/2024',y:[8.10,8.15,7.97,8.00]},{ x:'07/15/2024',y:[8.05,8.05,7.91,7.92]},{ x:'07/16/2024',y:[7.82,7.98,7.82,7.91]},{ x:'07/17/2024',y:[7.96,8.05,7.86,7.97]},{ x:'07/18/2024',y:[7.90,8.00,7.89,7.97]},{ x:'07/19/2024',y:[8.02,8.02,7.60,7.62]},{ x:'07/22/2024',y:[7.61,7.61,7.33,7.34]},{ x:'07/23/2024',y:[7.34,7.42,7.28,7.34]},{ x:'07/26/2024',y:[7.38,7.38,7.11,7.25]},{ x:'07/29/2024',y:[7.27,7.31,7.19,7.21]},{ x:'07/30/2024',y:[7.20,7.20,7.00,7.13]},{ x:'07/31/2024',y:[7.12,7.32,7.12,7.26]},{ x:'08/01/2024',y:[7.26,7.30,7.22,7.22]},{ x:'08/02/2024',y:[7.19,7.20,7.03,7.03]},{ x:'08/05/2024',y:[6.89,6.98,6.33,6.35]},{ x:'08/06/2024',y:[6.35,6.75,6.25,6.39]},{ x:'08/07/2024',y:[6.68,6.79,6.53,6.77]},{ x:'08/08/2024',y:[6.70,6.73,6.60,6.67]},{ x:'08/09/2024',y:[6.60,6.78,6.60,6.67]},{ x:'08/12/2024',y:[6.67,6.81,6.62,6.62]},{ x:'08/13/2024',y:[6.74,6.74,6.60,6.72]},{ x:'08/14/2024',y:[6.74,6.77,6.68,6.70]},{ x:'08/15/2024',y:[6.69,6.97,6.66,6.88]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "9136 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());