Working with column chart
Hi ,
I want to draw column chart with dataProvider as Array
Collection .It is fine.But dataProvider Array collection has
objects with type A and Type B.How can i draw chart with type A
objects and TypeB objects seperately by switching from combo box
control.
Regards,
Krishna
Use a filter function on the array collection.
myArrayCol.filterfunction = isTypeA;
myArrayCol.refresh( );
Similar Messages
-
Hi all.. Am working with Column chart, and am having uneven data with which i need to come out with coumn chart.
code is give below..
<?xml version="1.0"?>
<!-- Simple example to demonstrate the ColumnChart and BarChart controls. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:custom="components.*">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var medalsAC:ArrayCollection = new ArrayCollection( [
{ Country: "USA", Gold: 35},
{ Country: "China", Silver:17},
{ Country: "Russia", Bronze: 14} ]);
]]>
</mx:Script>
<!-- Define custom colors for use as fills. -->
<mx:SolidColor id="sc1" color="yellow" alpha=".8"/>
<mx:SolidColor id="sc2" color="0xCCCCCC" alpha=".6"/>
<mx:SolidColor id="sc3" color="0xFFCC66" alpha=".6"/>
<!-- Define custom Strokes for the columns. -->
<mx:Stroke id="s1" color="yellow" weight="2"/>
<mx:Stroke id="s2" color="0xCCCCCC" weight="2"/>
<mx:Stroke id="s3" color="0xFFCC66" weight="2"/>
<mx:Panel title="ColumnChart and BarChart Controls Example"
height="100%" width="100%" layout="horizontal">
<mx:ColumnChart id="column"
height="100%"
width="100%"
paddingLeft="5"
paddingRight="5"
showDataTips="true"
dataProvider="{medalsAC}"
>
<mx:horizontalAxis>
<mx:CategoryAxis categoryField="Country"/>
</mx:horizontalAxis>
<mx:series>
<custom:extended
xField="Country"
yField="Gold"
displayName="Gold"
fill="{sc1}"
stroke="{s1}"/>
<custom:extended
xField="Country"
yField="Silver"
displayName="Silver"
fill="{sc2}"
stroke="{s2}"/>
<custom:extended
xField="Country"
yField="Bronze"
displayName="Bronze"
fill="{sc3}"
stroke="{s3}"/>
</mx:series>
</mx:ColumnChart>
<mx:Legend dataProvider="{column}"/>
</mx:Panel>
</mx:Application>
as per code... its showing graph as
If u notice the chart in each series, as there no proper data.. its showing that empty gap as per the order of column series created..
In array collection, in each object we are missing some value.
Any idea ow to remove this gap.. How to remove those empty spaces....
Thanks & Regards
PratapHi ramesh,
check out my edited version of Chandrashekhar Mahajan's fiddle
http://jsbin.com/jetoz/1/edit
Chandra was trying to create a new Dialog everytime which i've modified & chart inside a popup is a known issue which has been mentioned by SAP UI5 in Notes section. You can do a workaround by manually rerender() or setTimeout()
Regards
Sakthivel -
Need help to develop report with column chart
Hi
I am new to SAP BO world.Could anyone please help me to design report with column chart.Please guide me how to develop report for the following requirement.I am not aware of variance columns and variance labels.Please provide some guidance or some tutorials(for column Chart) so that I can complete the task. Please reply me as soon as possible.Waiting for reply.Thanks in advance.
Type: Column Chart
u2022 Rows: Banking Asset Margin (%)
u2022 Start / End Columns: PY YTD Act(Prior year year to date); CY YTD Act(Current year Year to date)
u2022 Variance Columns: # Var (CY-PY Act) for GOLM; Volume; Rate; Non Banking NII; Banking Volatility in NII; Banking Volatility in OOI; Fees/One Offs/Other; Volatile Items; Sophie
u2022 Sub-total columns: PY YTD Underlying; CY YTD Underlying.
u2022 Variance Labels: % Var (CY-PY Act) for Total Income and Underlying Income
u2022 Sub-Total Labels: # Var (CY-PY Act) for Net Insurance Income; Banking Volatility; Other Operating Income
Additional information
u2022 Variance columns (bar) colours: Red = Adverse to Prior Year; Green = Favourable to Prior Year
u2022 Columns to show values. Adverse values to be shown in red text in brackets. Favourable results in black text.
u2022 All values in Black, but adverse to be shown below the bar.Hi,
This type of question is almost impossible to answer over a forum .
You need to work with your business to understand what these requirements mean in terms of data modelling and relationships between object entities.
- Some of these metrics should be delegated to source, and calculated in the update routines to your datatargets (aka Cubes/Tables)
- Others could be resolved in the semantic layer (Universe)
- Other will be calculated in the presentation layer as local formulae or variables.
whilst BusinessObjects is a fairly intuitive tool, it may be unreasonble to expect a new learner to deliver an advanced report with conditional formatting.
Regards,
H -
Accordion Menu with Column Chart
Dear All,
I have an accordion menu and a column chart showing monthly precipitation and on the graph I would like to add average points
at the same time I would like to have the "average" title not showing in the menu.
Any way to handle with it?
Many thanks.
Ed.http://www.forumtopics.com/busobj/viewtopic.php?p=409617&sid=1c39299fa51bb66c8f792a3bf69c606a
http://www.qnasap.com/accordion-menu-with-column-chart/
If u r question get answered try to close the thread
Thank u
Naveen -
Multiple Line Charts with Column Chart
I want to show two line charts with a column chart. Everything goes on the screen fine, except the two line charts origination point always starts at the same point despite the numbers being different. For example, the ls1 might read 280, 190, 180 and the ls2 is 175, 188, 177 but both origination points start at 280. The other two datapoints should also be close together but they have a substantial gap of about 50 between them. Obviosuly I want to have two separate lines. I have also tried moving the line series below the first lines series with no success.
<mx:ColumnChart dataTipFunction="formatDataTip"id="
myChart" dataProvider="
{FCVData}" showDataTips="
true"selectionMode="
single"change="event.stopImmediatePropagation()"
width="
100%" height="95%" y="50">
<!-- vertical axis -->
<mx:verticalAxis>
<mx:LinearAxis title="mytitle" labelFunction="defineVerticalLabel"id="
v1"baseAtZero="
true" />
</mx:verticalAxis>
<mx:horizontalAxis>
<mx:CategoryAxis dataProvider="
{MYData}" categoryField="
YEAR"
/>
</mx:horizontalAxis>
<mx:series>
<mx:ColumnSeries id="
pb"color="
#FFFFFF"xField="
YEAR" yField="B
UDGET" displayName="
Budget"hideDataEffect="
zoomOut" showDataEffect="
zoomIn">
<mx:fill>
<mx:SolidColor color="{colColor1}"/>
</mx:fill>
</mx:ColumnSeries>
<mx:LineSeries id="ls2" dataProvider="
{MYData}" yField="
ACTUAL"displayName="
Actual"
>
<mx:itemRenderer>
<mx:Component>
<mx:DiamondItemRenderer/>
</mx:Component>
</mx:itemRenderer>
<mx:lineStroke>
<mx:Stroke color="
{lineColor2}" weight="
5" alpha="
.5"
/>
</mx:lineStroke>
<mx:verticalAxis>
<mx:LinearAxis id="v3" baseAtZero="true"/>
</mx:verticalAxis>
</mx:LineSeries>
<mx:ColumnSeries
id="
asytd"color="
#FFFFFF"xField="
YEAR" yField="
SPEND" displayName="
Spend "hideDataEffect="
zoomOut" showDataEffect="
zoomIn">
<mx:fill>
<mx:SolidColor color="{colColor2}"/>
</mx:fill>
</mx:ColumnSeries>
<mx:LineSeries id="ls1" dataProvider="
{MYData}" yField="
PLAN"displayName="
Plan"
>
<mx:itemRenderer>
<mx:Component>
<mx:CrossItemRenderer/>
</mx:Component>
</mx:itemRenderer>
<mx:lineStroke>
<mx:Stroke color="
{lineColor1}" weight="
5" alpha="
.5"
/>
</mx:lineStroke>
<mx:verticalAxis>
<mx:LinearAxis title="title" id="v2" baseAtZero="true"/>
</mx:verticalAxis>
</mx:LineSeries>
</mx:series>
<mx:verticalAxisRenderers>
<mx:AxisRenderer placement="left" axis="{v1}"/>
<mx:AxisRenderer placement="right" axis="{v2}"/>
<mx:AxisRenderer visible="false" placement="right" axis="{v3}"/>
</mx:verticalAxisRenderers>
</mx:ColumnChart>Hi,
Still Trying:
I've now got this code to function:
var i:int = 0;
for each (var cat:* in event.result.chart.categories.category){
//mx.controls.Alert.show(cat.label);
var z:int = 0;
for each (var valuee:* in event.result.chart.dataset){
//mx.controls.Alert.show(event.result.chart.dataset[z].seriesName);
//mx.controls.Alert.show(valuee.sete[i].value);
z++;
i++
which works fine, how can I get in into Array to make a dataset for the flex charts?
Thanks,
Elad -
Conditional formatting doesn't work with scatter chart
Hi,
I am working on OBIEE 11g(11.1.1.7.0) and trying to create scatter chart with conditional formatting. But this is giving issue and conditions are not getting applied.
suppose I have take columns "product numer","product","office","product type","Revenue" & "Actual unit price"
I created the scatter chart using above columns and applied below conditions.
if revenue is equal to/ is in 1080 then color is yellow
if revenue is less than 1080 then color is blue
if revenue is greater than 1080 then color is red.
After applying all the condition, 1st condition is not getting applied. All the charts are showing blue and red color only.
Anyone have any idea about this issue?
Thanks
Krishnalooks like it is bug in 11.1.1.6.2 which is not fixed in 11.1.1.7.0
Bug 14286482
I tried it locally with 11.1.1.7.0 on dimension column the condition filter is applying but not on measures !
thanks,
Saichand -
How to work with columns in CSV
How do i get the expected result form the existing data?and also i need to compare column a and d and place the resule in new column, the CSV file has more than 100000 Row.
Existing Data:
name
path
home
gk
\\ts
\\ts\gk
gjk
\\ts
\\ts\gjk
kfdk
\\ts
\\ts\kfdk
agtrf
\\ts
\\ts\agtrf
Expected Result:
name
path
home
Folder
gk1
\\ts
\\ts\gk~
gk~
gjk3
\\ts
\\ts\gjk
gjk
kfdk
\\ts
\\ts\kfdk
kfdk
agtrf
\\ts
\\ts\agtrf
agtrfAs I said earlier, it doesn't work because there is no folder component in the UNC paths in the "home" column.
A UNC path is \\Server\Share followed by the folder\file path within that share.
What you have there labeled "Folder" is actually a share name, which may or may not be the name of the folder being shared. What the OP requested after you posted the initial solution was how to split the folder name off of a \\server\share\folder
unc path.
I agree the split is faster. Based on that timing it will take the split-path method about 88 seconds go through 100K records, where the split method will take about 7 seconds.
But I'm willing to bet there's a lot more than that minute and change difference in the time it took to write those two scripts.
FWIW, for processing large text files you can usually get better results if you can leverage Get-Content with a ReadCount of 1-2000 files, and then use -replace as an array operator to do the text manipulation. This reduces your disk I/O operations
by a factor of -ReadCount while keeping memory utilization under control:
"gk","\\ts","\\ts\gk"
"gjk","\\ts","\\ts\gjk"
"kfdk","\\ts","\\ts\kfdk"
"agtrf,"\\ts","\\ts\agtrf"
'@ *25000).split("`n") |% {$_.trim()} | ac testfile.csv
$OldCsvPath = 'testfile.csv'
$NewCsvPath = 'testfile2.csv'
(measure-command {
$NotFirst = $false
get-content $OldCsvPath -ReadCount 1000 |
foreach {
if ($NotFirst) { $_ -replace '\\([^\\"]+")\s*$','\$1,"$1' }
else { $_ -replace '"home"\s*$','"home","folder"' -replace '\\([^\\"]+")\s*$','\$1,"$1' }
} | set-content $NewCsvPath
}).TotalSeconds
'*'*20
Get-Content $NewCsvPath -TotalCount 10
2.3213534
"name","path","home","folder"
"gk","\\ts","\\ts\gk","gk"
"gjk","\\ts","\\ts\gjk","gjk"
"kfdk","\\ts","\\ts\kfdk","kfdk"
"agtrf,"\\ts","\\ts\agtrf","agtrf"
"gk","\\ts","\\ts\gk","gk"
"gjk","\\ts","\\ts\gjk","gjk"
"kfdk","\\ts","\\ts\kfdk","kfdk"
"agtrf,"\\ts","\\ts\agtrf","agtrf"
"gk","\\ts","\\ts\gk","gk"
That's 2.3 seconds for the whole 100,000 rows.
[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " " -
Mouse Move on the column Chart
Hi all visitors
I have created one crystal report and in my report i have created one column chart.
but i don't show the value on the column chart,however, when i move mouse on that column chart,
it will show the value.but in crystal report server,when i move the mouse on the column, it doesn't show the value like crystal report.
Anyone know about this how to show the value on the column when mouse move in crystal report server?
Please help me for this.
Best Regards,Unfortunate Tool tip doesn't work with CR Charts.
Probably there may be some trick that will configure to achieve. But I didn't came across till now. -
I'm working with this chart now and I would want to know if is possible when user pass the mouse in a bubble show legend and not the value... Is possible to do this???
Thank you!!Have a look here:
http://obiee101.blogspot.com/2008/01/obiee-xy-and-data-in-mouse-over-label.html
regards
John
http://obiee101.blogspot.com -
How to display labels ( vertically) in a column Chart
Hi,
As per my requirement I want to show labels inside the column charts & they must be aligned verically
say ABC is id i want display i want A
B
C
I have tried with Column Charts properties like showvertically =" true" & extendLabelToEnd="true".But i am not getting them vertically aligned .Is that something else also must be done.
Regards
Kalavati singh
[email protected]Take a look at this blog: http://gerardnico.com/wiki/dat/obiee/presentation_variable
Try it out by providing a default format.
Thanks,
BIPuser -
Hi there.
I have problem with column chart that is every time I added a
line seriese,
preexistent columns getting smaller.
How do I fix it?Adobe Newsbot hopes that the following resources helps you.
NewsBot is experimental and any feedback (reply to this post) on
its utility will be appreciated:
Flex 3 - Defining axis labels:
In that function, Flex appends '07 to the axis labels, and
displays the labels .... <mx:LineSeries yField='5' form='curve'
displayName='5%'/> <mx:LineSeries
Link:
http://livedocs.adobe.com/flex/3/html/charts_displayingdata_06.html
Flex Charting: help on showing line series based on list box:
Jan 26, 2007 ... 1002 & 1003, basically, in 3 different
line series, its not coming, hence would appreciate any help in
this. im posting the code & xml
Link:
http://www.actionscript.org/forums/showthread.php3?t=126863
Alternating background column colors in a Flex LineSeries
chart at:
In this example, you also see examples of setting custom
label functions for a LinearAxis ... xmlns:mx='
http://www.adobe.com/2006/mxml'
layout='vertical'
Link:
http://blog.flexexamples.com/2007/11/19/alternating-background-column-colors-in-a-flex-lin eseries-chart/
Flex Monkey Patches Blog Archive Flex Charting Interactive
Legend:
Sep 6, 2007 ... <mx:Application xmlns:mx='
http://www.adobe.com/2006/mxml'>
... var lineSer:LineSeries = findSeries(event.item.label);
Link:
http://blog.flexmonkeypatches.com/2007/09/06/flex-charting-interactive-legend/
Removing the default drop shadow from a LineChart chart in
Flex at:
Hi, how can the shadow be removed programmatically from a
lineseries? ... xmlns:mx=http://www.adobe.com/2006/mxml
layout=vertical verticalAlign=middle
Link:
http://blog.flexexamples.com/2007/11/13/removing-the-default-drop-shadow-from-a-linechart- chart-in-flex/
mx.charts.series.LineSeries (Flex 2.0.1 Language Reference):
Specifies whether this component is included in the layout of
the parent container. ...... If null , the LineSeries assumes the
data provider is an Array of
Link:
http://livedocs.adobe.com/flex/201/langref/mx/charts/series/LineSeries.html
Disclaimer: This response is generated automatically by the
Adobe NewsBot based on Adobe
Community
Engine. -
I am working on a chart in pages with 7 columns.
Problem has occurred with amount of rows. I have completed 999 rows and it won't allow me to continue. As I need to do approx 3000+ rows, can anyone explain to me how to add extra rows. Thanks JaneTry posting in the Pages forum
https://discussions.apple.com/community/iwork/pages -
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. -
Column chart with null data items
I have a Column Chart with an ArrayCollection data provider.
The data will sometimes have missing items in some "rows'. For
example, it might look like this where the second object has no
"Male" property:
public var myData:ArrayCollection = new ArrayCollection([
{School: "Priorford", All: 95, Male: 92, Female: 98},
{School: "Giffnock", All: 87, Female: 89},
{School: "Hastings", All: 80, Male: 78, Female: 82}
Sometimes I get the following error:
TypeError: Error #1009: Cannot access a property or method of
a null object
reference.
at mx.charts.chartClasses::NumericAxis/mapCache()
I'm assuming the error is because of missing data items, but
I'm not 100% sure. Some data sets with missing items will display
with no error. I can't see a pattern to those that don't.
-- I can't produce the error when using a "static" data
source set in the Flex app itself (such as the example above).
These always display correctly, even with missing items.
-- In the problem case, the source data comes from a MySQL
database through a PHP script that is called with a Flex
httpService. The returned data is parsed in Flex, and put into the
ArrayCollection. I was suspecting that the returned data was flawed
in some way, but the same ArrayCollection displays correctly in a
DataGrid. The problem is only with the Chart.
-- I can work round the problem by adding the missing
properties and setting them to an empty value. But I don't think I
should have to do this.
Has anyone seen this problem, or know of any obvious thing I
might be doing wrong.Thanks Arthur.
Your first suggestion is effectively what I'm doing as a
workaround. But it is a bit of a pain to have to account for this
each time when displaying a chart. It's a particular problem when
you don't know in advance what "categories" might be returned by
the data and that have to be charted.
My biggest concern is that this looks like a bug, and the
fact that it seems to occur intermittently is a bit worrying. (I
also know that eight out of ten reported "bugs" are user error,
which is why I was wondering if anyone else had experienced this.)
About your second suggestion, I think the interpolateValues
property only applies to lineSeries. -
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
Maybe you are looking for
-
Rev. Recog:Field Trans.Type is a required field for G/L account 1000 401016
Dear All, I have encountered with following error while run Revenue Recognition. Error Log Field Trans.Type is a required field for G/L account 1000 401016 Long Text Detail Diagnosis The value for field "Trans.Type" in the interface to Fina
-
Unable to completely install Office Pro 2013 in Windows 8.1
I had Windows 8 on my computer and purchased Office Pro 2013 and tried to install it. It completed part way and then it kept asking me for a password. Then it displayed the Letters and numbers I was to retype and tried that 4 times with no avail. To
-
Why can I not open PDF-files in InDesign CS4?
Hi, Well then, as I wrote in the headline... Why can I not open PDF-files? I get a notification that says that either the file is already open (which it's not) or it is missing a plug-in thingy for this kind of file. So, how do I know which plug-in t
-
Change chart of accounts in Controlling area
Hi all, How can I change the chart of accounts in controlling area? I've already changed chart of accouns in FA CoCode Global data, and I have to change chart of accounts in controlling area; In OKKP chart of accounts is in display mode
-
How to Identify the Same Characters in 2 Different Strings
Hi All, I am requiring a suggestion on how to identify the same characters in 2 different Strings, for example: String str1 = "hello"; String str2 = "llheo"; Both Strings contain the same characters, but in a different order, so what would be the bes