How to create a vertical line chart from fields on detail record - charts

Trying to create a vertical line chart from data in 4 separate fields per Detail record.
I know how to do it using Excel (see image), trying to figure out how to do it using Crystal Charts. Also, data is per detail record and I found that I can only insert a chart on a header or footer section.
I'm also not sure I'm using the correct verbiage as I can't seem to find an answer using google searches.
Thanks!

You can insert chart into crystalreport from insert --> chart and choose type of chart and data will show in chart, chart insert in header and footer report but will contain all data you choose, also you can insert chart into hadear and footer group if you use group.
Note: Attached picture from crystal report

You can insert a group to provide header/footer for each detail section.
Or, one of the Crystal Reports User Function Libraries listed here allows you to add special charts anywhere you wish within your report, feeding the data into the chart using formula logic.

Related

To add data table with Crystal charts

i am using Crystal 2008 and Would like to add data table just underneath attached to a Chart. This can be done very easily in Excel. Don't know how to do it in Crystal
please advise....much appreciated
The way your question is worded I'm not clear if you mean under as in "behind" or "below". It would help if you include a mockup drawing of what you're trying to accomplish.
If you mean "behind", the feature you're looking for is Section Underlay. This video gives a small demo of the feature to put a watermark image behind the report, but you can do the same thing with a chart, crosstab, or other object. The "World Sales Report" sample report has another example of this feature to put a table beside the chart.
If you mean "below", you can either just add sections and put your data fields there, or if that's not the type of table you're looking for, you may want to use a Crosstab object.

How to add a Pie Chart using another data source from main report data source

I want to add below of my report a pie chart that uses another data source from reports main data. I'm trying to add another source on my dataset but Crystal has a mechanism that linking relational fields, and if i link them rows are repeating on report and if i don't link then no data appearing on report. Any ideas?
In crystal reports, you can add subreport and one dataset with many datatable (main report data and pie chart data).
Right click on main report, insert subreport. Choose another datasource from main report. Clean all report items and add pie chart to this subreport using the datasource.
Its OK.

Crystal Reports suppress 0 in Pie Chart

Thanks in advance for any help,
I have a Crystal Report made in Crystal Reports 2011. The report does a simple select from a view and uses about 6 of the columns.
In 2 consecutive sections there is a Cross Tab and a Pie chart, both reporting on the same formula field. The formula for the field is as follows:
iif( IsNull({IROView.OVERTURNREASON})=false, {OVERTURNREASON},"")
Basically, if my value is not null, I get the value, and if it is, I get an empty string.
In the Cross Tab, under the Customize Style tab, there is a Suppress Empty Rows and Suppress Empty Columns check box. I am looking for something similar for the pie chart because even though there is no slice for the empty string, the legend has a an entry for the blank string with the value 0 (or 0%).
Thanks again,
You may want to consider updating the charting engine to use the latest version of CRChart. Three-D Graphics wrote the original component for SAP (nee BusinessObjects nee Crystal Decisions nee Seagate Software); they own the source code. The #HIDE_ZERO macro would probably do exactly what you need to have done.

JasperReports empty chart at Report Group change

I am using JasperReports with iReport to generate reports from a MySQL data source. The reports I am attempting to generate use Report Groups to organize the information. Also, I have a chart that appears at the footer of each page displaying info for the current grouping. The chart's reset type is Group, and it is placed in the column footer to achieve this. Also, a new page is forced when the report group changes.
The problem that I am having is that when the Report Group changes, (at the last page of each grouping) I am left with an empty chart on that page. On the proceeding pages, the chart resumes with valid data.
Does anyone have any tips as to how I can fix this?
A good solution would have the chart displaying the data for the group.
An okay solution would have the chart hidden at the time of a report grouping change
In iReport Designer
Right Click On the Chart
Select Chart Data
Under Dataset tab, select 'Group' for 'Reset type'
Select the group for which you want to reset the chart for 'Reset group'

How to create Excel document with proper cell alignment using Ireport?

I can able to create Excel document using Jasper Report but the problem is that fields are not properly aligned in the cells of excel sheet and all the data are populated in the plain surface without any cells.i.e) I cannot see any cells in the data populated area.Can u please give me suggestion to make proper Excel document with cell alignment.
I had this same struggle and came up with the following. At the time, I was using iReport (3.0.0) and was able to generate a good xls file. It may be easier in newer versions of iReport and/or JasperReports. Here's what I did:
I created a new report using the new report wizard and chose a tabular template. This creates a report with all of the fields in a line with no gaps between them. It is very key that fields are vertically aligned, that all the same height, and that there are no gaps between fields.
I removed all of the extra objects created (title, extra lines) except for the fields and the headers. I then collapsed all of the bands except the column header and detail bands.
On the report properties, I checked "Ignore pagination"
I changed the text color of the header fields, otherwise it ends up as white on white.
The rest of the important options can be found by selecting Options -> Export Options from the menu and then scrolling down to the "XLS Exporter" section. I attached a screen shot of the options I chose. You can experiment with the settings, but I found (through trial and error) that the options I ended up with work pretty well. These options are not stored in the report def file, they are attributes of the thing generating the report. iReport takes care of it when testing in that environment. We are using custom Java to generate the report in production and we set the attributes there.
XLS Exporter Dialog http://www.imagechicken.com/uploads/1270760205041768200.png