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

Similar Messages

  • Custom Formatted Legend

    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?

    I think with two words creating a search to find John's Smith's Grill & Pub, John & Jane Smith's Design would be really complex.
    If it is just one work then it is very simple even
    SELECT T0.Name AS 'Name' FROM  [dbo\].[OCPR\] T0 WHERE T0.Name LIKE '%[%0\]%'
    UNION ALL
    SELECT T0.CardName FROM  [dbo\].[OCRD\] T0 WHERE T0.CardName LIKE '%[%0\]%'

  • Chart Legend Formatting.

    Post Author: c93293
    CA Forum: Charts and Graphs
    Does anyone know how to remove commas in a chart legend for numeric data?

    Keynote is now version 6.1
    Selecting the text and changing attributes works as it should.

  • 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
    Bodo

    Hi 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

  • 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,
    egm

    Seems 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>

  • Saving in Excel formatting the charts. please help...

    Post Author: ranjan.sahoo
    CA Forum: Deployment
    Hi,
         while i am trying to save the charts in Excel,its showing a deviation from .rep to .xls.
    Description about Chart:- Chart is like in Y axis we have percentage like 60%,80%,100%, in X-axis we Received Week.
    The Issue- Excel is automatically making an increment of unit length like its taking upto 120% as max.
    Also Excel is automatically formatting the legend making it TOP-BOTTOM rather LINERAR as in >rep file
    I have tried with all kinds of formatting in charts but its not reflecting. If you can help, I will be very helpfull.
    Please help me.
    Thanks,
    Ranjan

    Post your question on the MS Mac forums as it's their software you're having issues with:  http://answers.microsoft.com/en-us/mac?auth=1

  • Problem: chart-legend (numbers) doesn't copy into Keynote

    I have some charts from numbers (imported xls-files) that i want to copy into a keynote-presentation.
    The chart can be pasted into the presentation, but the chart-legend never shows up.
    I've tried selecting and copying the chart and the chart-legend but that doesn't work. Copying only the chart-legend also doesn't work.
    Can somebody help me out here?
    thanks,
    jojo

    Jerrold Green1 wrote:
    For some reason, you need to Arrange > Group your Chart and Legend before Copying if you want them to stay together. Not sure why this is so, but the fix works.
    My guess is:
    when we copy paste without leaving a given program, we use a structure of the clipboard defined by the program itself. This structure gives the ability to copy paste different kinds of objects.
    For instance, if we copy a chart and its legend in Numbers and paste in a different location in a Numbers document, which may be a different one, we paste the chart and the legend.
    When we leave the source program to a enter a different program, if the proprietary clipboard format of this program is different than the source one, the clipboard's contents is "normalized" to match the destination program's requirements. When we pass from Numbers to Keynote, a clipboard containing a chart and a legend is normalized as a graphic object.
    If we try to paste in a TextEdit document formatted as a Text one we will get nothing.
    If we paste in a Textedit document formatted as RTF, we will get the chart.
    My hope is
    (a) that the iWork team build a proprietary clipboard structure common to the different components of the suite. I feel that this may be done.
    (b) that the operating system is able to transfer the proprietary clipboard components between two programs using the same. I'm not sure that this requirement is satisfied at this time.
    Yvan KOENIG (from FRANCE vendredi 26 décembre 2008 15:23:48)

  • 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>

  • How to programatically (dynamically) change the chart legend ?

    How do I add new labels/symbols to the chart legend dynamically ?
    I'm creating a scatter graph using the query
    select A,B,C from tableX group by A
    B is the y-axis, C is the x-axis. Points plotted for each grouping of A will be a different color. I know I can change the color of the point to be plotted thru the format trigger. The format trigger will change the color of the plotted points when there is a change in the grouping of A. My problem is how can I add a new label/color to the legend for each grouping of A as it is plotted ? The number of groupings of A is variable depending on what's in tableX. I need to programatically create the legend (each grouping of A will have it's own label/color) thru the format trigger as I won't know before hand how many groupings of A there will be.

    Try with Presentation variables.

  • How to pass apex item value into custom xml for chart or guage?

    Re-opening the old thread : Re: How to pass apex item value into custom xml for chart or guage?
    Which was not answered.
    Roel - Thanks. Its working - but in a semi quotes in the custom XML
    <pointers>
    <pointer value= '&P5_RUNNING_TOTAL.'
    <label enabled="true">
    <position placement_mode="ByPoint" x="50" y="15" />
    <format>{%Value}{numDecimals:1}</format>
    <background enabled="false" />
    </label>
    </pointer>
    </pointers>This question was helpful for us to resolving one recent thread : AnyChart - set Dial axis intervals dynamically?
    (Re: AnyChart - set Dial axis intervals dynamically?
    Edited by: P.Ranish on Dec 13, 2012 6:23 AM

    P.Ranish wrote:
    Is there any update for this question ???
    Edited by: P.Ranish on Dec 13, 2012 3:36 AMNo, And there won't be in the future.
    Please stop posting followup's to old threads, if you have a real problem please search the forum first and post a new question with all information
    Roel wrote:
    Try using &P5_RUNNING_TOTAL. or #P5_RUNNING_TOTAL#Just to make it clear - this will only work if page is reloaded after setting the item values dynamically via AJAX

  • Custom format code changes to general

    A chart made in Excel 2013 and published on a Sharepoint 2013 changes format
    of data labels. Format of data labels in Excel 2013 chart has a Custom format
    code (#.##0.;-#.##0.;;)  When published on a Sharepoint 2013 Custom format
    changes to General. But Numeric Format in a chart remains Numeric when published.<o:p></o:p>
    Do not have such problem when chart is published on a Sharepoint 2010.
    <o:p></o:p>

    Ron, are you using the latest version? I am using many different colors on my Entities just fine.
    I have previously seen individual entities that would not accept any color I tried to set them to - just as you explain it.
    / Marc de Oliveira

  • Date not being displayed in the custom format

    Hi ,
      I have a problem wherein i am unable to change the format of the date.
    I need the date to be in the format 'January 10,2010.' however the date is being displayed as '1/10/10'. I have tried all options for the date formatting. I specified the custom format as 'MMMM D,YYYY' as mentioned in the SAP Library. I am trying to use the std custom options like YYYY-MM-DD, the date is not being dispalyed in the custom format provided by SAP either.
    I have binded date from the context, used the Current Date field provided by SAP.  Nothing works.
    Its not working on the new form. However the old forms have the same kind of formatting and are being displayed as desired.
    Please suggest as to what the issue could be.
    Thanks,
    Soumya.

    Hi All,
    Even I'm encountering the same issue. I'm trying to control the outputted date format programmatically.Please have a look.
    data: v_int_date like sy-datum,
            v_ext_date(10).
    v_int_date = '20110201'
    write v_int_date to v_ext_date MM/DD/YYYY.
    Here I've tried to convert the date to external format using a fixed format(MM/DD/YYYY). But still it's getting outputted in the format DD/MM/YYYY only as that's the way its defined in the User Master!
    Is there any solution for this? How can I 'override' defaults in the SAP User Master?
    Thanks,
    Mahesh

  • Custom formatting text?

    I some documents with custom formatting in them, for example if a sentence was:
    This should be {red}color.
    Then the world "color" should be red and the {red} should not appear.
    Now my current way of doing this it though a JTextPane.
    I do something like this (currently dont have the code with me so it may not be 100% accurate):
    // Get our temp
    String temp = this.getText ( );
    // Get our pos
    int pos = temp.indexOf ( "{red}" );
    // Set the first half
    this.setText ( temp.substring ( 0, pos ) );
    // Set the second half
    this.setText ( this.getText ( ) + temp.substring ( pos + 6, temp.length ( ) - pos - 6 );
    styledDocument.setCharacterAttributes(pos, this.getText ( ).length ( ) - pow, styledDocument.getStyle ("Red" ), false);Is their any better ways to do this?
    Can I automatically do like a
    styledDocument.addReplace ( "{red}", styledDocument.getStyle ("Red" ) ); So that it will automatically know what to replace? Thanks for any help!

    Can I automatically do like a styledDocument.addReplace ( "{red}",
    styledDocument.getStyle ("Red" ) ); So that it will automatically know what to replace? No idea what you are asking. You can write you own method to do that if you want. But the StyledDocument can't do that for you.

  • Flash Chart Legend Problem

    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,
    Immanuel

    Hello,
    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

  • How to print the page in custom format

    Hi All,
    I've a login page like
    USER ID : Test box to enter data
    PASSWORD: Text Box to enter data
    A Button named as Print
    When i click on print button i want to print the form in custom format. when i use window.print in java script it is printing text boxes and button . but i dont want to print button and text boxes. i just want to print the user id and password entered by the user with corresponding labels.
    Can anyone suggest me how to print the page in the above format with out using the request object. coz i need to implemnt above with plain java script and html.
    Tks in Advance

    Use CSS. Check out the 'media' attribute. http://www.w3.org/TR/REC-CSS2/media.html

Maybe you are looking for