Hide Empty Legend for PIE Chart in Crystal Report - charts

I have a Pie chart with Group expert in my web application. Group expert is based on address and I have two data table in my crystal report Data sources.
One is for Pie Chart input and another one is just for warning message if no pie chart is being display.
All are working fine except for one case. If no record found for pie chart then it displays the empty legend as follows:
I have tried using formula by suppress but its not working.
if Count({AppComp.Type}) = 0 Then False else True

Related

SSRS Pie Chart Showing Incorrect Data

I have a Pie Chart that is showing incorrect data but I do not know how to correct it. It is showing Orders that have been shipped either Late or On Time. The problem is I have 1 order where part of it was shipped on time and the other part was late, therefore it is appearing in both groups as you can see in the image. I just want it to appear once like the first table in the image but I cannot do this in a Pie Chart as I need to group it by ActualOnTime field, but when it does that it duplicates it.
What can I do to resolve this issue?

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

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.

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'