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/29/2024',y:[37.60,37.67,37.60,37.65]},{ x:'04/30/2024',y:[37.76,37.82,37.71,37.79]},{ x:'05/02/2024',y:[37.66,37.76,37.64,37.75]},{ x:'05/03/2024',y:[37.74,37.80,37.72,37.73]},{ x:'05/06/2024',y:[37.96,38.05,37.96,38.03]},{ x:'05/07/2024',y:[38.20,38.42,38.20,38.39]},{ x:'05/08/2024',y:[38.42,38.45,38.36,38.36]},{ x:'05/09/2024',y:[38.17,38.19,38.12,38.16]},{ x:'05/10/2024',y:[38.40,38.45,38.34,38.34]},{ x:'05/13/2024',y:[38.22,38.25,38.20,38.21]},{ x:'05/14/2024',y:[38.21,38.23,38.17,38.18]},{ x:'05/15/2024',y:[38.27,38.33,38.18,38.18]},{ x:'05/16/2024',y:[38.61,38.67,38.55,38.62]},{ x:'05/17/2024',y:[38.59,38.65,38.56,38.59]},{ x:'05/20/2024',y:[38.47,38.51,38.45,38.48]},{ x:'05/21/2024',y:[38.45,38.47,38.43,38.45]},{ x:'05/22/2024',y:[38.53,38.60,38.51,38.52]},{ x:'05/23/2024',y:[38.52,38.54,38.46,38.46]},{ x:'05/24/2024',y:[38.34,38.37,38.28,38.30]},{ x:'06/11/2024',y:[38.70,38.72,38.60,38.66]},{ x:'06/12/2024',y:[38.90,38.95,38.84,38.91]},{ x:'06/13/2024',y:[39.17,39.18,39.08,39.14]},{ x:'06/14/2024',y:[39.45,39.51,39.41,39.41]},{ x:'06/17/2024',y:[39.41,39.46,39.38,39.40]},{ x:'06/18/2024',y:[39.28,39.32,39.24,39.28]},{ x:'06/19/2024',y:[39.49,39.55,39.49,39.54]},{ x:'06/20/2024',y:[39.48,39.48,39.40,39.41]},{ x:'06/21/2024',y:[39.33,39.33,39.24,39.27]},{ x:'06/24/2024',y:[39.34,39.39,39.31,39.33]},{ x:'06/25/2024',y:[39.55,39.59,39.54,39.58]},{ x:'06/26/2024',y:[39.48,39.52,39.41,39.49]},{ x:'06/27/2024',y:[39.08,39.14,39.05,39.13]},{ x:'06/28/2024',y:[39.25,39.30,39.10,39.13]},{ x:'07/01/2024',y:[38.61,38.72,38.58,38.70]},{ x:'07/02/2024',y:[38.62,38.69,38.61,38.68]},{ x:'07/03/2024',y:[38.73,39.01,38.73,38.98]},{ x:'07/04/2024',y:[39.27,39.27,39.12,39.13]},{ x:'07/05/2024',y:[39.11,39.14,39.03,39.12]},{ x:'07/12/2024',y:[39.57,39.72,39.57,39.72]},{ x:'07/15/2024',y:[39.63,39.74,39.63,39.70]},{ x:'07/16/2024',y:[39.79,39.83,39.78,39.81]},{ x:'07/17/2024',y:[40.00,40.13,40.00,40.12]},{ x:'07/18/2024',y:[40.10,40.10,40.00,40.05]},{ x:'07/19/2024',y:[39.45,39.53,39.45,39.50]},{ x:'07/22/2024',y:[39.48,39.58,39.44,39.56]},{ x:'07/23/2024',y:[39.46,39.46,39.32,39.39]},{ x:'07/26/2024',y:[39.20,39.25,39.02,39.05]},{ x:'07/29/2024',y:[39.25,39.43,39.25,39.38]},{ x:'07/30/2024',y:[39.46,39.48,39.42,39.43]},{ x:'07/31/2024',y:[39.54,39.56,39.44,39.54]},{ x:'08/01/2024',y:[39.72,39.85,39.72,39.73]},{ x:'08/02/2024',y:[39.96,40.07,39.88,39.89]},{ x:'08/05/2024',y:[40.52,40.57,40.12,40.21]},{ x:'08/06/2024',y:[40.00,40.04,39.82,39.92]},{ x:'08/07/2024',y:[39.89,39.89,39.79,39.83]},{ x:'08/08/2024',y:[39.72,39.72,39.48,39.49]},{ x:'08/09/2024',y:[39.47,39.47,39.09,39.20]},{ x:'08/12/2024',y:[39.41,39.61,39.40,39.55]},{ x:'08/13/2024',y:[39.57,39.68,39.53,39.55]},{ x:'08/14/2024',y:[39.84,39.84,39.73,39.78]} ] }], chart: { type: "candlestick", height: 350, toolbar: { show: !1 } }, plotOptions: { candlestick: { colors: { upward: chartCandlestickBasicColors[0], downward: chartCandlestickBasicColors[1] } } }, title: { text: "00722b 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());