Pie Chart display problem

Hello,
Pie chart is not displayed when I tried this sql with 'order by' clause.
select null, b.subject_name, count(a.subject) cnt
from schooltemp a, subject b
where a.subject = b.subject_id
group by b.subject_name
order by cnt desc
This sql works only when 'order by' clause is removed.

Hello Marco,
I think I've found the cause.
That was not because of "order by" clause, but because of the length of column data used in the legend section.
When the column data for legend is longer than 38 chars, this SVG chart becomes blank in my case.

Similar Messages

  • Crystal 2008 Pie Chart Display Issues

    Hello all,
    I am having some problems with the Crystal Viewer displaying charts and legends. Basically, what is going on is, I have a report that displays a pie chart and legend containing data on departments within a store. I have 39 departments that need to show in the chart/legend, but only about 33 show up on the chart and 24 show up in the legend. Does anyone have any ideas if this is a limitation of the chart or anything?
    TIA
    -Coty

    There is no limitations for  pie chart and legend.   maximise the chart through edge draging.it shows all(increase the chart size)...
    All the best,
    Praveen

  • Regarding Pie Chart Display

    Hi this is Prasad,
                             I want to display a pie chart with the associated results from the query template.It is working fine if I have any values in the database.I want to Display the Text 'No Data is Found' if i dont have data in the database.Is it possible to display like this.Can anyone help on this.
    Thanks,
    Prasad.

    The 'No Data Available' message only displays when a fatal error occurs but not 0 rows (not desirable in this case).  How about adding the UpdateEvent in your PARAM tags and in the corresponding function doing something like this:
    var myApplet = document.APPLETNAME;
    var myChart = myApplet.getChartObject();
    if (parseInt(myChart.getNumberOfDataPoints(1)) > 0) {
       myChart.setTitle("You have pie slices");
    } else {
       myChart.setTitle("No Records Found");
    myApplet.setUpdateEventEnabled(false);
    myApplet.updateChart(false);
    myApplet.setUpdateEventEnabled(true);
    This should allow you to use standard stuff and not incorporate monkey business with hidden/visible divs and/or additional applets just for running separate queries.

  • Pie chart  display error

    Hi
    I created pie chart using CFCHART tag. In the chart display,
    data values overlap on one another in the display. How to rectify
    this error.
    Kindly help me in this regard.
    Advance thanks

    I am using  ColdFusion Report Builder 9 to generate a PDF, so there is no code to provide, but here is an example of my data:
    fruit
    count
    apples
    112
    oranges
    304
    bananas
    0
    pears
    0
    grapes
    16
    strawberries
    80
    plums
    48
    pineapples
    32
    blueberries
    16
    raspberries
    32
    apricots
    256
    tangerines
    705
    cherries
    1
    peaches
    0
    With 'label column: fruit' and 'value column: count', when I select 'data label: pattern', for my pie chart, the labels overlap.

  • Pie Chart displaying percentages

    Good Morning,
    I'm hoping someone has had experience creating a pie chart
    with percentage values and is wiling to offer some assistance
    because I've tried many ways and still came up short.
    The data table I'm using contains two columns: type (A, B, C,
    etc) and amount (100, 250, etc).
    In order to create a chart showing what percent of the whole
    each type is, I need to sum all the amounts for all types then
    divide each type by the sum of all amounts (to create each slice).
    Any suggestions on how to do this through CFquery and
    CFchart?
    Thanks in advance,
    Sue

    Add this line in the graph you are putting in RTF template.
    Right click the image, properties and the last tab web.
    add this under the graph node.
    To get the actual Value use this.
    <SliceLabel textType="LD_VALUE"/>
    Other vaules you can use are
    LD_TEXT_PERCENT, LD_VALUE , LD_TEXT , LD_PERCENT

  • Bar and Pie chart  display with values

    Hi All...
    I want implement the my swing application Bar and Pie chart functionality with vales, If both are disply same veues.
    Thanx to Advance
    Arjun

    www.jfree.org

  • Flash Pie Chart display bugs

    Hello guys! Sorry to disturb you but I'm experiencing strange problems in my application!
    A while ago all my flash charts worked like a charm. Today I discovered, that 3 charts are not displayed anymore.
    Have tried various things to check the reason. The underlying query returns data that can be displayed. Nevertheless, only the legend is shown and not the real chart.
    I treid to reset the xml but it doesn't yield any improvements.
    Do you maybe have a hint for me what could be wrong all the sudden?
    Any help is welcome!
    Regards,
    Sebastian

    Print screen to show? http://www.tinypic.com
    Edit: I can't seem to re-create it in the apex 4.0 trial...try just creating a new graph and see if it works.
    Mike
    Edited by: Dird on Jan 15, 2010 10:13 AM

  • Chart Display Problem

    Hi,
      i want to display chart of several attributes for one batch based upon the time. in chart it display o value when value is not for one attribute but other attribute have value on that time. Is it possible to display chart line starting from mid of the chart and also to stop at mid of chart if value doesnt exist at pariticular time?
    regards
    senthil

    Hi Senthil,
    Could you query each attribute individually via a Transaction?
    Essentially, you will need to acquire the dataset through separate queries.  Ensure that you do not have a record for the null values.
    You will need to use the XML Union action block multiple times to unionise each query result.
    You will need to return this result via an XML output parameter and access it via a query of type Xacute.
    In a nutshell, your result XMl will have multiple Rowset nodes inside the Rowsets node.
    Hope this helps.
    Cheers,
    Jai.

  • Bar chart display problem

    Hello,
    In a page bean, a code is written to produce a bar chart image. The chart image is successfully created in app server's local directory c:\mycharts
    What URL should be given to view this image from the browser. Since this image is created dynamically I can't have it placed in a resources folder during design time.

    Hi,
    The dynamically created image needs to be in a folder under the domain. An absolute path can be supplied to access the image from your page. For example, an absolute path to an image file created under a folder called images which resides in the domain would look like:
    http://www.mydomain.com/images/myImage.gif
    I hope this helps
    Cheers
    Giri

  • Problem creating pie-chart

    Post Author: ujain82
    CA Forum: Desktop Intelligence Reporting
    Hello,      I am using BO 6.1
    I am having trouble creating pie chart. I am calculating different count values from different data providers. Now I need to create a pie chart showing the proportion for each count as I can find the percentage of count.
    My scenario(task):I need count on persons depending on searching on complaint text. So for each search I have a data providers. Like this I am searching for 8 criteria. So I have different data providers for each search. I get person counts from each criteria.
    Now I want to show it in a pie chart. But I could not make it done.Does anyone faced a similar problem? How do I solve my problem?
    Any comments?

    Attached is part of the sub-vi where I am having the problem. I tell Excel which cells to use for the pie chart. If I use "Source 1" (8 cells) the pie chart is created successfully. If I use "Source 2" (14 cells) the pie chart only uses the first cell. I can go to the Excel file and select all 14 cells manually and the pie chart displays correctly. I also tried 9 cells with no luck, it seems that 8 cells are the limit. I am trying to find what is causing the limitation. I have also attached the sub-vi. 
    Attachments:
    Pie chart block diagram.JPG ‏61 KB
    M-51539-001 Create Pie Chart.vi ‏108 KB

  • ActiveX pie chart range limit

    I have a problem with creating a pie chart using ActiveX that seems to be related to the range. When I give it a source of 8 cells (source 1) the pie chart works fine (Right Pie). If I give it 9 cells (source 2) the pie chart data has 9 series instead of the 1 it should have (Wrong Pie). If I go into Excel I can correct it manually. I have been using this sub VI for a while with no problems but always with fewer than 8 cells. 
    I am using Excel 2007 version 12.
    Attachments:
    M-51539-001 Create Pie Chart.vi ‏108 KB
    Right Pie.JPG ‏124 KB
    Wrong Pie.JPG ‏114 KB

    Attached is part of the sub-vi where I am having the problem. I tell Excel which cells to use for the pie chart. If I use "Source 1" (8 cells) the pie chart is created successfully. If I use "Source 2" (14 cells) the pie chart only uses the first cell. I can go to the Excel file and select all 14 cells manually and the pie chart displays correctly. I also tried 9 cells with no luck, it seems that 8 cells are the limit. I am trying to find what is causing the limitation. I have also attached the sub-vi. 
    Attachments:
    Pie chart block diagram.JPG ‏61 KB
    M-51539-001 Create Pie Chart.vi ‏108 KB

  • Charts - Display Top Percent and Legend Layout Questions

    I have two pie charts with problems. In one, I've set the Options Legend Layout to Both, Top Percent to 85, and the legend displays the top 85 percent with a count for each group, but the total of the count column is still the grand total, not the total of the 85 percent.
    In the second pie chart, I have the same settings, Top Percentage and Options Legend Layout Both, but the count displays as dollar values, eventhough the field is a date field.
    Does anyone know how to correct these problems?
    Thanks!
    Robin

    hi Robin,
    you've got 2 options:
    a) you can use the cross-tab method that i mentioned before...a top N in the cross tab will show a percentage that is based on the whole record set as opposed to the N values...this is different than the chart legend percentage
    b) if you are willing to show the percentage that is based on the whole record set in the chart labels instead, you can  do the following...
    if you have an On Change Of value of "country" and the summary is "sales", then create a new formula called "chart title" that has syntax similar to
    {Customer.Country} +  chr(10) + totext(PercentOfSum ({Customer.Last Year's Sales}, {Customer.Country}))
    now change the chart On Change Of to your new formula. the percentage based on the whole record set will be shown in the chart labels.
    cheers,
    jamie
    Edited by: Jamie Wiseman on Nov 25, 2009 1:34 PM
    Edited by: Jamie Wiseman on Nov 25, 2009 1:35 PM

  • Pie chart - drill down/up with HierarchicalCollectionView

    y'ello,
    I started to build really simple pie chart with drill down data feature. I decided to use hierarchicalCollectionView, to access children even parent of clicked item, but one problem I realized right now is that pie chart displays only data type ArrayCollection, and hierarchicalVollectionView and method openNode() can be used only Array data type, so when I debugged I realized that can not use openNode(hitData.item)  wih ArrayCollection data type b'cuz flash player pop-ups error window.
    Please, chcek short source code. I thought I can make hierarchy from ArrayCollection but can not use openNode() method that next I need this method later access parent or children. Simply when I click on one wedge, drill down, again, when I click, again drill down...when I click Ctrl+click get one level back then again and again....plese help me gurues
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.charts.HitData;
                import mx.charts.events.ChartItemEvent;
                import mx.collections.HierarchicalData;
                import mx.collections.HierarchicalCollectionView;
                [Bindable]
                public var cars:ArrayCollection = new ArrayCollection([
                    {type:"BMW", t_count: 150, children:[
                        {type:"1 class", t_count: 18, children:[
                            {type:"Coupe", t_count: 34},
                            {type:"Touring", t_count: 42},
                            {type:"Compact", t_count: 8}
                        {type:"3 class", t_count: 14, children:[
                            {type:"Kabriolet", t_count: 12},
                            {type:"Coupe", t_count: 34},
                            {type:"Touring", t_count: 42},
                            {type:"Compact", t_count: 8}
                        {type:"5 class", t_count: 7, children:[
                            {type:"Kabriolet", t_count: 12},
                            {type:"Coupe", t_count: 34},
                            {type:"Touring", t_count: 42},
                            {type:"Sedan", t_count: 8}
                        {type:"6 class", t_count: 15, children:[
                            {type:"Kabriolet", t_count: 12},
                            {type:"Coupe", t_count: 34},
                        {type:"7 class", t_count: 8, children:[
                            {type:"Kabriolet", t_count: 12},
                            {type:"Coupe", t_count: 34}
                        {type:"X3 class", t_count: 22, children:[
                            {type:"Sedan", t_count: 11},
                            {type:"Coupe", t_count: 9},
                            {type:"Touring", t_count: 5},
                            {type:"Compact", t_count: 17}
                        {type:"X5 class", t_count: 9, children:[
                            {type:"Sedan", t_count: 33},
                            {type:"Coupe", t_count: 18},
                            {type:"Hatchback", t_count: 7}
                        {type:"X6 class", t_count: 11, children:[
                            {type:"Coupe", t_count: 18},
                            {type:"Combi", t_count: 31},
                            {type:"Hatchback", t_count: 8}
                    {type:"Mercedes", t_count: 120, children:[
                        {type:"A class", t_count: 5},
                        {type:"B class", t_count: 12},
                        {type:"CLS class", t_count: 18},
                        {type:"CL class", t_count: 23},
                        {type:"C class", t_count: 12},
                        {type:"E class", t_count: 19}
                    {type:"VW", t_count: 320, children:[
                        {type:"Passat", t_count: 10},
                        {type:"Polo", t_count: 25},
                        {type:"Golf", t_count: 45},
                        {type:"Touareg", t_count: 15}
                //HCV from hierarchical data
                private var hView:HierarchicalCollectionView = new HierarchicalCollectionView(new HierarchicalData(cars));
                //event handler
                private function drillDownUp(event:ChartItemEvent):void{
                    if(event.hitSet && event.hitSet.length){
                        //DRILL UP
                        if(event.ctrlKey){
                            var hitItem:HitData = event.hitSet[0];
                            var parent1:Object = hView.getParentItem(hitItem.item);
                            var parent2:Object = hView.getParentItem(parent1);
                            if(!parent2){
                                myPieChart.dataProvider = hView.source.getRoot();
                            else{
                                myPieChart.dataProvider = hView.getChildren(parent2);
                        //DRILL DOWN
                        else{
                            var hitItem:HitData = event.hitSet[0];
                            if(hitItem.item.hasOwnProperty("children")){
    //                            hView.openNodes(hitItem.item); //here is problem!!
                                myPieChart.dataProvider = hView.getChildren(hitItem.item);
            ]]>
        </mx:Script>
        <mx:Panel title="PieChart DDD Test - Trh predaja automobilov - 2009">
            <mx:PieChart id="myPieChart"
                         dataProvider="{cars}"
                         itemClick="drillDownUp(event)"
                         showDataTips="true">
                <mx:series>
                    <mx:PieSeries field="t_count"
                                  nameField="type"
                                  labelField="type"
                                  labelPosition="inside"/>
                </mx:series>
            </mx:PieChart>
            <mx:Legend dataProvider="{myPieChart}" direction="horizontal"/>
        </mx:Panel>
    </mx:Application>

    Hi Jan,
           thanks for reply,sorry i am quite new in this forum not familiar with tabs and navigation,can you please elaborate/steps to find the business card
    thx
    Anwy

  • Colour coding slices of pie chart

    Hi,
    I'm generating a pie chart from a list of traffic light colours (red, amber, green) and would like to colour the pie slices to match the colour reported i.e. the red segment should be red etc.
    I've seen an example here:
    http://htmldb.oracle.com/pls/otn/f?p=11933:32
    which I have got to work but this only works if all of the colours are returned i.e. each of the status indicators have a value greater than zero. If any of the status indicator values have zero occurences then the coulours get mismatched. I assume this is because the slices are coloured in order of display. I tried to correct this by forcing each status to be selected even if the occurence was zero but this seems to give me bizarre results with the pie chart displaying the top portion in the wrong place.
    Has anyone got any ideas that might help resolve my problem?
    Cheers,
    Andy

    Hello,
    What you can do is set a hidden page item to the proper css using some plsql to output the css you want based off of a query.
    And then use that item in the custom css area as an Item substitution.
    Example
    set page item value SVG_CSS using some plsql logic to
    #data1 ,rect.data1 ,path.data1{fill:#f00;}
    #data2 ,rect.data2 ,path.data2{fill:#0f0;}
    #data3 ,rect.data3 ,path.data3{fill:#00f;}
    and in the Custom CSS attribute use &SVG_CSS.
    Carl

  • Chart legend problem

    I have multiple pie charts displayed on the same page. I would like to maintain consistent legend across all the graphs as below.
    0 - 10 % - Red
    11- 20% - Green
    21 - 30% - Blue
    31- 40% - Black
    41-50% - Yellow
    some of the charts may not certain ranges as mentioned above. I always want to show consistent colors in the legend, instead of apex choosing the colors for the chart randomly. that means, when the values are 11- 20% it's green, 31-40% is always black, if those ranges are avaialble. Is there way to enforce such color shcme/legend to SVG charts?. any ideas are appreciated.
    thanks in advance,
    Surya

    any ideas are appreciated.

Maybe you are looking for