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:'12/06/2022',y:[35.87,35.93,35.87,35.90]},{ x:'12/07/2022',y:[36.17,36.17,36.17,36.17]},{ x:'12/08/2022',y:[36.74,36.74,36.74,36.74]},{ x:'12/09/2022',y:[36.84,36.90,36.84,36.90]},{ x:'12/12/2022',y:[36.17,36.46,36.17,36.46]},{ x:'12/13/2022',y:[36.40,36.40,36.40,36.40]},{ x:'12/14/2022',y:[36.46,36.46,36.46,36.46]},{ x:'12/15/2022',y:[36.44,36.48,36.43,36.48]},{ x:'12/16/2022',y:[36.15,36.15,36.15,36.15]},{ x:'12/19/2022',y:[35.82,35.90,35.82,35.90]},{ x:'12/20/2022',y:[35.44,35.49,35.03,35.07]},{ x:'12/21/2022',y:[34.63,34.68,34.63,34.66]},{ x:'12/22/2022',y:[34.91,34.91,34.91,34.91]},{ x:'12/23/2022',y:[34.84,34.86,34.83,34.83]},{ x:'12/26/2022',y:[34.63,34.63,34.63,34.63]},{ x:'12/27/2022',y:[34.67,34.71,34.67,34.68]},{ x:'12/28/2022',y:[34.10,34.10,34.05,34.05]},{ x:'12/29/2022',y:[33.87,33.87,33.87,33.87]},{ x:'12/30/2022',y:[34.00,34.16,34.00,34.16]},{ x:'01/03/2023',y:[34.01,34.01,33.95,33.97]},{ x:'01/04/2023',y:[34.33,34.45,34.33,34.45]},{ x:'01/05/2023',y:[34.77,34.77,34.72,34.72]},{ x:'01/06/2023',y:[34.83,34.83,34.83,34.83]},{ x:'01/09/2023',y:[35.17,35.23,35.17,35.23]},{ x:'01/10/2023',y:[35.35,35.35,35.35,35.35]},{ x:'01/11/2023',y:[35.20,35.20,35.20,35.20]},{ x:'01/12/2023',y:[35.58,35.70,35.58,35.70]},{ x:'01/13/2023',y:[35.97,35.97,35.89,35.89]},{ x:'01/16/2023',y:[35.74,35.76,35.74,35.76]},{ x:'01/17/2023',y:[35.75,35.75,35.75,35.75]},{ x:'01/30/2023',y:[35.62,35.70,35.62,35.70]},{ x:'01/31/2023',y:[35.38,35.38,35.38,35.38]},{ x:'02/01/2023',y:[35.64,35.64,35.62,35.62]},{ x:'02/02/2023',y:[35.60,35.60,35.60,35.60]},{ x:'02/03/2023',y:[35.84,35.84,35.84,35.84]},{ x:'02/06/2023',y:[35.42,35.46,35.42,35.46]},{ x:'02/07/2023',y:[35.33,35.38,35.33,35.38]},{ x:'02/08/2023',y:[35.12,35.23,35.12,35.23]},{ x:'02/09/2023',y:[35.23,35.23,35.15,35.15]},{ x:'02/10/2023',y:[34.78,34.86,34.78,34.86]},{ x:'02/13/2023',y:[34.52,34.52,34.47,34.47]},{ x:'02/14/2023',y:[34.70,34.70,34.70,34.70]},{ x:'02/15/2023',y:[34.74,34.74,34.74,34.74]},{ x:'02/16/2023',y:[34.47,34.56,34.47,34.56]},{ x:'02/17/2023',y:[34.01,34.01,33.89,33.96]},{ x:'02/20/2023',y:[34.14,34.14,34.14,34.14]},{ x:'02/21/2023',y:[34.14,34.14,34.13,34.13]},{ x:'02/22/2023',y:[33.78,33.83,33.78,33.83]},{ x:'02/23/2023',y:[33.75,33.75,33.75,33.75]},{ x:'02/24/2023',y:[34.08,34.26,34.08,34.21]},{ x:'03/01/2023',y:[34.06,34.06,34.02,34.04]},{ x:'03/02/2023',y:[33.70,33.76,33.70,33.76]},{ x:'03/03/2023',y:[33.85,33.89,33.85,33.89]},{ x:'03/06/2023',y:[34.47,34.47,34.47,34.47]},{ x:'03/07/2023',y:[34.34,34.34,34.34,34.34]},{ x:'03/08/2023',y:[34.37,34.37,34.37,34.37]},{ x:'03/09/2023',y:[34.35,34.35,34.33,34.33]},{ x:'03/10/2023',y:[34.53,34.71,34.53,34.71]},{ x:'03/13/2023',y:[34.72,34.72,34.69,34.69]},{ x:'03/14/2023',y:[34.63,34.63,34.63,34.63]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00777b 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());