none
Adding values AND percentages to the same Chart in VS 2008

    Question

  • Can you add values and percentages to the same Chart in Visual Studios 2008? I want to display a chart that has both the percentages of responses and the count of responses displayed. I found how to make it one or the other, but not both. Is there something I could add to the code that would expand that functionality?
    Tuesday, September 10, 2013 8:11 PM

Answers

  • Hi Ksb288,

    If I understand correctly, you would like to display the aggregate value along with percentages on the same pie chart. In this case, I suggest to add an expression in the Label data tab to achieve the goal. Please follow the detailed steps below:

    1.Right click pie chart and select “Show Data Label”.
    2.Right click data label and select “Series Label Properties”, and add the expression in “Label data” tab, as shown below:
    =FormatPercent(sum(Fields!SalesAmount.Value)/sum(Fields!SalesAmount.Value,"DataSet1"))+ "sum:" + cstr(Sum(Fields!SalesAmount.Value))

    Through the above steps, we can obtain a similar chart as follows:

    Regards,
    Heidi Duan

     



    Wednesday, September 11, 2013 1:55 AM