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
-Phil
found 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
Similar Messages
-
Hello
I created a svg chart with 5 series and I woul dlike to change the name of the series in the legend dynamically.
Is it possible ?
Because, based on some parameters I printed the series or not. But I would like to change the name in the legend based on the parameters selected.
Thanks in advance
EricTake a look at Dynamically assign series names for SVG Chart
I have not done this, but give it a try.
Mike -
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 -
Chart Legend, Text Change (Batch)
Hi,
I have about 40 reports all with the same charts, and the legend label uses the field labels so they look like "count of open accounts to date." While I can change the text names when I select the legend text in the Preview pane, it is only a band-aid fix because I don't want to have to manually change this text for all 40 of my reports. It'll add up to over 200 manual text edits!!
Please tell me there is a better way!!
I have CRXI
Thank You,
FrankHi Frank
Take a look here: @ Symbol in formula name when using formula for report chart data
I think this thread can help you.
Regards
Fabio -
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 -
Use comment from X-Channel data in Chart Legend
Hi,
Does anybody know how to set up a chart legend that will display the channel comment for the X-Channel? There is a standard option for selecting the Y-Channel comment and the line below also achieves this. In my case the Y-data is shared across all curves and the X-Data is independent. Thanks in advance!
Display the Y-Channel Comment:
@CC(CCN)@You're right, it doesn't work with "curve-related text", no idea, why...
But there is a way - probably not the best one - to do this.
Dim oMy2DaxisSystem, oMy2DCurve, oMyShape, oMyPosition, oMyLegendColumns, oMyCurveLegendPos
Call Report.NewLayout()
Set oMy2DaxisSystem = Report.ActiveSheet.Objects.Add(eReportObject2DAxisSystem,"My2DAxisSystem")
Set oMyPosition = oMy2DAxisSystem.Position.ByCoordinate
oMyPosition.X1 = 20
oMyPosition.X2 = 80
oMyPosition.Y1 = 20
oMyPosition.Y2 = 80
Set oMy2DCurve = oMy2DaxisSystem.Curves2D.Add(e2DShapeLine, "MyNewCurve")
Set oMyShape = oMy2DCurve.Shape
oMyShape.XChannel.Reference = "[1]/[15]"
oMyShape.YChannel.Reference = "[1]/[25]"
oMy2DaxisSystem.CurveLegend.Visible = True
oMy2DaxisSystem.CurveLegend.Settings.ShowGridLines = FALSE
Set oMyCurveLegendPos = oMy2DaxisSystem.CurveLegend.Position
oMyCurveLegendPos.SizeMode = eLegendSizeElementwise
oMyCurveLegendPos.ElementHeight = 6
oMyCurveLegendPos.ElementWidth = 35
oMy2DaxisSystem.CurveLegend.Settings.Font.Size = 5
Set oMyLegendColumns = oMy2DaxisSystem.CurveLegend.Columns
Call oMyLegendColumns.Add
oMyLegendColumns(1).Type = eLegendTextComment
oMyLegendColumns(1).RelativeWidth = 1
oMyLegendColumns(2).Type = eLegendTextCustomText
oMyLegendColumns(2).RelativeWidth = 1
oMyLegendColumns(2).Text = "@CC(CurrXChnNo)@"
Call Report.Refresh()
The code is available in Examples, I just added some minor details.
Another way (shorter, but not so universally valid) is to extend your code:
Report.ActiveSheet.Objects.Item("2DAxis2").CurveLegend.Columns.Item(1).Type = eLegendTextCustomText
Report.ActiveSheet.Objects.Item("2DAxis2").CurveLegend.Columns.Item(1).Text = "@CC(CurrXChnNo)@"
IMO, this works only if you already have the graph.
And take care about the object name ("2DAxis2"), this can vary from page to page... -
Hi all,
It's extremely annoying to have to go thru all chart legend label displays and rename them to something else other than the formula.
For example, I have a Sum of @Formula that's displaying and in order to change that, I have to go into every single chart and right click > edit label
Is there a more round about way to do this update once?
Thanks,yes that's annoying. try this if you are willing to try a workaround...
1) put a crosstab on top of the legend that contains your formula as the row.
2) while still in the crosstab expert, get rid of the gridlines, the cell padding
3) exit the crosstab expert and change the row height to match the line height of the legend
4) change the background of the crosstab so that you can't see the legend
a bit more work, but it works.
jw -
Pie Chart legend text when drill down too larger
Dear Gurus,
I have this report with Pie chart:
*)Table:
Element Group
Earnings 100
Deductions 30
When drill down (after click on Earnings/Deductions), it become detail like this:
Element Group Classification Name
Earning Regular
Earning Irregular
And the Pie chart legend show this: Earnings, Regular Earnings
->how to remove Earnings?I just want to show classification name as legend.
I use OBIEE 11.1.1.3
Any help will be appreciated
Regards
Joe
Edited by: JoeSSI on Aug 10, 2012 12:33 AM
Edited by: JoeSSI on Aug 10, 2012 12:35 AM
Edited by: JoeSSI on Aug 10, 2012 3:24 AMHi Joe,
There was a bug associated with repeated legends in 11.1.1.3 version.Can you check the below document and see if the mentioned patch helps,
Vertical Bar Charts In OBIEE 11g Display Repeated Labels In The Graph Legend [ID 1376185.1]
Regards,
Dpka -
SSRS 2008 - Chart Legend Missing Customitems property
Hi,
I'm currently in the process of converting my SSRS 2005 reports originaly designed with Dundas charts, to a SSRS 2008 report and facing an
issue with the charts legend.
Dundas Charts allows me to create custom legend items on a row, cell collection basis.
After BIDS 2008 has converted the rdl-file everthing looks fine except the custom legend that I have created
in the SSRS 2005 report. The legend items did not appear in the reports preview.
I looked thru all the legend properties and read thru Formatting the Legend on a Chart (Report Builder
and SSRS)
but still unable to locate the properties.
Anyone encounters this issue and likes to share a workaround / solution?
Thanks
BodoHi Mike,
I tried your workaround and it displays properly, but problem is with displaying the Line color. I'm using reportviewer in .Net 2008 and Line control doesn't contain any expression tab. Please help me with setting line color. Attached is RDLC in XML format.
<?xml version="1.0" encoding="utf-8"?>
<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
<DataSources>
<DataSource Name="DummyDataSource">
<rd:DataSourceID>51fc0fcb-b3fc-4dd4-9397-dfba551fc9df</rd:DataSourceID>
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString />
</ConnectionProperties>
</DataSource>
</DataSources>
<InteractiveHeight>11in</InteractiveHeight>
<rd:DrawGrid>true</rd:DrawGrid>
<InteractiveWidth>8.5in</InteractiveWidth>
<rd:SnapToGrid>true</rd:SnapToGrid>
<RightMargin>1in</RightMargin>
<LeftMargin>1in</LeftMargin>
<BottomMargin>1in</BottomMargin>
<rd:ReportID>5dd5ca48-0cc1-46e3-aa1a-c65d468d7238</rd:ReportID>
<DataSets>
<DataSet Name="Item">
<Fields>
<Field Name="Event_ID">
<DataField>Event_ID</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="Category">
<DataField>Category</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="Country">
<DataField>Country</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="OrderQtr">
<DataField>OrderQtr</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
<Field Name="Count">
<DataField>Count</DataField>
<rd:TypeName>System.String</rd:TypeName>
</Field>
</Fields>
<Query>
<DataSourceName>DummyDataSource</DataSourceName>
<CommandText>SELECT * FROM Item</CommandText>
</Query>
</DataSet>
</DataSets>
<Width>10.625in</Width>
<Body>
<ReportItems>
<List Name="list1">
<ZIndex>3</ZIndex>
<Left>2.375in</Left>
<DataSetName>Item</DataSetName>
<ReportItems>
<Matrix Name="matrix1">
<MatrixColumns>
<MatrixColumn>
<Width>2.125in</Width>
</MatrixColumn>
</MatrixColumns>
<RowGroupings>
<RowGrouping>
<Width>0.375in</Width>
<DynamicRows>
<Grouping Name="matrix1_ColumnGroup1">
<GroupExpressions>
<GroupExpression />
</GroupExpressions>
</Grouping>
<ReportItems>
<Rectangle Name="rectangle2">
<ZIndex>1</ZIndex>
<ReportItems>
<Line Name="line2">
<Top>0.1in</Top>
<Width>0.285in</Width>
<Style>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
<BorderWidth>
<Default>8pt</Default>
</BorderWidth>
</Style>
<Left>0.06in</Left>
<Height>0in</Height>
</Line>
</ReportItems>
</Rectangle>
</ReportItems>
</DynamicRows>
</RowGrouping>
</RowGroupings>
<ColumnGroupings>
<ColumnGrouping>
<Height>0.05in</Height>
<DynamicColumns>
<Grouping Name="matrix1_ColumnGroup2">
<Label>=Fields!Category.Value</Label>
<GroupExpressions>
<GroupExpression>=Fields!Category.Value</GroupExpression>
</GroupExpressions>
</Grouping>
<ReportItems>
<Textbox Name="textbox3">
<rd:DefaultName>textbox3</rd:DefaultName>
<Style>
<FontSize>9pt</FontSize>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
<ZIndex>2</ZIndex>
<CanGrow>true</CanGrow>
<Value />
</Textbox>
</ReportItems>
</DynamicColumns>
</ColumnGrouping>
</ColumnGroupings>
<Corner>
<ReportItems>
<Textbox Name="textbox2">
<rd:DefaultName>textbox2</rd:DefaultName>
<Style>
<FontSize>9pt</FontSize>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
<ZIndex>3</ZIndex>
<CanGrow>true</CanGrow>
<Value />
</Textbox>
</ReportItems>
</Corner>
<MatrixRows>
<MatrixRow>
<Height>0.19in</Height>
<MatrixCells>
<MatrixCell>
<ReportItems>
<Textbox Name="textbox5">
<rd:DefaultName>textbox5</rd:DefaultName>
<Style>
<FontSize>9pt</FontSize>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
<LineHeight>8pt</LineHeight>
</Style>
<CanGrow>true</CanGrow>
<Value>=Fields!Category.Value</Value>
</Textbox>
</ReportItems>
</MatrixCell>
</MatrixCells>
</MatrixRow>
</MatrixRows>
<Height>0.24in</Height>
</Matrix>
</ReportItems>
<Top>4.25in</Top>
<Width>2.5in</Width>
<Grouping Name="list1_Details_Group">
<GroupExpressions>
<GroupExpression>=Fields!Category.Value</GroupExpression>
</GroupExpressions>
</Grouping>
<Height>0.25in</Height>
</List>
<Chart Name="chart2">
<Legend>
<Visible>true</Visible>
<Style>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
<BorderWidth>
<Default>0.5pt</Default>
</BorderWidth>
</Style>
<Position>RightCenter</Position>
</Legend>
<CategoryAxis>
<Axis>
<Title />
<MajorGridLines>
<Style>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
</Style>
</MajorGridLines>
<MinorGridLines>
<Style>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
</Style>
</MinorGridLines>
<MajorTickMarks>Outside</MajorTickMarks>
<Min>0</Min>
<Visible>true</Visible>
</Axis>
</CategoryAxis>
<ZIndex>2</ZIndex>
<DataSetName>Item</DataSetName>
<PlotArea>
<Style>
<BackgroundColor>LightGrey</BackgroundColor>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
</Style>
</PlotArea>
<ThreeDProperties>
<Enabled>true</Enabled>
<Rotation>30</Rotation>
<Inclination>30</Inclination>
<Shading>Simple</Shading>
<WallThickness>50</WallThickness>
</ThreeDProperties>
<PointWidth>0</PointWidth>
<SeriesGroupings>
<SeriesGrouping>
<StaticSeries>
<StaticMember>
<Label>Value1</Label>
</StaticMember>
</StaticSeries>
</SeriesGrouping>
</SeriesGroupings>
<Top>0.75in</Top>
<Subtype>Plain</Subtype>
<ValueAxis>
<Axis>
<Title />
<MajorGridLines>
<ShowGridLines>true</ShowGridLines>
<Style>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
</Style>
</MajorGridLines>
<MinorGridLines>
<Style>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
</Style>
</MinorGridLines>
<MajorTickMarks>Outside</MajorTickMarks>
<Min>0</Min>
<Margin>true</Margin>
<Visible>true</Visible>
<Scalar>true</Scalar>
</Axis>
</ValueAxis>
<Type>Pie</Type>
<Width>4.375in</Width>
<CategoryGroupings>
<CategoryGrouping>
<DynamicCategories>
<Grouping Name="chart2_CategoryGroup1">
<GroupExpressions>
<GroupExpression>=Fields!Country.Value</GroupExpression>
</GroupExpressions>
</Grouping>
<Label>=Fields!Country.Value</Label>
</DynamicCategories>
</CategoryGrouping>
</CategoryGroupings>
<Palette>Default</Palette>
<ChartData>
<ChartSeries>
<DataPoints>
<DataPoint>
<DataValues>
<DataValue>
<Value>=Count(Fields!Country.Value)</Value>
</DataValue>
</DataValues>
<DataLabel>
<Value>=Count(Fields!Country.Value)*Sum(Fields!Country.Value)/100 + "%"</Value>
<Visible>true</Visible>
</DataLabel>
<Marker>
<Size>6pt</Size>
</Marker>
</DataPoint>
</DataPoints>
</ChartSeries>
</ChartData>
<Style>
<BackgroundColor>White</BackgroundColor>
</Style>
<Title>
<Caption>Open Incident by Country</Caption>
</Title>
<Height>3.125in</Height>
<Left>5.5in</Left>
</Chart>
<Chart Name="chart1">
<Legend>
<Visible>true</Visible>
<Style>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
<BorderWidth>
<Default>0.5pt</Default>
</BorderWidth>
</Style>
<Position>RightCenter</Position>
</Legend>
<CategoryAxis>
<Axis>
<Title />
<MajorGridLines>
<Style>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
</Style>
</MajorGridLines>
<MinorGridLines>
<Style>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
</Style>
</MinorGridLines>
<MajorTickMarks>Outside</MajorTickMarks>
<Min>0</Min>
<Visible>true</Visible>
</Axis>
</CategoryAxis>
<ZIndex>1</ZIndex>
<DataSetName>Item</DataSetName>
<PlotArea>
<Style>
<BackgroundColor>LightGrey</BackgroundColor>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
</Style>
</PlotArea>
<ThreeDProperties>
<Enabled>true</Enabled>
<Rotation>30</Rotation>
<Inclination>30</Inclination>
<Shading>Simple</Shading>
<WallThickness>50</WallThickness>
</ThreeDProperties>
<PointWidth>0</PointWidth>
<SeriesGroupings>
<SeriesGrouping>
<StaticSeries>
<StaticMember>
<Label>Value1</Label>
</StaticMember>
</StaticSeries>
</SeriesGrouping>
</SeriesGroupings>
<Top>0.75in</Top>
<Subtype>Plain</Subtype>
<ValueAxis>
<Axis>
<Title />
<MajorGridLines>
<ShowGridLines>true</ShowGridLines>
<Style>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
</Style>
</MajorGridLines>
<MinorGridLines>
<Style>
<BorderStyle>
<Default>Solid</Default>
</BorderStyle>
</Style>
</MinorGridLines>
<MajorTickMarks>Outside</MajorTickMarks>
<Min>0</Min>
<Margin>true</Margin>
<Visible>true</Visible>
<Scalar>true</Scalar>
</Axis>
</ValueAxis>
<Type>Pie</Type>
<Width>4.375in</Width>
<CategoryGroupings>
<CategoryGrouping>
<DynamicCategories>
<Grouping Name="chart1_CategoryGroup1">
<GroupExpressions>
<GroupExpression>=Fields!Category.Value</GroupExpression>
</GroupExpressions>
</Grouping>
<Label>=Fields!Category.Value</Label>
</DynamicCategories>
</CategoryGrouping>
</CategoryGroupings>
<Palette>Default</Palette>
<ChartData>
<ChartSeries>
<DataPoints>
<DataPoint>
<DataValues>
<DataValue>
<Value>=Count(Fields!Category.Value)</Value>
</DataValue>
</DataValues>
<DataLabel>
<Value>=Count(Fields!Category.Value)</Value>
<Visible>true</Visible>
</DataLabel>
<Marker>
<Size>6pt</Size>
</Marker>
</DataPoint>
</DataPoints>
</ChartSeries>
</ChartData>
<Style>
<BackgroundColor>White</BackgroundColor>
</Style>
<Title>
<Caption>Open Incident by Category</Caption>
</Title>
<Height>3.125in</Height>
<Left>0.25in</Left>
</Chart>
<Textbox Name="textbox1">
<rd:DefaultName>textbox1</rd:DefaultName>
<Width>5in</Width>
<Style>
<Color>SteelBlue</Color>
<FontFamily>Tahoma</FontFamily>
<FontSize>20pt</FontSize>
<FontWeight>700</FontWeight>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
<CanGrow>true</CanGrow>
<Height>0.36in</Height>
<Value>Report1</Value>
</Textbox>
</ReportItems>
<Height>5.625in</Height>
</Body>
<Language>en-US</Language>
<TopMargin>1in</TopMargin>
</Report>
Thanks,
Prem
Prem -
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 -
Remove marker from chart legend.
How do I remove a marker with no display name from a legend?
Looks like no one wanted to tackle this problem. i guess no one suffered from this?
in any case, i got a good tip on how to customize the XML in the flash chart, so that the marker doesn't show:
a normal entry for the line chart section of the XML would look somnething like this:
<line_chart left_space="5" right_space="5">
<block_names enabled="no" />
</line_chart>
so, to remove the marker, set the dots radius in the location as follows, to 1
<line_chart left_space="5" right_space="5">
<block_names enabled="no" /><dots radius="1"/>
</line_chart>
worked like a charm! thanks Joel... -
Rep-1401: formula name : Fatal Pl/SQL error occured
Hi,
I am using report builder 6.0 and recently came across a error while running the report. Rep-1401:<formula name> : Fatal Pl/SQL error occured.
I created a formula column in the report. In that i have three local variable.
f_val number := 0;
s_val number := 0;
t_val number := 0;
t_val := f_val/s_val ; --> this gives the above fatal error.
t_val := (f_val + 1)/s_val; --> this gives the above fatal error
t_val := f_val/(s_val + 1); ---> no error
if i change the value of s_val
s_val := 1;
t_val := f_val/(s_val - 1) ; ----> this gives the above fatal error.
Can anyone help me to solve this problem or is it report builder bug.
Please help me, as i desperately need help.
ThanksThanks for ur reply.
I used nvl too, but the same error occurred.
For the information in my question I by mistake typed
t_val := (f_val + 1)/s_val; --> this gives the above fatal error.
but when the value of f_val = zero and s_val is zero why it gives fatal error when i divide, i used nvl on both the variable while dividing but still got the same error.
but if s_val is greater than zero then no error occurs.
please help me, I feel it is a bug. -
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 -
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
Maybe you are looking for
-
Resource bundle not found in adapter ear file
Hi, I have an ear file which contains a JCA adapter and a resource bundle properties file in a jar file. THis jar file is referenced by the rar file. After deploying it, the server generates an resource bundle
-
I can't get iphoto to talk to itunes or my iphone
When I used my pc with my iphone i plugged it in and itunes popped up on my screen then another screen asked if I wanted to upload any new photos it found...easy. Now I have a mac it , annoyingly, takes some photos not all and has only ever offered t
-
Batch level settings conversion from plant-to-plant to material-level
If someone has worked on conversion of Batch level settings within SAP from plant-to-plant to material-level batch management, please let me know what are the challenges involved in doing this. Thanks.
-
How to capture Purchase order text from MM02
Hi Friends , i have a requirement like i have to capture the purchase order text from MM02 from one program. Pls give helpful code . Thanks & Regards Jagadeeshwar.Bachu
-
I have a big problem. Every time i lock on for example Facebook, the picture is big in 2 secundes and the it's gets small. Please help me. <Email Edited by Host>