Show 2D Stacked column chart values
Hi,
I use the following sql which shows the percententage of errors in a month
SELECT NULL
, TO_CHAR(MA.DATE_LOGG,'Mon'),
sum(decode(el.error_type,'On',1,0)) "Ons",
sum(decode(el.error_type,'Pa',1,0)) "Prt",
sum(decode(el.error_type,'No D',1,0)) "No D",
sum(decode(el.error_type,'Sys',1,0)) "Sys",
sum(decode(el.error_type,'Oth',1,0)) "Oth"
FROM
table1 MA, table2 EL, table3 CR
WHERE
MA.ERROR = EL.ERROR
AND MA.ERROR IS NOT NULL
AND MA.COUNTRY = CR.COUNTRY_CODE
AND TO_CHAR(DATE_LOGG,'YYYY') = nvl(:P5_FILTER,to_char(sysdate,'YYYY'))
AND CR.REGION_CODE = NVL(:P5_REGION,CR.REGION_CODE)
GROUP BY TO_CHAR(MA.DATE_LOGG,'Mon'), trunc(ma.date_logg, 'Month')
ORDER BY trunc(ma.date_logg, 'Month')Now the values are showing correctly, however, the bar stacked shows the actual percentage value, e.g 60% on the stacked bars. When we mouse over the bar it shows the "No D", Sys, Oth . Is there a way to permanently show both the Decode type and the percentages?
Apex 4.1/11g
Thanks,
Sun
Hi Sun,
If you wish to incorporate the series name in the values displayed on the bar elements themselves, then you will need to customise the chart XML and update the <label_settings> tag to incorporate {%SeriesName}. I've added an example to my sample application, outlining where the XML needs to be modified: http://apex.oracle.com/pls/apex/f?p=36648:90. For a complete list of available AnyChart keywords, such as %SeriesName, please refer to the AnyChart online documentation: http://anychart.com/products/anychart/docs/users-guide/label-text-formatting.html?fromtree.
I hope this helps.
Regards,
Hilary
Similar Messages
-
Stacked Column Chart Value does not show in Preview or SWF
I have created a simple (one-column) stacked Column chart from an imported Excel 2007 spreadsheet. I am using 3 values and all three are there when I am editing the chart. When I do a Preview or Export it to a .swf file, the third value does not show up. It only shows the first two.
I am running Xcelsius 2008, Version 5.1.3.0, build 12,1,3,495.
Edited by: Rich Krejsa on Apr 9, 2009 9:35 PMHi Rich,
Try to rebind the data with the component and preview and see.
Also check with other charts to see if you get the same behaviour.
Try placing a table component and display those cell and see what values are there when you preview.
There could also be posiblities that the third values must be very small as compared to the other two,so check that as well and may be select the secodry scale in the general tab for the 3rd series.
Let me know if this helps.
Thanks,
Amit Mathur. -
Xcelsius - Stacked Column Chart - Overall value / Result
Hi *,
does somebody knows how I can display the overall value of my columns in a stacked column chart?
Or is there a workauround to do this?
Thanks and regards,
MarkusYes, it would absolutely be nice if they provided this option for the stacked charts.
Couple of other options-
Create a bar chart that graphs the totals as one series. Specify that it should show the data values, adjusting an offset so the totals appear to the end/top of the bar, Place the totals chart behind your stacked bar chart. obvioulsy the cahrts have to align precisely.
Another option - concatenate the total amount so it appears as part of teh axis label. This works better for some scnarios than others.
See this video example to get an idea of how this might work.
http://everythingxcelsius.com/2009/06/show-chart-values-without-hovering.html
With SP3, if there are only a few series in your chart, another option you can play with is adding an additional series for each series in your chart. Have a very small value that won't register visually on the chart e.g. .001, and then assign category labels for each series that is total value for a series, and choose to display the lables. Hard ot explain this one well, I 'll see if I can put togeter a simple example. This gets ugly quickly.
I'd love to hear ideas from others. -
Dsiplay data values and data lables in a stacked column chart
Hi All
Is there a way to display data values and data labels in a stacked column chart. Mouse over or display of labels in legends wont help. It has to be in the chart .
Regards,
anshulHi Anshul,
You can display either data value or data label in a stacked column chart by checking the Data Label Displaying Mode option under Format Chart->Data Values.
You can also do the same by checking the same option under Format chart->Area Display->Data Values.
I dont think you would be able to display both in a column chart whereas you would be able to do it in a pie chart.
Hope this helps.
Regards
Sri Harsha -
Legend shows items not in same sequence as stacked column chart
I inserted a stacked column chart
sequence in bar is A (bottom), B (middle), C (top)
legend shows it the other way around (A (top), B (middle), C (bottom)
How can sequence be aligned?
Thanks BerndHi Bernd
Unfortunately you cannot change the sequence.
However if you read the chart from a visual perception point of view the sequence does work, although it's less intuitive. You first read the item closest to the x-axis, and you read the legend from the top to bottom.
Regards
[Charles|http://www.reportex.co.uk/xc_waterfallchart.html] -
Help Creating Dynamic Stacked Column Chart with Multiple Criteria
Hi all. Im new here and hoping you can help. I have a dashboard Im trying to rebuild from scratch (our computer had a meltdown and we lost all our files). I did not build the dashboard initially so Im trying to recreate it from the flash file we were able to recover. I have come across a chart that I just cannot figure out how to do. I can figure out how to write an array in the Excel sheet that pulls the data into a table the way I need it to be but found out after I wrote that that Xcelcius doesn't support arrays so all my data disappears when I go into preview mode (which is especially frustrating since I can see the chart working fine in design mode). Anyway this is what the data table looks like
Month Year Company Positive # Negative # Neutral # Positive % Negative % Neutral %
October 2011 CompanyA 1234 1234 1234 10 10 10
October 2011 CompanyB 1234 1234 1234 10 10 10
October 2011 CompanyC 1234 1234 1234 10 10 10
October 2011 CompanyD 1234 1234 1234 10 10 10
November 2011 CompanyA 1234 1234 1234 10 10 10
November 2011 CompanyB 1234 1234 1234 10 10 10
November 2011 CompanyC 1234 1234 1234 10 10 10
November 2011 CompanyD 1234 1234 1234 10 10 10
December 2011 CompanyA 1234 1234 1234 10 10 10
December 2011 CompanyB 1234 1234 1234 10 10 10
December 2011 CompanyC 1234 1234 1234 10 10 10
December 2011 CompanyD 1234 1234 1234 10 10 10
The original chart was built so that you would choose the month from a combo box and then the company names would show up along the X axis with their % amounts shown in the stacked column. I know how to make a combo box work and I know how to make a stacked column chart work with static data. I cannot for the life of me figure out how to get it to work so that when you choose the month from the combo box it filters the data. I've tried filtered rows but I'm just missing some information that makes it work and I can't figure out what that information is. It has to be able to get the month/year combo from the combo box and then go to the table, filter it by month and year and then create a multi-row table of data with just the company and the percent values. Any help would be greatly appreciated!Which connection you are using?
IF quite difficult if you are working under static data. -
Help - How do I Add a Trendline to a Stacked Column Chart??
I have a stacked column chart (NOT a 100% stacked column chart) and need to add a line to show the year goal. I can do this in Excel, but for some reason can't figure out how to do this in SSRS. I read various tutorials, blogs and MSDN pages
but nothing works. The weird thing is that they all say that I should right-click on the chart and there should be a DATA tab...on the chart properties. THERE IS NO DATA TAB, i'm here to tell you. I'm using SQL 2012 so not sure if that might make
a difference.
So how do I do this?
Again, this can be done in Excel, don't understand why this isn't easier to do in SSRS.
BTW, completely separate rant here, but it takes me 20 minutes every single time I want to log into MSDN forums. It never seems to remember my password and I have to reset it, then jump through a bunch of security nonsense. Anyone else have this
problem?
Thanks!!Hello,
If I understand correctly, you want to add a line chart to display the Goal values in the stacked column chart. You can try to add the secondary field to the Values area and change the chart type to "Line". Both data field in the Values area
shares the Category group and series group. Please refer to the following screen shot:
If I have any misunderstanding, please post your report dataset with sample data for further analysis.
Regards,
Fanny Liu
If you have any feedback on our support, please click here.
Fanny Liu
TechNet Community Support -
Stacked column chart from XML data source
I have an XML file, which lists elements with three
attributes: date, inactive-interval, user-count.
I need to build a stacked column chart with a single column
for each distinct date, one stack for each distinct
inactive-interval for that date, and the height of the stack equal
to the user-count.
I can define ColumnSeries with yField="user-count"
xField="date", but I don't know how to partition the column into
stacks by inactive-interval values.
Here is a sample data set:
<?xml version="1.0" encoding="ISO-8859-1"?>
<data>
<snapshot date="01/01/2007" inactive-interval="0"
user-count="3"/>
<snapshot date="01/01/2007" inactive-interval="7"
user-count="2"/>
<snapshot date="01/01/2007" inactive-interval="30"
user-count="4"/>
<snapshot date="01/02/2007" inactive-interval="0"
user-count="4"/>
<snapshot date="01/02/2007" inactive-interval="7"
user-count="2"/>
<snapshot date="01/02/2007" inactive-interval="30"
user-count="3"/>
</data>Your CategoryAxis id="ha_ccm" uses categoryField="period", and this is the label for the your series (i.e. "Quarter 4/2010"). You cannot have multiple categoryFields for the CategoryAxis; it can only use one data field for the labels. You can use data tips and/or label functions to show the individual series' values on the columns.
Also:
Your labelField in the ColumnSeries are set to a ColumnSet name instead of a field name in your dataprovider.
Font must be embedded if you set ColumnChart.showLabelVertically="true". -
Hi to everybody.
I was wondering if there is a possibility to do the following :
On the stacked column charts you can show the value of each series. Is there a possibility to show for instance on the top the sum of the series.
Thanks in advance
Message was edited by: Series IIAI figured it out. It took special format/setup on the bex report side.
thank you to all... -
Drill Down between 2 stacked column chart with multiple rows.
Hi,
Can anyone please help me.
1) i have to create stacked column chart with Region and cout of calls for previous 3 quarters.
2) the 2nd stacked column should display the priority with the count of calls for the respective selection of region on the 1st chart..
to achieve this,
i'm using 2 stacked column charts and 1 lebel baseb menu.
from this i can able to get the drill down from label based menu to 2nd stacked column chart but i couldn't able to done the same from 1st stacked coumn chart.
Becoz my data is multiple row for each quarter.
please suggest me to achieve the drill down between 2 stacked column charts.
assume that my data like below.:
coulmns for 1st stacked column chart : Region, Q2,Q3 &Q4
Region Q2 Q3 Q4
Other 3658 3497 497
NA - North
America 3 3 1101
APJK 1 4 597
UK 324
EMEA North 1 1 288
CORPORATE 1 5 215
LA -
Latin America1 2 208
EMEA 1 199
EMEA South 1 1 169
Coulmns for 2nd coumn chart: Region, Priority, Q2,Q3,Q4 ()which is derived from 1st table.
Region Priority Q2 Q3 Q4
Other D: End of Next Day 1568 1613 239
Other C: End of Day 983 893 119
Other A: 2 Hour 631 610 70
Other B: 4 Hour 396 318 56
NA -
North AmericaD: End of Next Day 2 2 514
APJK D: End of Next Day 3 297
NA -
North AmericaC: End of Day 284
NA -
North AmericaA: 2 Hour 1 170
UK D: End of Next Day 157
APJK C: End of Day 1 1 152
Other E: 3 - 5 Business Days 68 58 13
EMEA North D: End of Next Day 1 136
CORPORATE D: End of Next Day 4 107
NA - North America B: 4 Hour 1 104
LA - Latin America D: End of Next Day 1 1 86
EMEA D: End of Next Day 86
UK C: End of Day 85
APJK A: 2 Hour 79
EMEA South D: End of Next Day 72
EMEA North A: 2 Hour 69
EMEA North C: End of Day 56
APJK B: 4 Hour 55
EMEA C: End of Day 1 53
LA - Latin America C: End of Day 54
UK A: 2 Hour 49
EMEA South C: End of Day 1 44
CORPORATE A: 2 Hour 1 43
CORPORATE C: End of Day 44
LA - Latin America A: 2 Hour 1 42
EMEA South A: 2 Hour 1 32
EMEA B: 4 Hour 30
UK B: 4 Hour 30
EMEA A: 2 Hour 27
EMEA North B: 4 Hour 1 26
NA -
North AmericaE: 3 - 5 Business Days 25
LA - Latin America B: 4 Hour 23
EMEA South B: 4 Hour 20
CORPORATE B: 4 Hour 17
APJK E: 3 - 5 Business Days 13
Other F: 6 - 10 Business Days 6 4
Other G: 11 - 20 Business Days 6 1Hi Srinivas,
I'm using label based menu "filterd rows" only but i couldn't bind the drill down with the 1st stacked column chart.
for mor details:
1) i'm having 2 stacked coumn charts & 1 lebel based menu but eventhough i couldn't able to achieve.
if i select the lebel based values then the 2nd stacked column charts is giving detailed valus but if i keep my mouse on the 1st stacked column chart the there is no changes on the 2nd chart..
somewhere i'm mising the binding data between 1st stacked coumn chart & lebel based menu on drill down part.
Becoz i'm having multiple rows. so can you please try your and send me the xlf file using your concept. -
Stacked Column Chart with Lines
Requirement:
User stacked Column chart to display data for defects for 4 departments.
1 or 2 lines to show baseline for defects(constant).
Is there anyway that I can do that just like we can create one in Excel?
(stack a Stacked column chart with a line chart is not a solution.)
Any advises?
Thanks,
WenHi Wen,
I realise that you are not going to get this to work with a standard component on its own. I think it might be possible to acheive it with overlaying barcharts and combination charts.
My assumption is that you are looking for something that has a stack with 3 separate items in it. Two target lines crossing over the stacked chart.
I will have a look at this to see if I can come up with something. Let me know if this is not your requirement.
No, I don't work for SAP. I think those that do have the SAP logo beside them.
Regards
Alan -
the same with the following description from another question:
"How can I display a total on top of each column on a stacked column chart (using
reporting services 2008)? If I use Data Labels I can display the
values for each part of the stack on a stacked column, but I want to be display the total.
For Example: If I have stacked column on chart with a value of 10 for the 1st stack, 20 for the 2nd stack,
and 20 again for the 3rd stack - I want to display 50 (the SUM total) as the data label on top of the entire column..."
and a solution for this would create a new column named SUM(category group), this can be done with data source from SQL server, but my data is from SharePoint site list. its query seems can't be changed which means I can't add a SUM column.
what should I do with this? Can anyone give me a hand?
thank you very much.Hi sophiexu,
If we want to display a total for each column on the top of a stacked chart, we can use a matrix control to display the column total value to work around this issue.
The following thread about how to simulate chart legend is for your reference:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cfb4fa19-b2ba-426a-804b-b5ea83d70d62/ssrs-2008-chart-legend-missing-customitems-property
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Stacked Column Chart drill down
I have a stacked column chart. Data is dynamic. Sometimes one column will have 0 as value.
I need to do a drill down on the ones which has value. In order to do a drill down everytime, I don't want my drill down to be tied to a specific serie...
How can I do that?
Thanks,
WenHi Wen:
Let me do a quick demo to you so you can learn how drill down for stacked column chart works
1. Create a new stacked column chart.
2. Choose data binding "By Range" and "Data In Columns" binds to range "A1~C2", which has range data as following:
a, 1, 2
b, 3, 4
3. After finishing step 2, there will be two series created (Series 1, and Series 2)
4. Open drill down tab and check "Enable Drill Down".
5. Choose "Insert Type" as "Row".
6. Click "Series 1".
7. Bind "Source Data" to range "D1~E2" which contains value as following:
11,12
13,14
(these are the drill down value you want to insert)
8. Bind "Destination" to "D3~D4" (empty cells)
9. Create another component "Grid" under "Other" folder.
10. Bind grid data to "D3~D4" to present the drill down data.
11. Preview the xlf file, can click values in series 1, you will see the drill down result. (Grid will be refreshed with new drill down data)
Hope the demo above can help you in your practice, also you can refer to help documents for more information. Let me know if you have any other questions!
Thanks!
Bill -
Decimal Point data for Stacked Column Chart
Hi,
I use a basic version of a Column chart for one of my projects. I use a stacked column chart with 2 data series namely "Expenses" & "Profit".
I use decimal point numbers (with only two or three places after the decimal point) for both series.
When I mouse over the bars of the output for tool tip, I view more numbers after the decimal point for some data.
How to fix the decimal point to only 2 places & what is the reason for this behaviour?
Attached is the sample output (output.gif) showing the above condition for the mentioned data.
-SenCreate an toolTipShow event handler and use a NumberFormatter to set the precision of the numbers (sample code from LiveDocs):
<?xml version="1.0"?>
<!-- formatters\MainNumberFormatter.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
// Define variable to hold the number.
[Bindable]
private var bigNumber:Number = 6000000000.65;
]]>
</mx:Script>
<!-- Declare and define parameters for the NumberFormatter.-->
<mx:NumberFormatter id="PrepForDisplay"
precision="0"
rounding="up"
decimalSeparatorTo="."
thousandsSeparatorTo=","
useThousandsSeparator="true"
useNegativeSign="true"/>
<!-- Trigger the formatter while populating a string with data.-->
<mx:TextInput text="{PrepForDisplay.format(bigNumber)}"/>
</mx:Application> -
Different sort order with line chart and stacked column chart
Hi,
I have a problem with sorting within flash charts.
The chart should be ordered by a date column.
If I'm using a line chart everything is fine. The columns in the chart are in the same order as returned by the query.
If I change the chart type to stacked column chart, I get a wrong order.
It is orderd like 5, 6, 7, 8, 9, 10, 1, 2, 3, 4.
What's wrong?
Here the query i use:
SELECT NULL AS link,
TO_CHAR (zeitpunkt, 'dd.mm.yyyy'),
MAX (DECODE (db_sid, 'TI06E', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "TI06E",
MAX (DECODE (db_sid, 'TI06T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "TI06T",
MAX (DECODE (db_sid, 'TI14S', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "TI14S",
MAX (DECODE (db_sid, 'TI14T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "TI14T",
MAX (DECODE (db_sid, 'TI16T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "TI16T",
MAX (DECODE (db_sid, 'TI24K', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "TI24K",
MAX (DECODE (db_sid, 'TI33T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "TI33T",
MAX (DECODE (db_sid, 'WF03E', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF03E",
MAX (DECODE (db_sid, 'WF03K', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF03K",
MAX (DECODE (db_sid, 'WF03T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF03T",
MAX (DECODE (db_sid, 'WF05K', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF05K",
MAX (DECODE (db_sid, 'WF05T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF05T",
MAX (DECODE (db_sid, 'WF06T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF06T",
MAX (DECODE (db_sid, 'WF07K', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF07K",
MAX (DECODE (db_sid, 'WF07T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF07T",
MAX (DECODE (db_sid, 'WF08K', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF08K",
MAX (DECODE (db_sid, 'WF08T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF08T",
MAX (DECODE (db_sid, 'WF09K', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF09K",
MAX (DECODE (db_sid, 'WF09T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF09T",
MAX (DECODE (db_sid, 'WF10K', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF10K",
MAX (DECODE (db_sid, 'WF10T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WF10T",
MAX (DECODE (db_sid, 'WG04T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WG04T",
MAX (DECODE (db_sid, 'WT05T', VALUE, NULL)) OVER (PARTITION BY zeitpunkt) AS "WT05T"
FROM db_performance_temp
ORDER BY zeitpunkt ASC
SQL> desc db_performance_temp
Name Null? Typ
ZEITPUNKT DATE
DB_SID VARCHAR2(30)
VALUE NUMBERI found the solution.
Anychart seems to have a problem with null values!
The corrupted sorting only occured for a specific set of search criteria and a specific day. At this day some values have been null.
I added a "nvl( [...], 0) for every value.
No I get a correct sort order.
Maybe you are looking for
-
How to track log information in a bean?
I would like to track some information, e.g., variable value, error, in a bean. I am using System.out.prinln in the bean. I did not see any in the log file of Tomcat5. But this information was shown if from Servelet class. I also tried to pass error
-
What happens at each step of an iPhone Backup and Sync?
Can someone tell me exact what is happening at each step of an iPhone backup and sync? I see 5 to 7 steps. So what has happened after step 1, then after step 2, and so forth? I would appreciate if only those who knows exactly what happens will list i
-
IPod nano transfer songs to an iBook
Hi I just had a major problem with my trusted iBook, and I had to get my hard drive replaced, it was done by an apple certified shop/technician. The problem is that I lost my original iTunes music/photo library. The songs and the pictures are still o
-
HELP!! PLEASE!! 3 PROBLEMS!!
I have what appears to be "2 o_o" in between my battery charge indicator and the time... it won't go away, i have no notifcations left unchecked or voicemails.. Also I deleted my E-mail address because I thought that's why my fb wasn't working so I c
-
Files creating through remote desktop is not updating in office computer
Hi, we are currently using windows 2008 standard server for terminal service. colleagues are allowed to work through rdp. Recently one of my colleague said, when he is accessing the terminal server through remote, the files, folders and whatever he c