Show Data labels on stacked bar chart
Hi All:
I am trying to show an inside data label on a stacked bar chart. For some reason Flex 4 does not like labelPosition="inside" in the mx below. Thanks Bob
<mx:BarChart
id="ProxChart" x="85" y="76" height="192" width="630" type="stacked">
<mx:horizontalAxis>
<mx:LinearAxis maximum="20"/>
</mx:horizontalAxis>
<mx:series>
<mx:BarSeries id="MySeries" displayName="Test" xField="" labelPosition="inside"/>
This will do it.
import mx.charts.*;
private function myLabelFunction(element:ChartItem, series:BarSeries):String
return(element.item.toFixed(1));
<mx:series>
<mx:BarSeries id="MySeries" displayName="Test" xField="" labelPosition="inside" labelFunction="myLabelFunction"/>
Similar Messages
-
Workaround for NO DATA FOUND in stacked bar chart?
Hello, Ive got a stacked bar chart in the making, when one of the series doesnt have data, the whole chart show the no data found message but not the other series that do have data. Is there a workaround for this? can I catch the exception in the Series Query? Or is there any other workaround someone has tried with success???
thanks for any help or suggestion!!!Ok, figured out a workaround based on my rusted SQL memories (its probably not the most efficient way to go), made a view like this:
CREATE OR REPLACE FORCE VIEW "VISTA1" ("NOMBRE", "TIPO_LOCAL", "TIPO", "FECHA", "OPCIONAL") AS
select USUARIO.NOMBRE, USUARIO.TIPO TIPO_LOCAL, CONSUMO.TIPO, CONSUMO.FECHA, CONSUMO.OPCIONAL
FROM USUARIO
LEFT JOIN CONSUMO
ON USUARIO.ID_USUARIO = CONSUMO.USUARIO_ID_USUARIO
on this view, i made individual selects and UNIONed them for a comeplete table, with null values being zero, just what was needed:
select null link,
LOCAL,
total "CANTIDAD"
FROM
select
count(A.TIPO) TOTAL, 'SIGO SAMBIL' LOCAL
FROM VISTA1 A
where A.tipo='3 PACK' AND A.NOMBRE = 'SIGO SAMBIL'
UNION
select
count(A.TIPO) TOTAL, 'A GRANEL' LOCAL
FROM VISTA1 A
where A.tipo='3 PACK' AND A.NOMBRE = 'A GRANEL'
etc.....
for each series, i then had to change the A.tipo value to whatever the new series should be.
regards,
Mariano. -
Problems with Value Labels in Stacked Bar Chart
Post Author: RGR
CA Forum: Charts and Graphs
When choosing a stacked bar chart to display the contribution of 2 values to the overall total, the graph plots correctly, but the value labels are incorrect. Instead of labeling the values for A & B, the graph is appropriately labeled for A ,but the label for B is the total for A+B. It should be just "B".
Has anyone else experienced this problem or has a solution. I am using CR 2008
TXPost Author: Joy Hampson
CA Forum: Charts and Graphs
I have this issue a lot with CR XI. As I have never used CR 2008, I am not sure of the commands. But in CR XI, right click on the graph and select Chart Options. On the Data Labels tab, at the bottom there are two options: Cumulative and Absolute. It defaults to Cumulative, so change to Absolute. That always works for me. -
BO Explorer 4.1 SP4 (no fix packs)
I have an issue where I cannot create a stacked bar chart in Explorer. Taking a simple data-set (below screenshot), I wish to have a stacked bar chart that will show this data i.e. one bar per year showing as a %. Is this possible?
Unfortunately the result I am getting is show below, which obviously isnt correctYes there are ways to get stacked bar chart !
To get a better idea, just have a look on these threads
Stacked bar chart to show vertically
Re: Horizontal stacked bar chart supported?
Regards
Ram Upadhyay -
Stacked bar chart with percentage in Xcelsius
Hi,
I want to create a stacked bar chart(Horizontal) for the following data
Project 1 --- > 2140, 177, 288, 135
Project 2 ---> 856, 44, 658, 120
For following status respectively
Completed, Pending ,Partially completed, Not Started
Project 1 and Project 2 will be on Y axis.
I want this data to be divided in percentage.
as shown below
Project 1 |___135_____|___177_____|______2140_______|
Project 2 | __44__|___120_____|________856__________|
0 20 40 ........ 100
How to achieve this in xcelsius?I don't understand why you are soying it is not possible.
Actually I think it is and quite easily but maybe i missunderstand the question.
But anyway, here is what I would do:
In the spreadsheet, you can calculate the percentage of each status per project:
Completed Pending Partially completed Not Started
Project 1 78.10% 6.46% 10.51% 4.93%
Project 2 51.01% 2.62% 39.21% 7.15%
And then select these data for the stacked bar chart. Here you get the graph you are looking for.
Oli -
Y axis max ignored for horizontal stacked bar chart (SVG)
G'day,
I'm using the standard SVG horizontal stacked bar chart (multi-series). I have set the Y axis maximum value but it is ignored - bars are plotted to their maximum height.
I've had no such problem with vertical stacked bar charts.
We're running v2.2.0.00.32.
Is this a known bug?
Regards,
Chris.I don't understand why you are soying it is not possible.
Actually I think it is and quite easily but maybe i missunderstand the question.
But anyway, here is what I would do:
In the spreadsheet, you can calculate the percentage of each status per project:
Completed Pending Partially completed Not Started
Project 1 78.10% 6.46% 10.51% 4.93%
Project 2 51.01% 2.62% 39.21% 7.15%
And then select these data for the stacked bar chart. Here you get the graph you are looking for.
Oli -
Suppress zero values for data labels in a stacked bar chart.
I've seen this question asked before, but I can't seem to find anyone who knows how to do this. I've made a stacked bar chart from a crosstab result, and I don't want to show labels that have a zero value. This seems like others would have this same issue as it can really clutter up a chart. The link below shows my chart. I am trying to remove the labels that say "On-PW 0"
http://i1199.photobucket.com/albums/aa472/gno722/question%20examples/crystalquestion.jpgthe steps below will work on a regular chart..not sure about stacked...
1) in Preview mode of the report click on a Y axis value and go to Data Y Axis Options
2) go to Scale and set a Minimum Value of .001
3) check the Don't Draw Out Of Scale Values
cheers,
jamie -
How can I show a 0% range in the data value label on a bar chart thanks?
How can I show a 0% range in the data value label on a bar chart thanks?
I'm not sure what the question is.
I know that if you have a bar chart and one of the categories (X-axis) has bar (Y value) equal to 0%, no bar is plotted for that category. Even the addition of a stroke (line) around the bars doesn't make one appear for 0%. The only automatic way I know of to make it look like there is data in that category is to add the value labels to the bars. Inspector/Chart/Series, select one of the bars on the chart, click on "value labels". Another method that is a workaround is to fudge the number a little in your table so that instead of 0% it is a very small %. This will get you a thin line on the chart.
But if your question is about the value labels (the numbers that display on or in the bars) and you are not getting one for a bar that is supposed to be 0%, it probably means your table doesn't actually have a 0% in the corresponding cell. A blank cell in the table will not get a value label. -
Stacked bar chart showing zeros when there is no data
Hi,
I am developing a stacked bar chart which plots month vs sales of 3 different products.
I am showing data points and the total sales on chart. Every thing looks good except the zeros displayed on the chart if there are no sales for a product for a particular month... how to get rid of these zeros ? i mean how to display the value only if there is some data ?
ThanksSounds like you have a left outer join from your product table to the sales data. Thus product is listed even when no data present.
Try changing join to Equal
Ian -
BIP 11.1.1.7 - Stacked Bar chart data label not visible in pdf
Hi all,
I have a report built with the online editor. This contains a stacked bar chart with percentage values in a repeating section and I made the property DataVisible=true.
When I view the report in interactive mode it all works: I can see the data label for every value of the parameter but when I view in any other format (PDF, PPT, ecc..) the data labels are visible in the first chart (for the first value of the parameter) while in the other charts they aren't. This doesn't happens for other types of chart, for example with a pie chart.
Can someone help me or tell if it is a bug?
Thanks,
MicaelaHi Mitalee,
Would you please check the PAM at https://websmp108.sap-ag.de/~sapidb/012002523100018972812014E
On page 11 it says 64 bit IE11 is not supported; is your IE11 32 bit or 64 bit? -
Stacked Bar Chart with data from a Web Service
Hi,
I'm working on Dashboard Design (version 14.0.1.287) and I'm trying to create a chart linked to data from a webservice.
With a Year in input, my webservice gives an Amount per Cities and Products
Data retrieved look like this (Sheet1) :
Paris Tablets 45
Paris Laptops 12
Paris Cellulars 89
New-York Tablets 56
New-York Laptops 36
New-York Cellulars 1
Londres Tablets 150
Londres Laptops 3
Londres Cellulars 45
Then I use a Pivot Table (created manually in Excel) looking like this (Sheet2) :
Tablets Laptops Cellulars
Paris 45 12 89
New-York 56 36 1
Londres 150 3 45
The chart is a Stacked Bar Chart plugged on the previous Pivot Table
I create 3 series (one per Product), values (X) are set with Amount
Category labels (Y) are set with Cities
The goal is to have a dynamic chart (series and categories must update if a new city or a new product appears)
So my question is : how can I set up the chart directly with data retrieved from webservice on Sheet1?
Thx a lot !
Nicolas
Edited by: nicolasheurtevin on Sep 14, 2011 4:58 PMhi
First thing , bad news if you are using .Net framework 1,
just forget it, Flex 2 doesn't work well with framework 1, but 2nd,
good news, if you want to use webservices, you'll have to make an
array of objects on .Net Side and send it as objects to flex, i saw
an example on the net but i can't seem to remember where, on the
other hand,if you want to simply use, like i do, HTTPSERVICE its a
very nice way to talk with .Net and you can see my example here
http://flex1-for-dummies.blogspot.com
By the way, in your code, you have a request tag , but you
aren't requesting anything, because if you were you would have to
make like this
<mx:request>
<Artist>{yourinputtext.text}</Artist>
</mx:request>
So if you don't have an input text, you don't need a request
tag, only the operation. -
Stacked Bar Chart - no data found
I have a page with a report and a stacked bar chart. They are both based on the same query condition. When I call the page the report runs and shows the result but the chart shows "no data found" message. After pressing the submit button the chart finaly shows the result. Any clues what the problem could be? Can I create a process that would submit the page when I open it? Eventually only once per session?
This is a funny behavior. It occurs only sometimes. I am not able to reproduce it by will.
Denes KubicekHello Flavio,
I know why this happened in my case - I added an additional condition using a page item as a bind variable to my ...WHERE... statement. This item had a default value.
After that the chart showed no data found but everything else worked fine. As soon as I comment out that condition (I have plenty of similar conditions in that statement and they work), the chart would show as expected. It was like the chart select statement would see the item empty (NULL) but the report using the same conditions would find the default value in it.... after submitting the page, it worked fine for the rest of the session.
Just now, I added a computation process for that page item, to set it on a static value (the same I had as the default value) - On Load Before Header. I also added a condition to it to fire only if the value of the item is NULL, to avoid unnecessary processing. After this my chart showed what was expected.....
I am sure your problem is of a similar nature. You need to check your select statement I suppose.
Denes Kubicek -
Problems with date in stacked bar charts
I am having a lot of problems trying to generate stacked bar charts where one of the fields is a date. Using the chart generator in word, the stacked bar charts work perfectly if I use (for example) Labels=Country, Series=Product, Values=Quantity(Sum) . The correct quantities are shown.
However if I change Country to Expiry (date), the quantities are all wrong ? Such that I have no idea how it is obtaining the values.
The generated code is :
<Graph depthAngle="50" depthRadius="8" pieDepth="30" pieTilt="20"
seriesEffect="SE_AUTO_GRADIENT" graphType="BAR_VERT_STACK">
<Title text="" visible="true" horizontalAlignment="CENTER"/>
<LocalGridData colCount="{count(xdoxslt:group(.//G_MED, 'EXPIRY'))}"
rowCount="{count(xdoxslt:group(.//G_MED, 'PRODUCT'))}">
<RowLabels>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
select=".//G_MED" group-by="PRODUCT">
<Label>
<xsl:value-of select="current-group()/PRODUCT"/>
</Label>
</xsl:for-each-group>
</RowLabels>
<ColLabels>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
select=".//G_MED" group-by="EXPIRY">
<Label>
<xsl:value-of select="current-group()/EXPIRY"/>
</Label>
</xsl:for-each-group>
</ColLabels>
<DataValues>
<xsl:for-each-group xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
select=".//G_MED" group-by="PRODUCT">
<RowData>
<xsl:for-each-group select="current-group()" group-by="EXPIRY">
<Cell>
<xsl:value-of select="sum(current-group()/QUANTITY)"/>
</Cell>
</xsl:for-each-group>
</RowData>
</xsl:for-each-group>
</DataValues>
</LocalGridData>
</Graph>Any help would be greatly appreciated !
Cheers,
BrentThank you all for your replies so far:
@Alex: You are right, using your short script in sqlplus gives me also 2009 as result
So, I am now posting the essential excerpts of the procedure because the whole one is to large:
function insert_szrl (my_fremd_name varchar, my_elementadresse varchar,
my_zeitstempel varchar, my_wert float,
my_status varchar, my_zyklus varchar,
my_offset integer,
my_quelle varchar, my_nzm_daten integer) return integer is
begin
my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
if my_zyklus = 'mm' then
my_zeitstempeldate := add_months(to_date(last_day(to_date(my_date, 'dd.mm.yyyy')), 'dd.mm.yyyy'),-1) +1 + (my_tageswechsel+1/24);
my_days := to_date(last_day(to_date(my_date, 'dd.mm.yyyy')), 'dd.mm.yyyy') - add_months(to_date(last_day(to_date(my_date, 'dd.mm.yyyy')), 'dd.mm.yyyy'),-1);
my_year := to_number(to_char(to_date(my_date,'dd.mm.yyyy'), 'yyyy'));
ptime.umschalttage_tuned (my_year, my_ws, my_sw);
end if;
While debugging the complete procedure I see since the start only a date which looks like '01.04.2009 07:00:00'
Edited by: user10994305 on 19.05.2009 15:58
Edited by: user10994305 on 19.05.2009 15:58 -
SSRS Stacked Bar Chart Smart Label Problem
I have a SSRS 2008 Stacked Bar Chart. When the bar values are close then the Series labels often merge and overlap making the value unreadable. I have set the properties so that Smart Labels AllowOutSidePlotArea is true, NoMoveDirections Right = False etc.
but they still overlap.
How do I set so that the values are plotted in a readable manner?
ThanksHi CDG100,
According to your description, it seems that the issue which you occurred is that series label got overlapped when there are some sections with small value in the bar. If in this scenario, there are several properties you can use to try to get the labels
to fit better. The SSRS 2008 charts contain a feature called smart labels, and we expose a lot of options that control their behavior. Here are some properties that may help. First, select the data point, then go to the SmartLabels node in the property grid.
Expand the "NoMoveDirections" node. This will give you set of directions that you can use to restrict the directions that the labels can move in. You can try to change directions to see if it helps.
You can remove the CallOutLine by setting the CallOutStyle to None and the CallOutLineAnchor to None. You can also change their widths or their styles to see if that helps.
If the issue is still existed, we can try to set the horizontal axis interval to a small one. This will make the lower values big enough to display the label. However, it will make your chart really tall for the ones with high values.
Another possibility is to use Tooltip instead of actually displaying. Type a same expression with Value field in the Tooltip property.
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Problem with stacked bar chart label
Hi,
According to page export sql file I'm using APEX version 2.0.0.00.49.
I'm trying to make stacked bar chart but no matter what I do I can't have series label to be displayed within the chart area.
Is it a bug fixed in a latter version of APEX ? Is there something particular to do (for example an option to thick) to have them displayed ?
thank you for help.The answer is yes there is something particular to do.
If you want your stacked bar chart to display well all series have to be the same and not null.
So you must write outer joined queries with nvl in the select.
Maybe you are looking for
-
Hi Sharepoint foundation 2013: why when we open an excel or word using chrome and firefox browser it wants to download the file. It can be opened in browser using IE but not in firefox or chrome? Any issues? Thanks
-
Can't update to windows 7.8
I've been having trouble updating my Lumia 800 (Windows 7.5) to the latest update. It always reaches "Step 9 of 10 : restarting your phone ... " and it never finishes. It will then freeze with the nokia logo on the screen. I always have to restore it
-
How to I get iCal/iCloud to retain old events?
I've just switched over to icloud. I thought I had it all setup, but when I went to look at an event that occurred last year (to check the date), it was gone! In fact, everthing older than a couple of months is missing. My life is in that calendar. H
-
Lightroom 5 is not on my Mac but appears to be installed in Creative Cloud
Lightroom 5 is not on my Mac but appears to be installed in Creative Cloud :-(
-
I don't know how to use these methods. actionPerformed, additem, and remov
cand any one help me to implement these actions. I want to be able to select item from the the list to the textarea by using the addit button. import java.awt.*; import java.applet.Applet; import java.awt.event.*; public class Shopping extends Applet