【发布时间】:2014-06-24 01:30:25
【问题描述】:
我有一个功能饼图,但我想在将鼠标悬停在相关饼图段上时改进样式。官方文档、在线搜索和来源都没有提供如何影响图例条目的线索。有没有人有如何做到这一点的任何例子?
饼图目前有 8 个分段。如果有帮助,这里是一个饼图片段及其相关图例条目示例的源代码:
<rvml:shape class="rvml" style="position: absolute; filter: ; width: 1px; height 1px; top: 0px; left: 0px;" raphael="true" raphaelid="0">
<rvml:stroke class="rvml" />
<rvml:skew class="rvml" />
<rvml:fill class="rvml" />
<!-- raphaelid="1" through "7" have the same attributes and subelements -->
<rvml:shape class="rvml" style="position: absolute; filter: ; width: 1px; height 1px; top: 0px; left: 0px;" raphael="true" raphaelid="8">
<!-- same subelements as first -->
<!-- raphaelid="9" through "15" have the same attributes and subelements -->
<!-- Colored bullet just before legend entry -->
<rvml:shape class="rvml" style="position: absolute; filter: ; width: 1px; height 1px; top: 0px; left: 0px;" raphael="true" raphaelid="16">
<!-- same subelements as first -->
<!-- Legend entry -->
<rvml:shape class="rvml" style="position: absolute; filter: ; width: 1px; height 1px; top: 0px; left: 0px;" raphael="true" raphaelid="17">
<rvml:stroke class="rvml" />
<rvml:textpath class="rvml" style="font: 400 12px Arial, sans-serif; v-text-align: left; v-text-kern: true;" />
<rvml:path class="rvml" />
<rvml:skew class="rvml" />
<rvml:fill class="rvml" />
【问题讨论】:
标签: graphael