Chart Legend Edits not holding - CR XI R2
We are making a report with multiple sub reports. Many of the sub reports are charts (Pie, stacked bar & line). The default legend labels are "Sum of [table or query name].[field name]." When we preview, then edit the legend labels to something more user friendly and save, the edits don't stick. As long as the report is open it looks OK, as soon as the report is closed and reopened it reverts back to the default legend label.
What can be done to correct this behavior so the legend labels once edited will hold the value assigned?
FYI
The main report is simply a shell to hold the sub reports with conditionals for each section/sub report to allow for that sub report to be shown or not. There are no links between the sub reports or the sub reports and the main report. There are approximately 100 sub reports and about 1/3 of them are charts.
Hi Steve,
Preferably the solution would be to edit the Legend from the Design window.
The other workaround is just delete the auto generated legend and manually creates legends.
The charts used in Group Headers uses the summaries, which are evaluated while previewing the report and are referred to as u201CWhileprintingrecordsu201D stage and happens in Pass #2. Hence, the modifications that are done to the chart labels are not retained when you preview the report after closing the report. When you save the data with report, the modification are retained because they are not evaluated again and uses the existing data. You can observe this by closing the preview and then if you preview it again, you will not get the modified axis label as they are evaluated freshly.
In case of charts which are placed in Report Header, these are evaluated in Pass #1.
For more information on this, refer the document cr9_evaluationtimes.pdf
OR search for multi-pass reporting in Crystal Reports Online Help.
To create manual legends, follow the below steps:
Step 1: Open the report.
Step 2: Select u2018Boxu2019 from Insert menu and draw a small box near Chart
Step 3: Select u2018Text Objectu2019 from Insert menu and insert it near the small box inserted in step 2 and enter the required label text in it.
Step3: Right click on the box and select u2018Format Boxu2019 option, check u2018Fillu2019 checkbox and select the required color.
Step 4: Repeat step 2,3 to have mores manual legend labels.
Step 5: Preview the report.
Hope the above helps.
Regards,
Alpana
Similar Messages
-
IWork Numbers chart legend does not appear
Anyone have any idea what I'm doing wrong? I've made a chart from a table that has headers, checked the boxes to show the title and the legend and the chart title appears but the legend is not there. It doesn't matter if I resize the table, switch between normal and print views, check and uncheck legend, make sure all text is black, ...
I don't know why it doesn't appear or is invisible.
I'd appreciate any help you can give.
Thanks!
JillJerry, I hadn't moved the chart. I've recreated one and the legend just never shows up. I've tried resizing the charts, moving the charts apart and away from the tables with data, resizing the chart area, selecting all text and making the color black, reducing the page size to 50% to see if the legends were lurking somewhere unexpected, and I can't find the legends or make them visible.
Correct that: I just went back to the spreadsheet after reducing it to 50% and started editing a table and the legend for one chart (not connected to the table) appeared. It's still missing for another chart created from the same data set and two other charts on the same page.
I just tried creating a new chart in a new page and there's no legend. The default is set up not to have a legend but when I click "Show legend", it doesn't appear. I'm flummoxed. -
SSRS 2008 Chart legend colours not matching series colour.
Hi,
I believe this issue has been raised before. In SSRS 2005 & 2008 R2 though I am yet to find a solution other than a lengthy (messy) workaround.
I have a chart based on the following data:
Data field - Count(ChangeID)
Category - Change_Categorisation (ie. Maintenance, new hardware etc)
Series - Change_Timing (Emergency, expedited, normal etc)
So i am using a stacked column chart to show the category along the X axis and stack the number of changes by their timing.
In the Series colour setting i am using the expression:
=iif(Fields!Change_Timing.Value="Emergency","Red",iif(Fields!Change_Timing.Value="Expedited","Orange","SteelBlue"))
I have also tried
=Switch(Fields!Change_Timing.Value="Emergency","Red",Fields!Change_Timing.Value="Expedited","Orange",Fields!Change_Timing.Value="Normal","SteelBlue")
In all cases the legend only seems to refer to the first column in the chart to pick up colours.
For example.
The first column for December is Maintenance changes. There are 2 emergency & 1 normal. the only expedited change is in another column (new hardware).
So the legend shows Emergency as RED, Normal as SteelBlue and Expedited as Steelblue.
no matter what I do the legend only picks up the colours from the first category. so if the fist category only has 1 timing (eg- Normal). Every item in the legend has the Normal colour (Steelblue)
Surely there is a fix for this that doesnt involve creating a table to the side of the graph which seems like a really basic way to deal with this issue. I may as well go back to the dark ages and use Excel for my reports or bloody draw them on paper.
:) calming down now. Thanks for any input on this.Hi,
I have reproduced the issue you posted as the following picture shows. The color of series group “AAA” in the legend is not as the same as the color as the third column.
Based on my testing, it occurs when the chart meets the following conditions:
1.
Use decision function to specify the Series colors.
2.
The data value of the chart using the aggregate
Count.
3.
One series group is not contained in the first category column.
It is my pleasure to help you reflect the issue to the proper department, and you can also submit it at
https://connect.microsoft.com/SQLServer/ to get an official confirmation.
If the issue is urgent to your business, it is recommended that you contact Microsoft Customer Support Services (CSS) via telephone so that a dedicated Support Professional can
assist you in a more efficient manner. Please be advised that contacting phone support will be a charged call. However, it will be free if this is a product issue.
To obtain the phone numbers for specific technology request please take a look at the web site listed below.
http://support.microsoft.com/default.aspx?scid=fh;EN-US;PHONENUMBERS
If you are outside the US please see
http://support.microsoft.com for regional support phone numbers.
Regards,
Tony Chain
Tony Chain [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
Legend does not display with Line Chart
I have a query that I wrote with Bex Query Designer v3.5.11 for a BW 3.5 system. When I click Graphical Display tab in the query results, "Column Chart" shows a legend, showing which colors mean what. However, when I switch to a different type of chart, such as Line Chart, Legend does not appear. Anyone know how to make this appear? without the legend, the chart isn't very useful.
You can create a Web Template, Drag a Chart.
1) Assign a query to the chart
2) Right click over the Chart and select Edit Chart
3) Select Chart Designer.
4) Look for "Series" in the Overview Window
5) Expand the Series.
6) Activate the checkbox "Show Labels" on all the
series that you want to have values.
Regards
Armando Flores -
Chart legend fails to print correctly
When I print the front panel of my vi, the text in the chart legend is not visible on the printed document. I have tried changing the font and style of the text in the legend, but that usually causes the program to crash. I am using Labview 8.5.1 and Windows XP. Is there a way to get the entire front panel to print correctly?
Yes, it would be very helpful if you could upload a simple VI that one can use to reproduce the issue.
What type of chart is this happening with?
Kameralina
Ask NI (ni.com/ask)
Search The KnowledgeBase
NI Developer Zone
Measure It. Fix It. ni.com/greenengineering/
NI Vision ni.com/vision/ -
Xcelsius - Embedded 'Jpg' logo not visible, Pie chart Legends not visible
Hi,
I am new to xcelsius. could you please help.
I have two issues.
1. I incorporated Logo (JPG FILE) and selected options Embed file, resize image to component, but image is not visible when I preview. Why? What needs to be done to make logo visible in preview(swf file). I did not export yet to Infoview though.
2. Legend values are cropped. I have 35 legends that are to be listed for pie chart. I can see only 31 and remaining four not visible (two from beginning, 2 at the end). I reduced font to lowest visible value i.e. 8 and increased height max possible that looks good . How to make them visible? or make them to fit to chart. Is there any option? Legend values are towards right of chart.
Please help.
BR, Nanda KishoreHi,
Are you using Image Component to insert your JPEG, if not try that. It will work as expected.
As for your pie chart legends, it will work as long as your Pie Chart is large enough to fit all regions onto the screen.
Try a simple test just to prove that concept.
- Create 2 columns in Excel
- Make Column A your Region Column. Insert up to 35 records
- Make Column B you Data column. Also insert up to 35 records.
- Now map your data into the Pie Chart and make sure you reduce the fonts of the region to "8" (Smallest it can go)
- Preview it.
Ken -
Hi All,
I have created a chart ( line chart ) that shows trends. The egend shows up in alphabetical order which is fine but it does not match with the order of lines in chart which is confusing. Can someone please help me if there is any workaround to aligh legend value order with lines in chart.HI,
Please try the below this worked for me:
Right click on Chart and Select u201CChart Expertu201D -> u201CDatau201D tab.
Select the field from u201COn Change Of Fieldu201D
Then u201COrderu201D button will enable.
Click on the u201COrderu201C Button , it will opens u201CChart Sort Orderu201D window.
From the Drop down box select any one of the Sort Order.
It will reflect on your chart legends.
Also you can follow the below Forum posting:
http://forums.sdn.sap.com/thread.jspa?messageID=11036283#11036283
Cheers,
Kiran
Edited by: Kiran Suravajhala on Feb 24, 2012 3:41 PM -
Chart legend shows database field instead of value
Hi,
I would like to understand the behavior of the charts legend, which sometimes display the field values as requested, but sometimes display the database field name starting with a @.
We develop Crystal Reports and then generate them via an application. We have many releases of our application and therefore we get to work with Crystal versions 10, XI, XIr2 and 2008.
In all cases, the legend display is correct when in the Crystal Reports Designer preview mode. However when generated through our application (using ADO.NET), depending on the Crystal runtime version (apparently) the result varies. Editing the legend label in preview mode doesn't resolve the issue.
Is this behavior related to :
- Crystal Reports runtime (it appears to happen only with Crystal Reports runtimes XIr2 and 2008 in our case) ?
- Using formula fields in the chart instead of database fields directly ?
- Evaluation time (our charts are in Report Header and/or Group Header) ?
- any other idea ?
Thank you very much
AnthonyWe have been able to detect that the Language Regional Settings of Windows XP Pro has a direct effect on our charts legend display.
We noticed that when the Regional Settings were set to English, the report would generate correctly and chart legends would display values, and not database fields names. However, when the regional settings are set to another language (tried French, Dutch, Spanish and German) the problem occurs.
Using Process Monitor we have spotted that when in Regional Settings other than English it was still the English dll that were called (crdb_adoplus_res_en.dll)...
The problem occurs with Crystal runtimes XIr2 and 2008 only. We use Crystal Reports in an application, using ADO.NET connector, and we use the Crystal runtime to generate reports.
Is this a bug or is there a workaround to make sure the correct dll are called according to regional settings ?
Thank you for your kind assistance.
Best regards,
Anthony -
Financial Reporting Chart Legend
Hi everyone,
I want to create some chart in Financial Reporting Studio. I was wondering if have any idea of how to present the legend of a chart in Financial Reporting in a line instead of a column that it is the default.
Thank you in advanceHi,
Thank you for the reply.
However, my goal is to change the layout of the legend and not the placement of the legend.
In other words, my goal is to place the members of the legend in one line under the chart, the one member should be next to the other and not under the other as it is by default.
Example:
Default legend:
Net Interest Income
Revenue
Expenses
My goal:
Net Interest Income Revenue Expenses
Thank you in advance
Regards
Edited by: user19831002 on 8 Μαρ 2010 6:36 πμ -
Hello,
I created a pie chart with a legend. Usually, when the legend has percents, the last row on the legend has the word "Total" and a percent. The legend has what looks like a field name with underscores.
I right-clicked on the chart and selected chart options - - > general.
Everything on the dialog box has something like "_e_[field name]".
on the chart options submenu, the template and titles options dialog boxes also have the same issue.
Is there some option that I need to change for the dialog box and the title field on the legend to change or is this a bug in the beta version?
I searched this forum for a solution but did not find anything.
Any help would be greatly appreciated.
Thank you.
Edited by: training 2go on Jun 15, 2010 3:31 PMHi Ludek,
I am happy to hear that the chart legend is scheduled to be fixed.
This one was a little scary, because it worked in the prior version of crvs. At first, I thought that there was something wrong with my beta 1 installation.
I didn't realize that the chart component was 3rd party.
thank you
Tracy -
Formula names in chart legends
Dear experts,
I use a chart with formulas. Now the names of the formulas are displayed in the chart legend as "@formulaname". I see no way to change this. Even if I rename the formula, the "@" would remain.
F1-Help says "Label aliasing and legend entry aliasing on charts is not supported by this version of Crystal Reports." (SAP Crystal Reports for Enterprise)
Do I realy have to paint my own legend?
thank you
-Philfound something interesting on idea's place for next version of CR
"The current workaround is to use a second chart that is modified in such a way that the legend of the second chart fits what you want to have as a legend for the first chart."
(Coy Yonce, https://cw.sdn.sap.com/cw/ideas/1489)
-Phil
Edited by: Philipp Vavron on Dec 21, 2011 7:45 AM -
Chart legends, only one showing on stripchart
1. I selected 4 legends on my stripchart, but see only "Trace 1." No other legends are visible. How to get them visible?
2. How to change the text of each legend? I tried the following before and after the PlotStripChart statement but don't see the INK#X texts, just a single "Trace 1" legend.
SetPlotAttribute (g_hmainPanel, SS_PANEL_STRIPCHART, 0, ATTR_PLOT_LG_TEXT, "INK#1");
SetPlotAttribute (g_hmainPanel, SS_PANEL_STRIPCHART, 1, ATTR_PLOT_LG_TEXT, "INK#2");
SetPlotAttribute (g_hmainPanel, SS_PANEL_STRIPCHART, 2, ATTR_PLOT_LG_TEXT, "INK#3");
SetPlotAttribute (g_hmainPanel, SS_PANEL_STRIPCHART, 3, ATTR_PLOT_LG_TEXT, "INK#4");
I do get all four traces showing on the stripchart.
Any ideas?
Thanks,
John
Solved!
Go to Solution.Hi QuerulousJohn
In order to get the various elements showing in your legend, you can select the .uir, double click your strip chart to edit its attributes. Select Traces, and then if you notice you can select the number of traces as well as which one you are looking at. To get each of the four showing on your legend you need to toggle "Trace on Legend" in the bottom left corner for each of the ones you want to show.
For setting the text of each item in your legend you can actually use SetTraceAttributeEx (panelHandle, PANEL_CHART, 1, ATTR_TRACE_LG_TEXT, "text");
Where the parameters are the panel, the chart/control ID, which trace you are referencing, the attribute, and the value.
Hopefully that should get things working for you, definitely follow up if it is not the solution to your issue.
Have a great day!
James W.
Applications Engineer
National Instruments -
Chart Legend: Worked in Beta, No longer working in Prod
Hi everybody,
The legend attached to the LineChart is no longer displaying the proper color. That is, the line, in the linechart is red (as requested) but the "legend" is black. It is supposed to be a red square and the word "Jobs" but I get a black square (as it is not picking the fact that it should be red).
<s:SolidColorStroke id="s3" color="red" />
<mx:Legend dataProvider="{myChart}" />
<mx:LineChart id="myChart"
x="10" y="40" width="600" height="400"
dataProvider="{platformsData}"
showDataTips="true" >
<mx:series>
<mx:LineSeries yField="id" displayName="Jobs" lineStroke="{s3}"/>
</mx:series>
</mx:LineChart>
This worked in Beta but no longer works in Production. Is this a bug or I need to make coding changes to accommodate to new Production ways of dealing with this?
Regards,
egmSeems like a bug to me. If you remove lineStroke="{s3}", the chart legend loads fine.
Might have something to do with fill color perhaps?
In any case, the fills documentation says:
"If you specify the fills property and you want to have a Legend control, you must manually create a Legend control and add LegendItems to it."
Perhaps the entry for lineStroke should say the same.
In the mean time you could use the defaults, or a custom Legend, like this (place into an AIR 2 project if you try running it):
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="1059" height="722">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
[Bindable]
public var platformsData:Array = [{id:1, jobs:'Test1'},{id:4, jobs:'Test2'},{id:6, jobs:'Test3'},{id:9, jobs:'Test4'}];
]]>
</fx:Script>
<fx:Declarations>
<s:SolidColorStroke id="s3" color="0xFF0000" weight="2" alpha=".8"/>
</fx:Declarations>
<mx:Legend>
<mx:LegendItem label="Jobs" fontWeight="bold">
<mx:fill>
<mx:SolidColor color="0xFF0000"/>
</mx:fill>
<mx:stroke>
<mx:SolidColorStroke color="0xFF0000" weight="2"/>
</mx:stroke>
</mx:LegendItem>
</mx:Legend>
<mx:LineChart id="myChart" x="53" y="124" width="600" height="400" dataProvider="{platformsData}" showDataTips="true">
<mx:series>
<mx:LineSeries yField="id" displayName="Jobs" lineStroke="{s3}"/>
</mx:series>
</mx:LineChart>
</s:WindowedApplication> -
Pie chart legend showing digit "1" when we set "ignore blank cells"property
All,
We have pie chart in Xcelsius 2008 that shows the data with legend value and we have also set the ignore blank cells property to ignore the blank value from column. but once we set this property, it displays the digit "1" in the legend when there is no data.
we are expecting that nothing should be displayed in pie chart legend when there is no data for the pie chart.
Thanks,
Sourabhhi Sourabh,
I could replicate your scenario.
Workaround is to create a duplicate of this chart. Go to properties of this new chart.
Go to Appearance ->
Uncheck
- Legend
- Mouse-over values
- Data Labels
for this chart.
Write a logic in excel using 'IF' to verify if your data is empty.
Use 'Dynamic Visibility' feature to display this chart only when your data is empty.
Display your original chart if your data is not empty.
Regards,
Vamsee -
Reporting Services Chart Legend Label
I am creating a chart from analysis services cube data
data is like this
District Year Value
A 2001 10
B 2002 29
(null) 2003 19
The charts are creating fine but the legends are not showing fine. In series group i have also tried to use an expression to fix the null label.
For null value the label is created as "Series 1". I don't want this to happen. for null value i want my chart legend to show as "State"
Any help will be appriciated
RegardsHi,
You can use expression to achieve that. In series group, set the group on expression to be:
=iif(Fields!<District>.Value is nothing, “State”, Fields!<District>.Value)
Also, set the label expression to be:
=iif(Fields!<District>.Value is nothing, “State”, Fields!<District>.Value)
Hope this helps.
Raymond
Maybe you are looking for
-
Poor Datagram Test results on Windows 2008 r2
Hi, I am seeing poor throughput using the default datagram test between two of our new production machine, ~18MB/s. Both machines are dual xeon cpu quad core, 48gb with gigE network running Win 2008R2 enterprise. Both links are set to auto and are sh
-
When writing WORD documents on a PC, I am a frequent user of mathematical symbols: § (alt 21), ½ (alt 171), α (alt 224), ß (alt 225), π (alt 227), Σ (alt 228), σ (alt 229), µ (alt 230), τ (alt 231), Θ (alt 233), Ω (alt 234), δ (alt 235), φ (alt 237)
-
Hi, I am forigner student studying here in Philippines... I want to buy an Apple Mac book Pro on installment basis.. I ve no credit cards i can arrange for cash baisi every month.. Is ther eany solution??
-
RFC_ERROR_COMMUNICATION: Connect to message server failed
Hi, I think this is the most common error that one can face and have seen quite a few threads in the forum. Still, i couldn't resolve my problem. I am getting the following error when i tried to connect to SAP using SAP JCO connector with load balanc
-
How do I update from 10.6.3 to 10.6.8?
Trying to update my old laptop to 10.6.8 so I can sync new ipods & ipads... Purchased 10.6 disk from Apple website, but it was version 10.6.3 - how do I update to 10.6.8 - that download update wants 10.6.7 before it will install... so on