silverlight - Visifire inquiry -
i making bar graph in visifire , want make custom legend. achieved custom legend want stack vertically.
here code:
<visifire:chart.plotarea> <visifire:plotarea shadowenabled="false"></visifire:plotarea> </visifire:chart.plotarea> <visifire:chart.legends> <visifire:legend x:name="legend0" height="30" width="50" horizontalalignment="right" verticalalignment="top" entrymargin="5" fontsize="10" fontweight="bold" shadowenabled="false" borderthickness="0" background="transparent" lightingenabled="false" /> </visifire:chart.legends> <visifire:chart.series> <visifire:dataseries renderas="column" labelenabled="true" margin="-1,0,1,0" showinlegend="true" horizontalalignment="right" verticalalignment="top" legendtext="candidates" datasource="{binding positionlevelrecruitmentlist}"> <visifire:dataseries.datamappings> <visifire:datamapping membername="axisxlabel" path="fullcodeandlevel"></visifire:datamapping> <visifire:datamapping membername="yvalue" path="applicantcount"></visifire:datamapping> </visifire:dataseries.datamappings> </visifire:dataseries> <visifire:dataseries renderas="column" labelenabled="true" margin="5,0,1,0" showinlegend="true" horizontalalignment="right" verticalalignment="top" legendtext="required" datasource="{binding positionlevelrecruitmentlist}"> <visifire:dataseries.datamappings> <visifire:datamapping membername="yvalue" path="requiredcount"></visifire:datamapping> </visifire:dataseries.datamappings> </visifire:dataseries> <visifire:dataseries renderas="column" labelenabled="true" margin="5,0,1,0" showinlegend="true" horizontalalignment="right" verticalalignment="top" legendtext="fulfilled" datasource="{binding positionlevelrecruitmentlist}"> <visifire:dataseries.datamappings> <visifire:datamapping membername="yvalue" path="fulfilledcount"></visifire:datamapping> </visifire:dataseries.datamappings> </visifire:dataseries> </visifire:chart.series> </visifire:chart>
try setting maxwidth="100" in legend.
Comments
Post a Comment