Chart legend Name
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
Eric
Take a look at Dynamically assign series names for SVG Chart
I have not done this, but give it a try.
Mike
Similar Messages
-
Chart legend name programmatically
Hi,
How can I change programmatically the legend name of my chart?
Thanks,
ToNi.The property node used to access the string in the legend is in Plot>Plot.Name
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left... -
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 -
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 -
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 -
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... -
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 -
How to i display data of piechart with legend names?
hi, i have a pie chart where i'm showing data inside it..now,my requirement is data should be shown with legendnames like
Catgeory1 (23)
Category2 (76)
where can i do this..thanks in advance..'
luckyHi lucky,
If I understand correctly, you want to display legend name and filed value as data label in the pie chart. Suppose the Values field is Amount, Category Groups field is Year. Please refer to the following steps:
Right click the data label in the pie chart, select Series Label Properties.
Click the expression icon below “Label data:” prompt, and fill with expression below:
=Fields! Year.Value &"(" & Fields! Amount.Value & ")"
There is a screenshot for your reference:
If you have any questions, please feel free to let me know.
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support -
CR 2008 - Chart legend label issues when run on CR Server 2008
Hello all,
I have built a report in CR 2008 SP4. When I run the report locally everything is okay. In this report I have a chart which performs a count on {Command.Incident_ID}. The label for this count comes out as "Count of Incident_ID" in the legend. I then right click on this legend entry, edit the axis label and change it to something more appropriate.
When I upload this report to CR Server 2008 v0 or CR Server 2008 V1 SP3 the report does not function properly. The chart label gets produced as Count of Command.Incident_ID instead of the label I specified. I believe this is due to the CRS attaching the Command. header to the Incident_ID. It no longer matches up with what I specified during design.
Now I've gone back to older reports that I built and I can see that I did not have this issue before. I've recently upgraded to CR SP4 and Windows 7. I really feel like this is probably some option/setting on my designer side that I need to mirror on the server, however I have been unable to locate any information. Any help you can provide would be greatly appreciated!
Thank you!After some testing the issue seems to be related to having SP4 installed.
When I reverted back to SP0, or SP3 it worked fine, but under SP4 it seems to drop the table reference and thus not use the correct alias for the legend names. -
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 -
How to edit legend names in pie diagram graph
hi
i have a spelling mistake in my lagend of pie graph
now i need to edit it make correction of my legend name
could any one please tell me the way to edit my legand plz...the values from our column are from database , then how can we edit the data(values) in that columnErrr..Ohkk. There are 3 methods you can do this:
1) Correct the spelling in underlying DB table by updating the column name (check all the references) - Most Recommended
2) In case you don't want to go for 1st option, you can remove the default legend option in Pie Chart by setting it to none and ADD a new Legend View to this Chart View with correct names
3) Change the fx of that column in criteria like
case when col = 'abd' then 'abc' else col end
All above will solve your problem.... -
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
-
IPod Touch - Unable to restore!
I have a 32 GB 1st Gen iPod Touch that I bought in the restore mode, thinking I'd be able to fix it easily. Well, clearly that is not the case! I do not know the history of the ipod - if the previous owner tried to jailbreak it or what - although I a
-
Locking of Transactions for MM - FI Integration
Every month, we do the closing of accounts. For this, we have to close all GRN related transactions, so that the accounting entries are not passed. We use trxn SM01, to lock, MIRO, MIGO, & ML81N, so that user does not book any entries for that month.
-
Problem with opening recent projects
Hello all, I've been working on a project on FCP since july and I've been saving it to an external HD since then. There's been 3-4 other projects I've worked on along the way, and I've tried to keep everything organized and saved properly (I.e. I alw
-
Graduated fills in table cells
How do you make a graduated fill in tables? I seem to be able to make a graduation from left to right but not top to bottom. Here is an example of what I am trying to do...
-
Adobe reader 8 in window vista
when i open the adob reader to check for updates it doesnt check any help in this pls