CRVS2010 beta - chart legend
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 PM
Hi 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
Similar Messages
-
CRVS2010 beta - Chart Expert - Data Tab option
Hello,
On the data tab in CR2008 and CRVS2008 there is an option at the top of the tab called Place chart.
The option let you select where in the report to place the chart based on the groups the chart has
I do not see this option in CRVS2010 on the data tab or any other tab.
Was it removed in one of the CR2008 upgrades or just removed from CRVS2010.
Thank youYou say that you see the data tab in CR2008 and CRVS2008. I take that to mean in CPR S2X and CPR 10.5(?).
As far as I am aware, the chart expert only ships with stand-alone versions of CPR. E.g.; CPR 10.5 (Crystal Reports Basic for Visual Studio 2008) does not have it, CPR S2X does. CPR 2010 being a specific build for VS 2010, I'd expect it will not have the chart expert and that it will be available on a future upgrade.
Ludek -
Crvs 2010 beta - Chart shortcut menu issues
Hello,
In a previus message (see CRVS2010 beta - Chart Options dialog box), I referenced one option on the chart shortcut menu that opens the Chart Options dialog box that was not working properly.
The other 2 other options on the same shortcut menu option open dialog boxes that have the same problem.
When you right-click on a chart, select Chart Options - -> Template (which opens the Choose a chart type dialog box. I only see one tab. In crvs2008, it had 2 tabs, Gallery and Custom) and Chart Options - -> Titles (which opens the Title dialog box) and you will see what I am referring to.
I'd like to know if all 3 of the dialog boxes that these menu options open, will be fixed when the next beta is released?
Thank you
Tracy
I added the names of the dialog boxes that need to be fixed - Edited by: training 2go on Jul 14, 2010 7:04 PMHi Don,
I understand your question, but maybe not.
The chart type doesn't seem to matter. I just opened bar, area and cross-tab chart reports and the problem is there.
Open a report that has a chart.
When I right-click on a chart on the main report window, I see a shortcut menu.
One of the options on this shortcut menu is "Chart Options".
When you hold the mouse pointer over the chart options option, I see three options - template, general and titles.
I am referring to the dialog boxes that each of the 3 options (template, general and titles) opens.
They display the programming name for the field.
For example, if you select the general option, the Chart Options dialog box opens.
Normally, in the title bar you would see "Chart Options". Instead "_ e _ Chart Option _ n _ psedoloc _ " displays in the title bar.
The same issue applies to all of the objects on the dialog box.
I think that this is an easy fix, because the program is pointing to the wrong field in the table, what I call the internal name for the object, instead of what I call the display name.
Let me know if this helps. -
Instead of displaying "Total" at the bottom of my pie chart legend I am getting the following text: "_e_Total:1_n_pseudoloc_"
The values and percentages calculate correctly, but the label is unusual.Hello,
I have the same problem with my pie chart. My report was fine before I did my update to CRVS2010 Beta 2. I was using crystal report 11.5.
My report is really simple. I have a resume chart that you can drilldown. Each drilldown show the same chart for the selected
item.
I'm using Windows 7 Professionnel 64 bit in french (canada version).
Visual Studio Version 10.0.30319.1
Framework 4.0.30319 -
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> -
Custom Formatting Of Chart Legends
I've been playing with Flex Charting, and I have lots of nice
looking graphs that I've created from database feeds. However, what
I really want to know how to do is format the chart legend better.
For example I have a pie chart that has about 50 different data
items/series and the legend is huge in either horizontal or
vertical mode it prints all the way down the page. How can I make
it two, three or more columns?Hi Justin,
I think, there is no way to do such a customization with the standard Javadoc (i.e. powered by the Standard Doclet).
After all, the job of the standard Javadoc is doing standard (general) things and I just cannot imagine any general rule (setting or option) that would embrace all kinds of possible customizations about displaying of annotations.
So, the only way in your situation would be to modify the doclet itself. You can try tweaking the standard doclet: overload some its classes or change sources (according to the license they provide). However, I just can say, that way proved to have lots of limitations.
Fortunately, I could suggest you a different rote that would allow you solving your problem in a few minutes. We have a product called "DocFlex/Javadoc":
http://www.filigris.com/products/docflex_javadoc/
This is a highly customizable Javadoc doclet. More exactly, this is a system for rapid development of professional quality doclets (with the support of both framed/single-file HTML and RTF output).
With that tool, the generation of every sort of Javadoc output is programmed in special templates (using graphic Template Designer). The product is provided with the "standard template set" that generates the HTML Java API documentation very similar to the standard Javadoc.
In fact, to solve you task, you will need to modify a subtemplate called "annotations.tpl". See on this page: http://www.filigris.com/products/docflex_javadoc/templates.php
If you are interested about all this, we could help you to modify the necessary template absolutely free. Then, you will need only to buy a full product license to have everything work without limitations and that will be all!
So, if you are interested, please let us know by sending a e-mail to the address found on this page:
http://www.filigris.com/company/contact.php
Regards,
Leonid Rudy
http://www.docflex.com -
Hi, is it possible to change the label icons of a Pie Chart legend? I have a pie chart with genre distribution % and would like to set the male and female genre icons instead of the color.
Thank youHello Pedro,
in general you can' t change the label icons in SSRS - I assume you mean with "label icons" the small colored rectangles indicating each of the sections in a pie chart. But I have a workaround for you: Simply not to use the build-in labeling mechanism
of the chart, but to create an individual textbox with the needed symbols for your purposes. In that textbox you have to set an expression for showing the needed male or female symbols as Unicode-chars. There's a text function for that, I mean something like
"=ChrW(&XXX)" is the appropriate expression. XXX has to be the character string of the Unicode-chartset, if you want e.g. the male symbol as an icon. Unfortunately, I can't post links, but it's quite easy to find via Bing or Google the needed
chars or signs in the Unicode-Table (use e.g. "Unicode table" as search string and you find a great site for retrievaling chars and symbols in the Unicode-Table).
Generally spoken, I wouldn't use pie charts at all, normally bar charts are the better choice in visualizing data - with bar charts it's easier to recognize skales than in a pie chart and you can often label bars in a direct way, so you don't need an extra
legend.
I hope I could help you, but feel free to ask me, if yo have further questions
Robert -
Chart legend too wide when using horizontal layout
I am using a flex chart with about 15 series on it. I've set
the legend direction variable to "horizontal". However since the
panel width which contains the chart is fixed, the legend sprawls
out to the right instead of going "wrapping around" nicely to stay
within the panel. As a result, you can't read the whole legend when
looking at the chart. The chart itself stays the proper width, but
the legend is too wide and can only be seen via using the scrollbar
to move horizontally. How can that be fixed?Solerous, you must create a custom legend. Here's an example
that uses a grid to lay out the individual grid items. If you have
a variable number of series, then you can probably come up with
better logic for laying out the legend, but this should help get
you going.
hth,
matt horn
flex docs
<?xml version="1.0"?>
<!-- charts/CustomLegendInActionScript.mxml -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
backgroundColor="white" creationComplete="init()">
<mx:Script><![CDATA[
import mx.containers.GridItem;
import mx.containers.GridRow;
import mx.graphics.SolidColor;
import mx.graphics.IFill;
import mx.charts.LegendItem;
import mx.charts.Legend;
import mx.collections.ArrayCollection;
[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
{Expense:"Taxes", April:2000, May:321, June:131, July:1100,
August:200, September:1400, October:42},
{Expense:"Rent", April:1000, May:95, June:313, July:600,
August:400, September:200, October:52},
{Expense:"Taxes", April:2000, May:321, June:131, July:90,
August:500, September:900, October:300},
{Expense:"Bills", April:100, May:478, June:841, July:400,
August:600, September:1100, October:150}
private function init():void {
for (var i:int = 0; i < myChart.series.length; i++) {
var li:LegendItem = new LegendItem();
li.label = myChart.series
.displayName;
var sc:SolidColor = myChart.series.getStyle("fill");
li.setStyle("fill", sc);
var gi:GridItem = new GridItem();
if (i < 3) {
// First row
gi.addChild(li);
gr1.addChild(gi);
} else if (i >= 3 && i < 6) {
// Second row
gi.addChild(li);
gr2.addChild(gi);
} else if (i >= 6) {
// Third row
gi.addChild(li);
gr3.addChild(gi);
]]></mx:Script>
<mx:Panel title="Bar Chart with Legend" width="500"
height="600">
<mx:BarChart id="myChart" dataProvider="{expenses}"
height="400" showDataTips="true">
<mx:verticalAxis>
<mx:CategoryAxis
dataProvider="{expenses}"
categoryField="Expense"
/>
</mx:verticalAxis>
<mx:series>
<mx:BarSeries xField="April" displayName="April (in
$USD)"/>
<mx:BarSeries
xField="May"
displayName="May (in $USD)"
/>
<mx:BarSeries
xField="June"
displayName="June (in $USD)"
/>
<mx:BarSeries
xField="July"
displayName="July (in $USD)"
/>
<mx:BarSeries
xField="August"
displayName="August (in $USD)"
/>
<mx:BarSeries
xField="September"
displayName="September (in $USD)"
/>
<mx:BarSeries
xField="October"
displayName="October (in $USD)"
/>
</mx:series>
</mx:BarChart>
<mx:Grid id="myGrid">
<mx:GridRow id="gr1">
</mx:GridRow>
<mx:GridRow id="gr2">
</mx:GridRow>
<mx:GridRow id="gr3">
</mx:GridRow>
</mx:Grid>
</mx:Panel>
</mx:Application> -
CRVS2010 beta - Date field from database does not display in report
Hi there - can someone please help?!
I am getting a problem where a date field from the database does not display in the report viewer (It displays on my dev machine, but not on the client machines...details given below)
I upgraded to VS 2010
I am using the CRVS2010 Beta
My development machine is Windows 7 - and so is my fellow developer's
We are using Microsoft SQL Server 2000
We run the queries within VS and then we send the data table to VS using .SetDataSource
We have a few reports which display the date on our dev machines (whether we run the EXE or from within Visual Studio)
When we roll out to the client machines (running Windows XP SP3) then everything works, except that the date does not display (on quite a few reports)
This is the only real issue I have had - a show stopper for me
The rest works well - any input will be greatly appreciated
Regards,
RidwanHi Ridwan,
After much testing I have it all working now using CRDB_adoplus.dll as a data source ( XML )
Alter your Config file to look like this:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
Then using the code below, and CR requires the Schema to be able to read the date format.
private void SetToXML_Click(object sender, EventArgs e)
CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
ISCDReportClientDocument rcd;
rcd = rptClientDoc;
string connString = "Provider=SQLOLEDB;Data Source=dwcb12003;Database=xtreme;User ID=sb;Password=password";
string sqlString = "Select * From Orders";
OleDbConnection oleConn = new OleDbConnection(connString);
OleDbDataAdapter oleAdapter = new OleDbDataAdapter(sqlString, oleConn);
//OleDbDataAdapter oleAdapter2 = new OleDbDataAdapter(sqlString2, oleConn);
DataTable dt1 = new DataTable("Orders");
oleAdapter.Fill(dt1);
System.Data.DataSet ds = new System.Data.DataSet();
// We need the schema to get the data formats
ds.WriteXml("c:
sc.xml", XmlWriteMode.WriteSchema);
//Create a new Database Table to replace the reports current table.
CrystalDecisions.ReportAppServer.DataDefModel.Table boTable = new CrystalDecisions.ReportAppServer.DataDefModel.Table();
//boMainPropertyBag: These hold the attributes of the tables ConnectionInfo object
PropertyBag boMainPropertyBag = new PropertyBag();
//boInnerPropertyBag: These hold the attributes for the QE_LogonProperties
//In the main property bag (boMainPropertyBag)
PropertyBag boInnerPropertyBag = new PropertyBag();
//Set the attributes for the boInnerPropertyBag
boInnerPropertyBag.Add("File Path ", @"C:\sc.xml");
boInnerPropertyBag.Add("Internal Connection ID", "{680eee31-a16e-4f48-8efa-8765193dccdd}");
//Set the attributes for the boMainPropertyBag
boMainPropertyBag.Add("Database DLL", "crdb_adoplus.dll");
boMainPropertyBag.Add("QE_DatabaseName", "");
boMainPropertyBag.Add("QE_DatabaseType", "");
//Add the QE_LogonProperties we set in the boInnerPropertyBag Object
boMainPropertyBag.Add("QE_LogonProperties", boInnerPropertyBag);
boMainPropertyBag.Add("QE_ServerDescription", "NewDataSet");
boMainPropertyBag.Add("QE_SQLDB", "False");
boMainPropertyBag.Add("SSO Enabled", "False");
//Create a new ConnectionInfo object
CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo boConnectionInfo =
new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
//Pass the database properties to a connection info object
boConnectionInfo.Attributes = boMainPropertyBag;
//Set the connection kind
boConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
//*EDIT* Set the User Name and Password if required.
boConnectionInfo.UserName = "";
boConnectionInfo.Password = "";
//Pass the connection information to the table
boTable.ConnectionInfo = boConnectionInfo;
//Get the Database Tables Collection for your report
CrystalDecisions.ReportAppServer.DataDefModel.Tables boTables;
boTables = rptClientDoc.DatabaseController.Database.Tables;
//For each table in the report:
// - Set the Table Name properties.
// - Set the table location in the report to use the new modified table
boTable.Name = "Orders";
boTable.QualifiedName = "Orders";
boTable.Alias = "Orders";
rptClientDoc.DatabaseController.SetTableLocation(boTables[0], boTable);
//Verify the database after adding substituting the new table.
//To ensure that the table updates properly when adding Command tables or Stored Procedures.
rptClientDoc.VerifyDatabase();
MessageBox.Show("Data Source Set", "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);
Thanks again
Don -
Hi,
Im having a problem with my flash chart legends in Apex3.0.
I have changed the name of the Series to what i want to appear in my legend - however the legend just shows "Value" for all my Series.
Does anyone else have this problem?
Cheers,
ImmanuelHello,
I need a legend like this
No of Clicks('000)
If i give l" No of Clicks('000)" as column alias, chart says Error :No chart data available.
If i give "No of Clicks('000')" or "No of Clicks(''000)" as column alias in the query, it displays the correct legend..
Would anybody tell me how to show the legend like this
No of Clicks('000)
Regards,
Archana -
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 -
SSRS Hide one data value label in chart legend
Is it possible to hide one value in the legend? I've got a stacked bar chart, but there's one value that I don't want to display in the Legend. Is it possible to hide this particular color and label in the legend?
Thanks,
ChrisHi Chris,
Yes. In Reporting Services 2005, you could add a filter to hide one value label in the chart legend. This can be done with the following instructions:
In Report Designer, open the chart properties dialog box and go to Data tab.
Double click the item in the Series groups to open the Grouping and Sorting Properties dialog box.
Switch to the Filter tab. Add a filter using the following setting:
Expression: =Fields!<FieldName>.value
Operaiton: !=
Value: =”value”
If you have any further questions, please let me know.
Thanks.
***Xiao Min Tan***Microsoft Online Community*** -
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 -
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 -
Is there a way to force a Bar Chart legend in Crystal Report 11.5 to display its objects in a particular order?
For Example, say I am reporting on the consumption of "Bananas" and "Apples" by State. The Bar Chart should display the percentage of people who eat these fruits by county (Percent Bar Chart). The "Apples" percentage always displays on top of the bar chart and the "Bananas" on the bottom. The legend for this graph also displays the "Apple" color first, then the "Banana" color. However, if the "Banana" percentage is 0% the legend displays the "Banana" color first on the legend. This creates a inconsistent report (with plenty of complaints).
I would like the "Banana" color to always display second in the legend. Hope I didn't confuse anyone and any ideas would be helpful.
Thanks in advance!Can you post an example .rpt (saved with data)?
I can throw it up in the debugger and see what's going on.
-[Dan3D|http://www.threedgraphics.com] (who quite possibly wrote the legend code many years ago).
Maybe you are looking for
-
Backup MaxDB 7.7.06.09 to Veritas Netbackup 6.5 fails
We want to backup MaxDB to Veritas Netbackup server. According documentation found about this topic the backup is configured by creating 3 files: bsi.env, initWDO.par (for backint for MaxDB) and initWDO.utl (for backint for Oracle). The contents of t
-
Anyone have experience using ALE message FIDCC2 in a high volume scenario?
Hi, We are evaluating the use of message type FIDCC2 to send complete FI documents from one SAP system (logisitics) to another SAP system (finance). I'm particularly interested in throughput performance, as this will be a high volume scenario (300K+
-
Mac Mini and the HP Photosmart All in One Scanner
When I got my Mac Mini from MacMall, I got the free HP Printer (C3180 Photosmart all in one) printer works fine, copier works fine, but I am not able to Scan. HP is no help because their chat customer service reps "are only trained on PC related issu
-
What flash player to use on iPad 2 that is similar to Adobe Flash Player? Need this to choose files for upload of assignments to my online university. I started my profile for this site using my iPad 2 and couldn't choose a picture to upload as wel
-
Export from Premiere Pro in ApplePro Res 422
Hi. I have Premiere Pro 5.5 installed on my Mac. I do also have Quicktime Pro installed. I do NOT have Final Cut Pro. I want to export my movie in Apple Pro Res 422 but Premiere doesn't offer this option. What can I do? Can I download this codec anyw