Search code examples
vb.netcrystal-reportspie-chart

How to make pie chart in crystal reports from one record?


I am using crystal reports with vb.net. I have a datatable with columns (total,rejected,accepted).The data changes according to a query. by the way the table always has one record only.

total rejected accepted 60220.196 38107.94 22112.256

I want to put a pie chart in the report. the size of the chart is the total. the slices are (rejected, accepted).

in chart expert, I didn't know how to set the data to show the desired chart.

enter image description here


Solution

  • Change On change of to For all records, then choos your value fields:

    enter image description here