Optimize setLevelCountData function to use dashboard.levelCountData directly