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:'01/22/2024',y:[34.47,34.47,34.40,34.40]},{ x:'01/23/2024',y:[34.46,34.46,34.40,34.40]},{ x:'01/24/2024',y:[34.18,34.19,34.18,34.19]},{ x:'01/25/2024',y:[34.05,34.05,33.99,33.99]},{ x:'01/26/2024',y:[34.30,34.42,34.30,34.42]},{ x:'01/29/2024',y:[34.32,34.32,34.23,34.23]},{ x:'01/30/2024',y:[34.38,34.47,34.38,34.45]},{ x:'01/31/2024',y:[34.59,34.63,34.59,34.63]},{ x:'02/01/2024',y:[34.82,34.82,34.66,34.79]},{ x:'02/02/2024',y:[34.64,34.69,34.44,34.61]},{ x:'02/05/2024',y:[34.32,34.46,34.30,34.36]},{ x:'02/15/2024',y:[33.77,33.77,33.60,33.60]},{ x:'02/16/2024',y:[33.40,33.55,33.35,33.55]},{ x:'02/19/2024',y:[33.55,33.62,33.55,33.62]},{ x:'02/20/2024',y:[33.55,33.60,33.55,33.60]},{ x:'02/21/2024',y:[33.66,33.66,33.60,33.60]},{ x:'02/22/2024',y:[33.61,33.61,33.61,33.61]},{ x:'02/23/2024',y:[33.82,33.82,33.75,33.75]},{ x:'02/26/2024',y:[34.02,34.14,33.95,34.14]},{ x:'02/27/2024',y:[33.96,34.00,33.96,34.00]},{ x:'02/29/2024',y:[33.91,33.95,33.91,33.95]},{ x:'03/01/2024',y:[33.65,33.72,33.56,33.72]},{ x:'03/04/2024',y:[33.84,33.84,33.75,33.75]},{ x:'03/05/2024',y:[33.73,33.75,33.71,33.75]},{ x:'03/06/2024',y:[33.96,33.99,33.96,33.99]},{ x:'03/07/2024',y:[34.20,34.20,34.20,34.20]},{ x:'03/08/2024',y:[34.14,34.19,34.14,34.19]},{ x:'03/11/2024',y:[34.23,34.25,34.23,34.25]},{ x:'03/12/2024',y:[34.23,34.23,34.22,34.22]},{ x:'03/13/2024',y:[34.12,34.13,34.12,34.13]},{ x:'03/14/2024',y:[34.02,34.02,34.02,34.02]},{ x:'03/15/2024',y:[33.91,33.91,33.91,33.91]},{ x:'03/18/2024',y:[33.87,33.89,33.87,33.89]},{ x:'03/19/2024',y:[34.09,34.09,34.03,34.03]},{ x:'03/20/2024',y:[34.17,34.17,34.14,34.14]},{ x:'03/21/2024',y:[34.03,34.04,34.03,34.04]},{ x:'03/22/2024',y:[34.10,34.38,34.10,34.38]},{ x:'03/25/2024',y:[34.50,34.50,34.44,34.46]},{ x:'03/26/2024',y:[34.38,34.41,34.38,34.41]},{ x:'03/27/2024',y:[34.45,34.45,34.45,34.45]},{ x:'03/28/2024',y:[34.55,34.59,34.55,34.59]},{ x:'03/29/2024',y:[34.61,34.83,34.61,34.77]},{ x:'04/01/2024',y:[34.69,34.72,34.69,34.72]},{ x:'04/02/2024',y:[34.40,34.44,34.40,34.44]},{ x:'04/03/2024',y:[34.10,34.13,34.09,34.09]},{ x:'04/08/2024',y:[33.90,33.93,33.89,33.89]},{ x:'04/09/2024',y:[34.03,34.11,34.03,34.11]},{ x:'04/10/2024',y:[34.21,34.22,34.16,34.16]},{ x:'04/11/2024',y:[33.85,33.85,33.79,33.79]},{ x:'04/12/2024',y:[33.70,33.72,33.70,33.71]},{ x:'04/15/2024',y:[33.56,33.80,33.56,33.80]},{ x:'04/16/2024',y:[33.43,33.52,33.33,33.33]},{ x:'04/17/2024',y:[33.19,33.19,33.14,33.16]},{ x:'04/18/2024',y:[33.30,33.40,33.30,33.40]},{ x:'04/19/2024',y:[33.70,33.72,33.70,33.72]},{ x:'04/22/2024',y:[33.41,33.41,33.37,33.37]},{ x:'04/23/2024',y:[33.59,33.75,33.59,33.75]},{ x:'04/24/2024',y:[33.60,33.63,33.60,33.63]},{ x:'04/25/2024',y:[33.45,33.45,33.45,33.45]},{ x:'04/26/2024',y:[33.40,33.46,33.40,33.46]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00775b 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());