Wednesday, May 9, 2012

Add Chart in Crystal Reports. Tutorial part - 3

Chart is the most important and visible part of the reporting tool. Crystal has very powerful feature to add chart in report. Let’s see how to add chart in CR. Here also we will see only designing of the chart for other thing please refers Part-1.
Here we will show customer wise product ordered quantity in chart. X portion will display Customer name and Y portion will display customers total ordered quantity.
First add charts to the report design.

Right click on the .rpt file and select InsertàChart refer figure 22

Figure 22
Once you add chart to the report it will not show chat on the report file but with mouse pointer you can see one blank rectangle is moving. So just click on the Report header it will open popup for chart style and other options. Refer figure 23

Figure 23
Now from type tab select type of the charts like bar chart, line chart, part chart etc form the left side. Select sub type from the right pane like side by side chart, percentage bar chart etc I am not going to the detail of it. I am leaving it for you to practice work.
And also select vertical or horizontal radio button from the below section if you want to change the chart style vertically or horizontally. Check Use depth effect check box if you need shadow effect on the graph. Refer figure 23


Figure 24

As per figure 24 move to the next tab data there are three boxes, available fields, on change of and show values. So move Customer Name from available fields to on changes of box, and move Product Quantity filed to the show value box and click ok.

Now you can see chart is added to the report header section as per figure 25

Figure 25

Now just save the report and run it you can see a Report as a chart on the screen.


No comments:

Post a Comment