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:'07/12/2023',y:[32.92,32.94,32.92,32.94]},{ x:'07/13/2023',y:[33.14,33.14,33.11,33.12]},{ x:'07/14/2023',y:[33.23,33.25,33.21,33.21]},{ x:'07/17/2023',y:[33.07,33.11,33.07,33.10]},{ x:'07/18/2023',y:[33.07,33.08,33.04,33.04]},{ x:'07/19/2023',y:[33.24,33.27,33.23,33.25]},{ x:'07/20/2023',y:[33.55,33.55,33.46,33.46]},{ x:'07/21/2023',y:[33.29,33.30,33.28,33.28]},{ x:'07/24/2023',y:[33.44,33.45,33.43,33.45]},{ x:'07/25/2023',y:[33.53,33.54,33.53,33.54]},{ x:'07/26/2023',y:[33.49,33.49,33.45,33.47]},{ x:'07/27/2023',y:[33.47,33.49,33.47,33.47]},{ x:'07/28/2023',y:[33.31,33.31,33.10,33.16]},{ x:'07/31/2023',y:[33.34,33.34,33.30,33.33]},{ x:'08/01/2023',y:[33.54,33.54,33.54,33.54]},{ x:'08/02/2023',y:[33.29,33.29,33.22,33.22]},{ x:'08/04/2023',y:[32.52,32.61,32.41,32.53]},{ x:'08/07/2023',y:[32.87,32.91,32.87,32.90]},{ x:'08/08/2023',y:[32.68,32.87,32.68,32.87]},{ x:'08/09/2023',y:[33.02,33.05,33.00,33.05]},{ x:'08/10/2023',y:[32.97,32.97,32.92,32.92]},{ x:'08/11/2023',y:[32.65,32.69,32.63,32.65]},{ x:'08/14/2023',y:[32.56,32.59,32.55,32.58]},{ x:'08/15/2023',y:[32.55,32.57,32.53,32.53]},{ x:'08/16/2023',y:[32.50,32.50,32.45,32.47]},{ x:'08/17/2023',y:[32.25,32.25,32.15,32.16]},{ x:'08/18/2023',y:[32.21,32.28,32.21,32.28]},{ x:'08/21/2023',y:[32.14,32.14,32.03,32.03]},{ x:'08/22/2023',y:[31.84,31.90,31.83,31.87]},{ x:'08/23/2023',y:[32.19,32.20,32.19,32.20]},{ x:'08/24/2023',y:[32.83,32.85,32.78,32.78]},{ x:'08/25/2023',y:[32.66,32.66,32.60,32.60]},{ x:'08/28/2023',y:[32.76,32.76,32.73,32.76]},{ x:'08/29/2023',y:[32.77,32.83,32.77,32.83]},{ x:'08/30/2023',y:[32.90,33.08,32.90,33.02]},{ x:'08/31/2023',y:[33.17,33.17,33.14,33.14]},{ x:'09/01/2023',y:[33.14,33.16,33.13,33.13]},{ x:'09/04/2023',y:[32.75,32.77,32.71,32.74]},{ x:'09/05/2023',y:[32.71,32.71,32.71,32.71]},{ x:'09/06/2023',y:[32.42,32.46,32.42,32.46]},{ x:'09/07/2023',y:[32.52,32.52,32.51,32.51]},{ x:'09/08/2023',y:[32.75,32.75,32.75,32.75]},{ x:'09/11/2023',y:[32.65,32.65,32.65,32.65]},{ x:'09/12/2023',y:[32.62,32.63,32.62,32.62]},{ x:'09/13/2023',y:[32.65,32.67,32.65,32.66]},{ x:'09/14/2023',y:[32.78,32.78,32.78,32.78]},{ x:'09/15/2023',y:[32.52,32.55,32.51,32.54]},{ x:'09/18/2023',y:[31.84,31.94,31.83,31.92]},{ x:'09/19/2023',y:[32.24,32.24,32.23,32.23]},{ x:'09/20/2023',y:[32.10,32.10,32.09,32.10]},{ x:'09/21/2023',y:[31.99,32.10,31.99,32.10]},{ x:'09/22/2023',y:[31.58,31.62,31.55,31.62]},{ x:'09/25/2023',y:[31.84,31.84,31.84,31.84]},{ x:'09/26/2023',y:[31.34,31.40,31.34,31.40]},{ x:'09/27/2023',y:[31.45,31.47,31.44,31.47]},{ x:'09/28/2023',y:[31.20,31.26,31.17,31.25]},{ x:'10/02/2023',y:[31.08,31.10,31.07,31.10]},{ x:'10/03/2023',y:[30.75,30.78,30.71,30.75]},{ x:'10/04/2023',y:[29.91,30.03,29.90,29.95]},{ x:'10/05/2023',y:[30.50,30.51,30.48,30.51]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00781b 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());