我正在使用Ruby on Rails中的chartkick为HR应用程序创建人员人数饼图。当屏幕达到最大尺寸时,工具提示会出现在饼图的顶部,将鼠标悬停在切片上时会产生闪烁的效果。
我尝试过使用Google图表中的库,工具提示选项,但这些未呈现
这是我当前在View中的代码。
<div id="employee-stats" class="employee-stats">
<h2 class="small-box-label" style="margin-bottom: 10px
">Today's Headcount</h2>
<div id="chart-1" class="chart-1">
<%= pie_chart
@employee_statuses.each_with_object(Hash.new(0)){|e, h| h[e]
+= 1}, legend: false, donut: true, library:{backgroundColor: 'transparent'} %>
</div>
</div>
我需要确保无论屏幕大小如何,工具提示都在饼图的外部,以免发生闪烁