有人可以帮我创建一个类似于谷歌播放中显示的评级直方图的评级直方图吗?
尝试使用滑块,但正在寻找更好的选项来显示直方图。下面是我的代码
<div class="ui-grid-b">
<div class="ui-block-a">5 Stars</div>
<div class="ui-block-b"><input type="range" name="slider-mini" id="slider-mini" value="76322" min="0" max="84392" data-highlight="true" data-mini="true" /></div>
<div class="ui-block-c">76322</div>
<div class="ui-block-a">4 Stars</div>
<div class="ui-block-b"><input type="range" name="slider-mini" id="slider-mini" value="84392" min="0" max="84392" data-highlight="true" data-mini="true" /></div>
<div class="ui-block-c">84392</div>
<div class="ui-block-a">3 Stars</div>
<div class="ui-block-b"><input type="range" name="slider-mini" id="slider-mini" value="6322" min="0" max="84392" data-highlight="true" data-mini="true" /></div>
<div class="ui-block-c">6322</div>
<div class="ui-block-a">2 Stars</div>
<div class="ui-block-b"><input type="range" name="slider-mini" id="slider-mini" value="25120" min="0" max="84392" data-highlight="true" data-mini="true" /></div>
<div class="ui-block-c">25120</div>
<div class="ui-block-a">1 Star</div>
<div class="ui-block-b"><input type="range" name="slider-mini" id="slider-mini" value="1532" min="0" max="84392" data-highlight="true" data-mini="true" /></div>
<div class="ui-block-c">1532</div>
</div>
希望得到一些替代解决方案,帮助我以比滑块控件更好的方式显示直方图
提前致谢