Adding custom axis titles for Bubble Chart

How to add custom axis titles (for each group of axis values) as shown in the attached figure to a bubble chart ?
- Sen

I'm trying to do essentially the same thing with a LineChart and I think I've got part of it figured out.
I've subclassed CategoryAxis and overridden reduceLabels to return only certain labels (the "group" labels). Then I create a new axis by adding a LineSeries to the chart's <series> element with the new axis within the LineSeries. Then I have an AxisRenderer in the chart's horizontalAxisRenderers tag that refers to the new axis from within the LineSeries.
Subclassed axis:
    public class MonthCategoryAxis extends CategoryAxis
        public function MonthCategoryAxis()
            super();
        override public function reduceLabels(intervalStart:AxisLabel, intervalEnd:AxisLabel):AxisLabelSet
            var currentLabels:AxisLabelSet = this.getLabels(0); // Param is ignored by super class
            var newLabels:Array = []; // Labels to keep
            var label:AxisLabel;
            var previousLabel:AxisLabel;
            for (var i:int = 0; i < currentLabels.labels.length; i++)
                label = currentLabels.labels[i];
                if (i == 0) // Keep the first label
                    newLabels.push(label);
                else if (label.value.month != previousLabel.value.month)
                    // Only keep a label if the previous label has a different month
                    newLabels.push(label);
                previousLabel = label;
            // Return a new AxisLabelSet with just the labels we want
            var newLabelSet:AxisLabelSet = new AxisLabelSet();
            newLabelSet.labels = newLabels;
            return newLabelSet;
New series to create the subclassed axis in.
            <mx:LineSeries>
                <mx:horizontalAxis>
                    <charts:MonthCategoryAxis id="MonthAxis" labelFunction="calendarMonthAxisLabelFunction"/>
                </mx:horizontalAxis>
            </mx:LineSeries>
The AxisRenderer. canDropLabels must be "true".
            <mx:AxisRenderer axis="{MonthAxis}" canDropLabels="true" showLine="false" tickPlacement="none">
                <mx:labelRenderer>
                    <mx:Component>
                            <mx:Label width="100%">
                            <mx:Script>
                                <![CDATA[
                                override public function set data(axisLabel:Object):void
                                    this.text = outerDocument.getMonthLabel(axisLabel.value);
                                ]]>
                            </mx:Script>
                            </mx:Label>
                    </mx:Component>
                </mx:labelRenderer>
            </mx:AxisRenderer>

Similar Messages

  • How to Axis labels for Line charts in Business Graphics

    Hi
    I am planning to do the Business Graphic example using Line chart.As part of this
    i didn't clearly understand what is the perpose of Series,Points,categorys?
    if i want to set the Labels at X-axis and y axis ,then how to do that?Baiscally i want to put time related data as X-axis label(20min,30min,60 min etc).Please help.
    is there any good example to understand the concept?
    Thanks
    Prasad

    Hi Bachier
    Thanks for your repsonce.I had seen the example you suggested.but there is no answer for my question.How to set the x-Axis,Y-axis Labels.I had done example for "line chart".But i have same problem:
    Hi
    I am trying to do example on "line chart" using Business graphics in my webdynpro application.
    In the Context i created Node "A" under which i created "B".then it has  value attributes xValue,yValue.Then in View i created BG UI element >Series>point-->NumericValue(for xValue) ,NumericaValue(yValue).Now in view init() method i had initialized values to x and y. some output is coming.but i want to know how to set the X-Axis Label,y-Axis Labels.in X-Aix Label i want to mention time in hrs i.e 8.00,8.30AM,9.00AM,9.30AM etc.as part of y-axis labels i want to mention numeric values( .2,.4,.8,2.0 etc). Please tell me how to set this X-Axis,y-Axis labels.at every 30min(8.00Am,8.30AM etc) user enter quality data(i.e .2 etc) then i want to generate chart.Please help in this regard.i will give very good points
    Thanks
    Prasad

  • Adding Custom Labels Missing for Contact Numbers After Upgrading to iOS 8.0 and issue still exists on iOS 8.1

    I noticed that after upgrading to iOS 8.0 on my iPhone 5s, adding custom labels for contact numbers got removed. It still exists on iOS 8.1 as well. Is there someone who is facing a similar issue or can someone help me how to get that back. Any suggestions would be greatly appreciated.
    Thank you.

    Hi Yugendra,
    Thanks for visiting Apple Support Communities.
    I have good news. You can still choose a custom label in Contacts on iOS 8. The option should be below "Other" in the list of labels when editing a contact. This information is found in the iOS 8 user guide:
    Contacts at a glance - iPhone
    Change a label. If a field has the wrong label, such as Home instead of Work, tap Edit. Then tap the label and choose one from the list, or tap Add Custom Label to create one of your own.
    Best Regards,
    Jeremy

  • Adding custom http headers for WSRP requests

    Hello,
    I wonder whether it is possible to insert custom http headers for WSRP
    requests?
    To give more details:
    We are going to have portlets exposed via WSRP (hosted on non-weblogic
    server). We need these portlets to work on different portals including
    WebLogic Portal. And we need to have working SSO. There needed at least
    2 SSO options:
    1. Having SiteMinder protected portal. Will WebLogic pass SiteMinder
    headers further to WSRP producer?
    2. Custom SSO tokens to be passed as http headers. Is it possible to
    make weblogic to add custom http headers when calling producer?
    2a. Credential mapping shall be used to get username/password for
    backend application (accessed from producer side), and than these
    username/password shall be passed as http headers when requesting producer.
    Best regards,
    Sviatoslav Sviridov

    Hi,
    About how to use Rest API via node.js, please refer to
    http://stackoverflow.com/questions/5643321/how-to-make-remote-rest-call-inside-node-js-any-curl for more information. Hope this helps.
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • CR Enterprise - Custom y-axis labels for line chart

    Hi
    I have data with a discrete status (STATUS-1...STATUS-5) per day, like
    Feb 1: STATUS-1
    Feb 2: STATUS-2
    Feb 3: STATUS-2
    Feb 4: STATUS-1
    Feb 30: STATUS-4
    Feb 31: STATUS-1
    This series I'd like to render in a date axis line chart with the daily status ordinals (1-5) on the y-axis.
    Now I wonder how I can label the y-axis ticks with the respective STATUS text instead of the ordinal.
    Unfortunately, the option "Total (Y) Axis/Axis/AxisLabels/Display Label" is disabled due to the value's numeric nature.
    How can I manually overwrite y-axis labels or map them to custom text?
    Thanks. Jens

    HI Jens,
    Have you tried creating a formula and using that in 'Show Values' section of the chart?
    Formula:
    "STATUS-" & {Numeric_field}
    -Abhilash

  • Issue in Adding Custom Status Defnition for a resource object

    Hi,
    We have installed OIM and patch it to 9.102. We have created one custom resource object (flat file connector) for reconciliation. As part of requirement we need to define three status for this resource object - Enabled, Suspended and Disabled. As Enabled and Disabled status are available OOTB, i have added 'Suspended' status under the Status Definition in resource object. Now the issue is that if we are passing reconcile user status to either Enabled or Disabled, the status is changing fine on Linked user resource object. But if the status passed as 'Suspended' the resource account status of linked user (OIM) is not changed.
    We have mapped the resource side Status attribute to OIM_OBJECT_STATUS under process definition. I also made the entry 'Suspended' in 'Lookup.Object Object Status' lookup to see if any help, but no luck.
    The 'Suspended' status is successfully added in OST table against the object key and on manually updating the status key against the resource object it is reflecting 'Suspended' status through admin console. User-->Resource Profile
    Does anyone have any clue if the requirement is correct (adding a custom object status) and so, where i am going wrong. Thanks in advance.

    A quick doubt..If i have written down a process task and calling this on completion of 'Reconciliation Update Received' and in this process task , a adapter is attached which is updating the resource account status (ost_status) on the basis of some custom attributes. This task is working fine and updating the status. But the issue is that once this task is complete, the mapping in Process definition (loginDisabled <MetaDirectory> --> OIM_OBJECT_STATUS) overrides the status.
    Per my understanding the flow is going like this-->
    1. Reconciliation run
    2. Event Linked
    3. Reconciliation Update Received
    4. Call The custom Task --> Update the OST Status
    5. Update the OST Status per the mapping OIM_OBJECT_STATUS.
    Is there any way we can implement that the status update in (5) occurs before (4) so that my custom task status can override the (5) as per my business requirement.

  • Adding Custom Filter Options for Newsfeed Web Part

    Hi,
    In OOB feature the newsfeed web part shows filter options for Following, Everyone, Mentions, Activities and Likes. Is it possible to add custome filter options to this web part?
    Thanks in advance.

    Hi,
    It seems that there is no OOTB options which allow to add more filters in the newsfeed web part.
    But we have many methods to retrieve the social feeds and you can filter them in the way you like. To know more about how to get feeds, the following link should be a good start.
    Work with social feeds in SharePoint 2013
    http://msdn.microsoft.com/en-us/library/office/jj163237(v=office.15).aspx
    Miles LI TechNet Community Support

  • Bubble chart title

    Hi,
    i want to split the title into 2 lines for Bubble chart in obiee 11g. how can i do that.
    Thanks

    Hi Vineeth,
    its working. But i have a view selector. under that i have 2 views. one is bubble chart. another is table.
    How can i put this in between select view and chart
    Edited by: 806756 on Feb 19, 2013 10:20 PM

  • Naming the bubbles in Bubble chart of Jfreechart

    Hi,
    I am using Jfreechart to create a bubble chart. I am unable to name the bubbles but in the legend the bubble names are coming.
    Please help me to generate the bubble names with the names which are present in the legends.

    hi,
    can u plz tell me how to set the Domain Axis values and Range Axis values in bubble chart.....
    like i wanna display population for 2 countries(suppose India,China) for the year 2000 to 2005....so i need these years to be there on domain axis or on range axis.....how can i do this.......
    any type of help will be appreciated........
    thx.....

  • Adding AV/AS Rule for AVG 9

    A while back I had TAC send me instructions for adding custom AV rule for AVG 8. I seem to have misplaced those (they're not lost - I just can't find em). Can someone post the steps that I will need to add AVG 9 as a custom rule for NAC? Thanks in advance.

    OK...This what you need to manually add the rules for AVG 9
    If you just want to allow them if Avg9 is installed you can create a new registry check.
    Device Management -> Clean Access -> Clean Access Agent -> Rules -> New Check.
    Check Category: Registry Check
    Check Type: Registry Key
    Registry Key: HKLM : SOFTWARE\Avg\Avg9
    Operator: exists
    Choose your Operating Systems
    Check the box to create a rule based on the new check.
    Under your existing AV Requirement the new rule should now
    show up under Requirement-Rules.
    In order to check the AV Definitions as being current we can add :
    Check Category: File Check
    Check Type: File Date
    File Path: SYSTEM_DRIVE : \Program Files\Avg\Avg9\sc.dat
    Operator: later than
    File Date: Cam date - 5 days
    File Date Type: Modification date
    Select Your OS' and Automatically create a rule based on the check.
    Add this check to your existing AV definition requirement rules and make sure you have
    "Any Select Rule Succeeds chosen.

  • Set font of axis title, but not tic labels

    I would like to set the axis titles in my chart to bold face,
    but leave the tic labels in their regular font. I create the
    AxisRenderer in actionscript-
    var ar:AxisRenderer = new AxisRenderer();
    then I try to set the font-
    ar.setStyle("fontWeight", "bold");
    it affects the labels as well. This happens in actionscript,
    but not when I add it as an mx component. But since I need to make
    the chart dynamic, I need to use actionscript, but I don't know how
    to change the title font without affecting the tic labels.

    bump

  • How to get text lables in x axis for xcelsius bubble chart

    Hi
    How to get text values in x axis for xcelsius bubble chart
    I have data as follows
    x axis: closed/qualification/lost
    y axis: deal age
    z axis: amount(bubble size)
    Thanks

    If you are using Xcelsius 2008 SP3 you will be able to do this.

  • Axis titles don't display on cartesian chart

    I use Adobe Flex Builder 3 to create charts for use in a
    larger web application. Since moving from Flex Builder 2 to Flex
    Builder 3, the axis titles are no longer being displayed.
    In my mx:Application, I declare an mx:CartesianChart. I
    dynamically add ColumnSeries to a ColumnSet based on the contents
    of an XML file loaded using a URLRequest. I then add the ColumnSet
    as the only element of the chart.series Array. The rest of the
    chart (including the legend) displays correctly.
    The axes are explicitly defined as part of the
    mx:CartesianChart:
    <mx:CartesianChart left="{legend.width}" top="30"
    right="0" bottom="0" id="chart" dataProvider="{xmlDoc.elements()}"
    showDataTips="true" dataTipFunction="formatDataTips">
    <mx:verticalAxis>
    <mx:LinearAxis id="vAx" autoAdjust="true" title="Dollars"
    labelFunction="formatVerticalLabel"/>
    </mx:verticalAxis>
    <mx:horizontalAxis>
    <mx:CategoryAxis id="hAx" categoryField="Year"
    title="Year"/>
    </mx:horizontalAxis>
    <mx:horizontalAxisRenderers>
    <mx:AxisRenderer axis="{hAx}" labelRotation="-60"/>
    </mx:horizontalAxisRenderers>
    </mx:CartesianChart>
    Thanks in advance for your help.

    I've isolated the issue, but I'm not sure if it's a bug or if
    something I'm doing wrong. The following simplified version of my
    chart application doesn't display the axis titles:
    [code]
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Legend dataProvider="{chart}" left="0" top="25"
    id="legend"/>
    <mx:CartesianChart left="{legend.width}" top="30"
    right="0" bottom="0" id="chart">
    <mx:verticalAxis>
    <mx:LinearAxis title="Dollars"/>
    </mx:verticalAxis>
    <mx:horizontalAxis>
    <mx:CategoryAxis title="Year"/>
    </mx:horizontalAxis>
    </mx:CartesianChart>
    </mx:Application>
    [/code]
    The following version does:
    [code]
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Legend dataProvider="{chart}" left="0" top="25"
    id="legend"/>
    <mx:CartesianChart left="{0}" top="30" right="0"
    bottom="0" id="chart">
    <mx:verticalAxis>
    <mx:LinearAxis title="Dollars"/>
    </mx:verticalAxis>
    <mx:horizontalAxis>
    <mx:CategoryAxis title="Year"/>
    </mx:horizontalAxis>
    </mx:CartesianChart>
    </mx:Application>
    [/code]
    The only difference is the left definition for
    mx:CartesianChart. When it's defined in terms of the width of the
    legend, the axis titles disappear. Is there another way that I
    should be displaying my chart using the full span of the
    application?
    Thanks again for your help.

  • Obiee 10g - How to Increase the default size of Bubble chart radius axis

    Hi,
    I have an requirement of creating bubble chart in obiee 10g.
    When i was developing the bubble chart i noticed that there is no option of increasing the size of the bubble.
    When the measure value is low the bubble is not getting displayed.
    Kindly help me with any solution.
    Regards,
    Abdul

    Hi Alok_Aswal,
    In SQL Server Reporting Services 2008, the Bubble chart has several custom attributes which allow us to control the size of the bubbles. "BubbleMaxSize" and "BubbleMinSize" attributes allow us to define the size of the bubble in the chart series. The values
    set are in percent of the whole chart size. We can find those attributes in the property pane by selecting bubble series and expanding 'CustomAttributes' properties.
    And based on my research, the Marker size has a wide range, but for some reason once we get to around 8 the bubble in the legend will not grow any bigger. So in your scenario, we can set the Marker size to 8pt, then set the appropriate “BubbleMaxSize" and
    "BubbleMinSize" based on the chart size to make the size of both the bubble are the same. For example, we can also set “BubbleMaxSize" and "BubbleMinSize" to 8, then manually adjust the chart size until both the bubbles have same size.
    Beside, we can delete the original legend, and drag a tablix to the right of the chart. And then insert the corresponding data and color to tablix to let it looks like a legend. For more details information, you can refer to the link below to see Mike’s
    post:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cbf2f48e-fe40-4c1b-b82a-d40fd269f2ef/setting-custom-colors-on-a-column-stacked-bar-chart?forum=sqlreportingservices
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Chart axis titles disappearing with image capture

    I have the following code which generates a png file from a
    UIComponent (a panel with a chart in it). I have two different
    methods which are called to generate the image. One is
    automatically generated every few minutes, the other generates the
    image when a user hits a button to "save" the image. Both generate
    the chart fine, except that the automated version cuts the axis
    titles off for some reason. What is going on?

    "Cr99" <[email protected]> wrote in message
    news:gklm8k$2d7$[email protected]..
    > I've made some progress. If I add this code:
    >
    > chartPanel.addEventListener(FlexEvent.CREATION_COMPLETE,
    imgExport);
    >
    >
    > // method: imgExport (Event)
    >
    >
    > public function imgExport(e:Event):void {
    > var cp:ChartPanel = e.currentTarget as ChartPanel;
    > captureImg(cp, cp.title);
    > }
    >
    > The axis gets drawn, but only on the INITAL rendering of
    the chart
    > (obviously). The
    addEventListener(FlexEvent.UPDATE_COMPLETE, imgExport)
    > does
    > not seem to register properly because the chartPanel
    doesn't ever get
    > updated,
    > just the data in the chart element whithin the panel.
    How do I get the
    > update
    > to register as an event as well?
    Maybe you need to register for the event on the chart, not
    the panel that
    creates it.

Maybe you are looking for

  • Itunes won't open - possible virus - how can I backup before OS reinstall

    My itunes program, along with my internet connection, Outlook, and several other system programs, is not working. One day the computer just wouldn't let me open this set of programs, and since I can't go online I can't download the itunes program aga

  • IPhoto Won't Open

    I was attempting to create a new a new album in IWeb by first creating the album in IPhoto. Once I had created the album in IPhoto I tried to do a drag and drop from IPhoto to IWeb. Unfortunately the operation did not work and I wound up deleting the

  • Dropdownlist itemrenderer within datagrid

    hi just wondering if anyone has any advice or  good examples for the following, I'm finding it a little tough to find a  good example on the net i've got a datagrid, and one column with an item renderer that has a dropdown list i  want of course to b

  • UPK 3.1.5 player output - HTML file extention

    Hello, Does anyone know if it is possible to modifiy the HTML output in the Player deployment format? More specifically to change the filename suffix from HTML to HTM? Thanks, James

  • Filterable Photo Gallery

    Hello everyone, I wish to use responsive filterable photo gallery from http://www.jqueryscript.net/layout/Responsive-Filterable-jQuery-Portfolio-Gallery-Plugin-E lastic-Grid.html in my website http://bhc.edu.in/MATICS/gallery.php I followed the instr