Chart Labels In Apex

So I'm trying to create a chart that groups an aggregate function by the primary key. On the label, I cannot figure out how to query a lable that shows the primary key and the name of the customer that is located in a different table. I'm learning how to develop in Apex so I'm using the sample database right now. The following query adds up the order total by customer but I want the label to not just say the primary key (customer_ID) but also the customer last name (Cust_last_name) located in the demo_customers table. Here is the query:
select null link, CUSTOMER_ID label, SUM(ORDER_TOTAL) value1
from "LEARNING"."DEMO_ORDERS"
group by CUSTOMER_ID
Also I built this query with the query builder. Can someone explain the purpose of the "Null Link" in the select clause? And how can I get the percentages to show in a pie chart?
Edited by: 1001737 on Apr 22, 2013 2:23 PM

Hi, welcome to the forum. Please access your Control Panel and update your handle to something a bit more personal than 1001737.
When you said:
I want the label to not just say the primary key (customer_ID) but also the customer last name (Cust_last_name) located in the demo_customers table You were half way there, you just need to join your current query to the demo_customers table to retrieve the customers last name and use that as the label on your chart.
Try this version of the query in your chart series; I find that a pie chart is best for this purpose:
select
   null link,
   cust_last_name label,
   round(sum(order_total/total.tot),
   2) value  -- determine percentage of all orders 
from
   demo_orders,
   demo_customers,
   (select
      sum(order_total)tot
   from
      demo_orders) total -- sum all orders 
where
   demo_orders.customer_id = demo_customers.customer_id 
group by
   cust_last_nameYou asked
Can someone explain the purpose of the "Null Link" in the select clause?Placing NULL here states that you are choosing not to allow the action of a link when one of the chart labels is clicked. See this site for some excellent charting examples and further explanation:
[url [http://apex.oracle.com/pls/apex/f?p=36648]Sample Charts, Maps, Gantts and Trees
And how can I get the percentages to show in a pie chart?Percentages need to be calculated; to add the *%* to the label, set the Postfix within the Display Settings of Chart Attributes.
Jeff

Similar Messages

  • APEX Flash Chart labels not displaying

    Hi there
    I am trying to create a 2D Stacked Column Flash chart, it is month based and for each month I have 3 Columns
    So the query for the series returns a result set like so..
    'Jan-11_Col1',10
    'Jan-11_Col2',20
    'Jan-11_Col3',30
    'Feb-11_Col1',10
    'Feb-11_Col2',20
    'Feb-11_Col3',45
    'Dec-11_Col1',20
    'Dec-11_Col2',80
    'Dec-11_Col3',100
    I want to display a chart where the first column of the result set is my x-axis and the second column is my y-axis. I have have created the chart but I find I don't get a label for every columm on my x-axis, I only get one for every third column, and I can't see a way of doing it, can anybody tell me how?
    thanks... Anil
    ps I am using APEX 4

    Hi Anil,
    I have seen similar behaviors in 2D Column Charts. What I have found is that most often, for me, the issue has been that the chart is not wide enough. This is not specifically an APEX issue but rather a Flash issue. When the chart exceeds the dimensions that you specify for the chart, the charting engine must squish some part of the chart. Most often, the labels are what get removed, in my experience.
    There are options to investigate this. You can make the chart wider in APEX and see if the problem goes away. You could rotate your X-Axis text by 45 degrees or so to see if they all appear. I have also seen the labels appear when you use your browser to zoom feature. This is a Flash behavior as well. If you zoom your browser to 200%, you may see more of your labels.
    Finally, it would appear from your sample data set, that you may not be getting stacked column. Is that the case? If you are getting a single column for each record in your data set, then you probably have 36 columns on your chart which is a lot. You will need to make the chart very wide in APEX and possibly rotate the labels.
    If you need help with anything else, just ask.
    Austin

  • Flash Chart Labels Overlap

    Hello,
    I have created the 3D Pie Flash Chart in APEX 3.2. The labels overlap each other where the pie slice is small. Is there a way for me to fix this issue?
    Regards,
    Kelly

    Hi Anil,
    I have seen similar behaviors in 2D Column Charts. What I have found is that most often, for me, the issue has been that the chart is not wide enough. This is not specifically an APEX issue but rather a Flash issue. When the chart exceeds the dimensions that you specify for the chart, the charting engine must squish some part of the chart. Most often, the labels are what get removed, in my experience.
    There are options to investigate this. You can make the chart wider in APEX and see if the problem goes away. You could rotate your X-Axis text by 45 degrees or so to see if they all appear. I have also seen the labels appear when you use your browser to zoom feature. This is a Flash behavior as well. If you zoom your browser to 200%, you may see more of your labels.
    Finally, it would appear from your sample data set, that you may not be getting stacked column. Is that the case? If you are getting a single column for each record in your data set, then you probably have 36 columns on your chart which is a lot. You will need to make the chart very wide in APEX and possibly rotate the labels.
    If you need help with anything else, just ask.
    Austin

  • Integrate Oracle Chart Builder into APEX

    I'm lost with the current limitations of APEX charts. Does any one have any idea on how to integrate Oracle Chart Builder with APEX.
    Thanks
    Amar

    Hi Jes,
    What I want to do is generate a chart dynamically. Ok, let me explain a bit more.
    I have a page which has a field say category. Now based on this category a report is generated (on another page say page2) when user clicks sumbit. The sql query which generates the report changes with the categories selected i.e. there is variation in the where clause or the base table.
    Now on this report I want to plot a graph (in the same page2). Is it possible to dynamically change the chart query also like the report query ?
    I was also thinking if it was possible to get the data directly from the report generated something like
    SELECT NULL LINK,
    #ENAME# LABEL,
    #SAL# VALUE
    FROM DUAL
    ORDER BY #ENAME#
    Thanks
    Amar

  • Format % in chart label when Data Label Option is 'Show Series and % value'

    I am using:
    OracleBI Discoverer 10g (10.1.2.2)
    Oracle Business Intelligence Discoverer Plus 10g (10.1.2.54.25)
    I have a report that returns 2 columns 'Repair Status' and 'Count' The graph is a pie chart and I have selected the Data Label Option as 'Series Label and % value'. The percents displayed in the label have no consistent format. Sometimes 2 decimal places, sometimes 4 decimal places. I want the chart label to consistently display the % in the chart label with no decimal, i.e. 96%. How can I accomplish this?

    Hi,
    Where you selected 'Select Label and % Value', there is a button at the bottom, Format Data Labels. In there, there is a Number tab where you can play around by selecting Currency, Percent, etc. Have you tried this?
    Cheers.
    Mahesh

  • Chart Labels displays correctly in Visual Studio Preview but shows incorrectly in Report Manager after deployment

    Hi,
    We have built a SSRS report which contains a chart and a tablix. The chart labels (Male and Female) is displayed correctly in the Visual Studio Preview but in the Report Manager it displays as Female and Female. 
    These are the following things which we have tried to fix it:
    Deleted and redeployed the report
    Restarted the Report Server
    Checked the report caching. There is no cache for this report.
    We use SQL Server 2012 and Visual Studio 2010.
    Any help is very much appreciated.
    Thanks,
    AJ

    Hi AJ,
    Per my understanding that you have two label "Male and Female" which display correctly in the Visual Studio 2010 but not correct in the Report Manager, right?
    As you have mentioned that you have checked the report caching, please make sure you have set the  "Do not cache temporary copies of this report" in report manager and also check to delete the rdl.data cache file under the project if you have
    which path like:
    \Visual Studio 2008\Projects\Report Project
    If possible, please try to create an new report the same as this one to have a double check.
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Chart label font color

    Is it possible to change the color of fonts in chart labels
    (not axis labels)? The default black does not stand out well
    against some colors.

    Are you referring to data tips?
    css style declartion can be used to change the text
    color.

  • Obiee 10g chart label size

    Does anyone know how to change the size of the chart labels??
    I'm trying to show some labels that are automatically trimmed (the label gets like this in the end ...), in the chart properties I can't find where I change this, probably this is a default number of chars per label?

    It seems that leaving the truncate value by default, in the format text from Titles and Labels properties, was the problem. I set it to a large value and my problem was solved.
    Hope it helps anyone.

  • Pie chart Labels clickable

    Hey guys,
    Is there a way to make pie chart labels(callout labels) clickable?
    Thanks in advance.

    Hans:  Thanks, again.
    (And, again, this should be easy but isn't).  Requestors ask the darndest questions.
    Doug in York PA
    Douglas R. Eckert

  • Numbers 3D Column chart labels

    3D Column chart labels do not work.
    If a label is displayed horizontally, it over-writes the next label and there is no way to turn the label vertically.

    The chart will move allowing you to see the labels.
    There is no way of moving the labels as you can in the 2D chart.
    Best.

  • Can You Edit/Resize/Move Chart Labels in Pages '08?

    I cannot get a seemingly basic page layout technique to work: editing pie chart labels. There appears to be no way to add a soft line break, adjust the text box, move the data label. You can't add a two-line title, either.
    I am hoping that there's something I've overlooked. I handle communications for a 40-person nonprofit. I was so excited about the new iWork suite and the potential for replacing Office. I really liked the functionality of Pages and was on the point of recommending it. Then I worked on one of our reports. And got stumped by the charts. The pie charts look sharp. The color palette is better. But I can only seem to edit data labels in the inspector. Pages Help didn't help. It says I can select a label location (see below), but no pop-up exists or at least none that offers Middle or Below Right.
    Can anyone help me solve this riddle? Working with charts doesn't seem like an advanced feature. I must have overlooked something, right?
    from Pages Help
    For pie charts, you display values as percentages by choosing Show Pie Values as Percentages from the Data Point Settings pop-up menu on the Series pane. To display the data series name for a wedge, choose Show Series Name from the Data Point Settings pop-up menu.
    Select a label location from the Data Point Settings pop-up menu (for example, Middle or Below Right).

    Hi Justin,
    You should be able to manually move the X-Axis labels in the Preview Mode.
    Go to the Chart Expert > Options tab > Uncheck the 'Auto-arrange' option.
    -Abhilash

  • Feature Request: Control Text Orientation on Chart Labels

    I notice that chart labels will automatically rotate 90 degrees counterclockwise when there is not enough space to display them vertically.  However, I would like to be able to control this behavior so that I can make vertical labels when my charts are larger.  A simple toggle option would be great.

    In the Alerts tab of iChat preferences, select Video Invitation from the Event pop-up menu. Then select the Run Applescript checkbox and select Auto Accept.applescript from the adjacent pop-up menu.
    Granted, this doesn't give you password authentication, but I don't believe anything is available for providing that capability.
    Hope this helps.
    Palms831

  • Print Mailing Labels from APEX

    Hi all, I need to print Avery style (5660) labels from APEX. Has anyone crossed this hurdle? Any input would be greatly appreciated. Thanks, Joe

    Hi Joe,
    We are using BI publisher. THe APEX we are using is configured with the print server settings. I had to install the BI publisher desktop to get my templates to work locally.
    So all we had to do was
    * Create a report query from the shared components Tab and export the xml to a specific directory.
    * From MS word, upload this xml. place the data fields and format the layout and then save it as an rtf. (you can preview it there itself in word)
    * create a report layout from the shared components tab and upload this rtf template.
    you can specify this template name in the layout item drop down (in the print tab of the report properties - in the page)
    or you can call the the report query (url specified in the report query) to call it from a button or branch.
    Hope it helps.

  • [svn:fx-4.x] 15099: Setting truncateToFit to false so that chart labels would get scaled but not truncated if space is not enough

    Revision: 15099
    Revision: 15099
    Author:   [email protected]
    Date:     2010-03-29 07:00:06 -0700 (Mon, 29 Mar 2010)
    Log Message:
    Setting truncateToFit to false so that chart labels would get scaled but not truncated if space is not enough
    QE notes:
    Doc notes:
    Bugs: FLEXDMV-2359 (Axis labels are clipped in sdk 4.1, since label is used instead of UITextField)
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration:
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FLEXDMV-2359
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/datavisualization/src/mx/charts/AxisRenderer.as

    Welcome to the forum Oreckel!
    The best way to work with FCP's media files is to not overthink it. It's all done from the "Scratch Disk" settings. Just select a DRIVE for media captures and renders to go to. FCP handles the rest. It creates a folder called "Capture Scratch", another called "Renders" and a third called "Audio Renders". In each of these folders it creates a folder for each project file containing the media that is associated with that particular project, and it names these folders the same as your project files' names. Couldn't be easier.
    Autosave Vaults, Waveforms, and Thumbnails should be kept on your startup disk in your documents folder. You probably already have one there named "Final Cut Pro Documents" If it's there just select the Documents folder and FCP will put these three folders in the one named "Final Cut Pro Documents".
    Jerry

  • Pie Chart Label - APEX 4.X

    i have made a flash Pie chart and i am trying to make some labeling changes. currently this is my SQL for my chart:
    select 'javascript:alert("#VALUE# hours was worked on Project Number #LABEL#");' link,
    PROJ_NUM label,
    SUM(TIME_WORKED) value1
    from "PROJMANAGEMENT"."TIME_TRANS"
    group by PROJ_NUM
    and it works well but i want the label to show the project number and project name. the issue is that the project name is in a different table. here is an SQL i wrote for a selectlist:
    select PROJ_NUM||'--'||PROJ_NAME d, PROJ_NUM return_value
    from PROJECTS
    order by 1
    it would show "0001--Project Name". that is the effect i am looking for. Any Ideas?????

    when i try that i get the following error:
    1 error has occurred
    Failed to parse SQL query!
    select 'javascript:alert("#VALUE# hours was worked on Project Number #LABEL#");' link, tt.PROJ_NUM||'--'||p.PROJ_NAME label, SUM(tt.TIME_WORKED) value1 from PROJMANAGEMENT.TIME_TRANS tt , PROJMANAGEMENT.PROJECTS p where tt.PROJ_NUM = p.PROJ_NUM group by tt.PROJ_NUM
    Certain queries can only be executed when running your application, if your query appears syntactically correct, you can save your query without validation (see options below query source).

Maybe you are looking for

  • VM Fusion and Parallels and even a Boot Camp question

    I have both Fusion and Parallels installed and have a question about how Windows is displayed . with Parallels, I get the usual Windows desktop and with Fusion I get a "menu" for navagating to different areas/programs/settings What can I do to get Fu

  • Business Partner - Valuation Data Ratings

    Hi On the Business Partner - > Valuation Data  -> Ratings screen, I need to suppress th change of the ratings without graying it out. Do you have an idea of what BAdi to use or approach to follow will be appreciate. Kind Regards, Nhlanhla Ndlovu

  • How to delete a web gallery

    I was trying out the Web section of Lightroom and after choosing a template went to add some images just for a trial, and found I added the whole 243 images I had in my Library. Now, I want to delete that effort and explore other templates (this time

  • Ipod sync is bad

    my ipod classic has never made a good sync. it does only sync a few songs at a time, no matter if it is manually or not. i have to push the sync button many, many, many times before it is done. it only sync mmmm, like 100 MB at once. and now, it isn'

  • How to implements my process?

    Hi. Let me describe my process scenario: there are several airlines which provide its own service, these services have same portType, but I do not know the number of the airlines at design time, so, I want to use FlowN, but the services are not exact