首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏前端开发

    ECharts 实现一个水滴效果的数据可视化图表

    function() { // 移除所有按钮的选中状态 colorButtons.forEach(b => b.classList.remove('ring -4', 'ring-gray-200')); // 添加当前按钮的选中状态 this.classList.add('ring-4', 'ring-gray updateChart(); }); }); // 默认选中第一个颜色 colorButtons[0].classList.add('ring Math.floor(Math.random() * colorButtons.length)]; colorButtons.forEach(b => b.classList.remove('ring -4', 'ring-gray-200')); randomColor.classList.add('ring-4', 'ring-gray-200'); waterColor

    34710编辑于 2025-09-02
领券