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:'06/01/2022',y:[40.91,41.00,40.91,40.95]},{ x:'06/02/2022',y:[41.10,41.24,41.10,41.23]},{ x:'06/06/2022',y:[41.51,41.53,41.48,41.50]},{ x:'06/07/2022',y:[41.53,41.54,41.45,41.45]},{ x:'06/08/2022',y:[41.54,41.54,41.49,41.49]},{ x:'06/09/2022',y:[41.42,41.44,41.42,41.44]},{ x:'06/10/2022',y:[41.44,41.44,41.42,41.42]},{ x:'06/13/2022',y:[41.39,41.41,41.39,41.40]},{ x:'06/14/2022',y:[41.21,41.26,41.21,41.22]},{ x:'06/15/2022',y:[41.28,41.37,41.28,41.36]},{ x:'06/16/2022',y:[41.45,41.54,41.45,41.47]},{ x:'06/17/2022',y:[41.50,41.56,41.50,41.55]},{ x:'06/20/2022',y:[41.60,41.68,41.60,41.68]},{ x:'06/21/2022',y:[41.78,41.78,41.77,41.77]},{ x:'06/22/2022',y:[41.57,41.58,41.55,41.55]},{ x:'06/23/2022',y:[41.62,41.71,41.62,41.65]},{ x:'06/24/2022',y:[41.68,41.68,41.68,41.68]},{ x:'06/27/2022',y:[41.60,41.60,41.55,41.58]},{ x:'06/28/2022',y:[41.50,41.50,41.47,41.47]},{ x:'06/29/2022',y:[41.48,41.48,41.48,41.48]},{ x:'06/30/2022',y:[41.51,41.51,41.50,41.50]},{ x:'07/01/2022',y:[41.59,41.59,41.48,41.48]},{ x:'07/04/2022',y:[41.64,41.70,41.64,41.70]},{ x:'07/05/2022',y:[41.62,41.62,41.61,41.61]},{ x:'07/06/2022',y:[41.61,41.62,41.52,41.52]},{ x:'07/07/2022',y:[41.49,41.62,41.49,41.62]},{ x:'07/08/2022',y:[41.59,41.59,41.59,41.59]},{ x:'07/11/2022',y:[41.64,41.64,41.64,41.64]},{ x:'07/12/2022',y:[41.67,41.67,41.62,41.62]},{ x:'07/13/2022',y:[41.70,41.70,41.67,41.68]},{ x:'07/14/2022',y:[41.74,41.74,41.69,41.69]},{ x:'07/15/2022',y:[41.62,41.64,41.59,41.59]},{ x:'07/18/2022',y:[41.67,41.67,41.67,41.67]},{ x:'07/19/2022',y:[41.65,41.65,41.63,41.65]},{ x:'07/20/2022',y:[41.60,41.60,41.60,41.60]},{ x:'07/21/2022',y:[41.58,41.60,41.58,41.60]},{ x:'07/22/2022',y:[41.58,41.60,41.56,41.56]},{ x:'07/25/2022',y:[41.67,41.75,41.67,41.71]},{ x:'07/26/2022',y:[41.73,41.73,41.72,41.72]},{ x:'07/27/2022',y:[41.72,41.72,41.71,41.71]},{ x:'07/28/2022',y:[41.80,41.80,41.80,41.80]},{ x:'07/29/2022',y:[41.90,41.93,41.86,41.90]},{ x:'08/01/2022',y:[41.66,41.80,41.66,41.70]},{ x:'08/02/2022',y:[41.75,41.78,41.74,41.75]},{ x:'08/03/2022',y:[41.80,41.85,41.80,41.85]},{ x:'08/04/2022',y:[41.95,41.95,41.92,41.92]},{ x:'08/05/2022',y:[41.91,41.99,41.90,41.90]},{ x:'08/08/2022',y:[41.90,41.90,41.84,41.88]},{ x:'08/09/2022',y:[41.70,41.88,41.70,41.87]},{ x:'08/10/2022',y:[41.84,41.94,41.82,41.94]},{ x:'08/11/2022',y:[41.97,42.00,41.97,42.00]},{ x:'08/12/2022',y:[41.94,41.96,41.93,41.96]},{ x:'08/15/2022',y:[42.01,42.10,42.01,42.08]},{ x:'08/16/2022',y:[41.88,41.93,41.84,41.90]},{ x:'08/17/2022',y:[41.97,41.97,41.94,41.95]},{ x:'08/18/2022',y:[41.98,41.98,41.92,41.92]},{ x:'08/19/2022',y:[41.88,41.88,41.77,41.83]},{ x:'08/22/2022',y:[41.82,41.83,41.82,41.83]},{ x:'08/23/2022',y:[41.73,41.73,41.71,41.71]},{ x:'08/24/2022',y:[41.86,41.88,41.84,41.84]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00796b 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());