FusionCharts饼图中label值太长怎么解决

时间:2022-06-05 13:02:49

FusionCharts饼图中label值太长怎么解决

1、使用hoverText属性

<?xml version="1.0" encoding="UTF-8"?>
<chart caption='Company Revenue' showPercentValues='1'>
    <set label='Servicesuidjfkdsjafklsjdfkldgdhjkdfhsgjdkhfsjkhgkjhfdkjhsdkjghdkfjs' value='26' hoverText='图例:Servicesuidjfkdsjafklsjdfkldgdhjkdfhsgjdkhfsjkhgkjhfdkjhsdkjghdkfjs{br}数值:26'/>
    <set label='Hardwareetdsdfdsfdsfdsfdfdfdsfkndsjgklsajfkajsdkjdkashfjkdshgjkkkkmsdjkfkdshf' value='32' />
    <set label='Softwaresfdfsfdsfssfsdfdsfsdfdsjfskdjfkdsfhgjkdsfhgjfsdhgjhfdsjkhgsjfdjdghfdjhds' value='42' />
    <set label='Servicessfdsfsetdfdsgffdsgdfdsfashfjksdhfjkdshfjkashjhdhasfjhgdfjgjhdsafhhdgssjjh' value='26' />
    <set label='Hardwaresafddsfdsafdregfdhtfdfdsadsfkldsjlkdjfksdhgjkfhgsjkshdgjkfghjdfhgjshgjshgsjkk' value='32' />
    <set label='Softwareastfrfht4121245122121522afmnfkjsadkjfhkjahfjdkahfasjhdahdfjashfjsdjfjdajfjhaj' value='42' />
    <set label='Servicesefdsgsfdhgfdxdstgdfhdhtjdsdfhajkhdjskfhdsjfhjdhfdjkafhjhfjdfhjdjkfkjsdkfkfkf' value='26' />
    <set label='Hardwaresgfdhygfjdfsgdghdfhghgdhghgfdsakdfjsakjfjkdajfkasdfdsjhjasjkjjsajfjkajkjkaj' value='32' />
    <set label='Softwaredfhgdfhgfhgdhjghgffdffddfdfdhghdasfkjasfasjkdjhsdjfaafjkasfjjfkkjasdhajkaaj' value='42' />
    <set label='Servicesddhfdfdfggffsdgfsdgfdsgsgsdfgsdafsjkfkjsajkfsjasfjahafjajaajkjkjkajkaajkja' value='26' />
    <set label='Hardwaresgfsgsfdgsfdgfdsggsgfdssfggfgfdsfkljasdfkjjakskjajkajkjkajjjjjjjsajjjhasdfj' value='32' />
    <set label='Softwaresdfgsfdgfgdfgsretrfgrsesrygrsgrfsgasuhjasjhajkajkajkjajkajkjajkdjjdjdjdjdjd' value='42' />
</chart>

2、实例图

(1)没有加hoverText属性

FusionCharts饼图中label值太长怎么解决

(2)加了hoverText属性

FusionCharts饼图中label值太长怎么解决