WAD question: fix each chart series to a specific key figure
Hi All,
I hope you can help.
In WAD is it possible to fix each series in a chart to a specific key figure from the data provider (query)?
We need to be able to do this because the opening position of our query has a number of hidden key figures, that are displayed later in navigation.
Without being able to fix the series to key figures, in the opening view some key figures are appearing as columns rather than lines and vice versa.
Thanks and regards
IM
Thanks for your help, Pcrao.
My scenario is:
I have 15 key figures in the columns of my query (data provider).
The first 12 of these KFs are to be displayed as bars (columns) and the last 3 as lines in the chart of my web query.
I can set this no problem in WAD.
But my problem is that because a number of my key figures are set as hide in the query designer (to be unhidden later in navigation) the last three KF's are displaying (incorrectly) as bars until I unhide all KF's in the navigation.
In other words, it seems to me that I need to fix each series in the chart editing to a specific key figure. But I don't know how.
Thanks again and regards
IM
Similar Messages
-
Need EXPERT's suggestion for APEX CHART SERIES
Hello Everyone,
I have been trying to solve an issue with my apex line chart. The scenario is as follows:
I have a table called revenue. revenues per year are saved in it. and revenues are generated from three sources which are also saved in the same table.
I have made a line chart on it. works well.
Now I have to show that if the value of one of the sources had fallen, how must have it affected the total. I made a number field that takes an estimated change value, and build my sql query with it. it works but the problem is that it changes the non-affected source too. it must change the value of the affected source only and hence the total value.
I hope I make sense and anybody can suggest something.
bold or I will put it this way, how can I write a select statement for a chart series so that one of the rows value does not change and the other two change. ... ?
Edited by: Samooray92 on May 30, 2013 2:41 PMSamooray,
Let's work with this question since there is more detail here than in the other one. {thread:id=2543702}
First it's always help to know:
Full APEX version
Full DB/version/edition/host OS
Web server architecture (EPG, OHS or APEX listener/host OS)
Browser(s) and version(s) used
And sometimes this information as well.
Theme
Template(s)
Region/item type(s)
When a question goes unanswered for a while, there is no need to reply to it or to start a new question. You can edit the original question and just add "Bump" at the bottom and save the changes. This will bump it back to the top of the question list. And by that time, you might think of additional information you can add to the question.
Say, why would a question go unanswered? Well, easy questions and frequently asked questions with well-known answers can be answered right away. Your question seems more complicated and I don't think we have all the information we need to understand exactly what the question is.
You are doing a "series" chart. What kind of series chart: bar, column, line? What is each series? For example, components of revenue might be 1) sales, 2) licensing revenue and 3) other. Then you might have one series for sales, a second for licensing revenue and a third for other.
Could you mock up a trivial example on apex.oracle.com http://apex.oracle.com/pls/apex/f?p=4700:1:0::::: ?
Regards,
Howard -
Single Chart Series with multiple color data points
I am developing an application using the flex chart component
and I am binding data to 3 different chart series which is pretty
intense processing. I was wondering can I use only one chart series
and when I bind the data points just to change the color per data
point which meet certain criteria?
Here one method from my application where I am dynamically
binding data to my series.
private function loadSeries(data:XMLList, yAxis:String):void
seriesAdd.yField = yAxis;
seriesAdd.xField = "Date";
//seriesDelete.yField = yAxis;
//seriesDelete.xField = "Date";
//seriesChange.yField = yAxis;
//seriesChange.xField = "Date";
seriesAdd.dataProvider = data.Trade.(A == 'Add');
seriesAdd.//Can I change the color per each data point if I
have multiple data sets?
//seriesDelete.dataProvider = data.Trade.(A == 'Delete');
//seriesChange.dataProvider = data.Trade.(A == 'Change');
Thank youI think I found something to get me started:
http://livedocs.adobe.com/flex/3/html/help.html?content=charts_displayingdata_09.html
My next question is if I have the following function to fill
my data points:\
private function myFillFunction(element:ChartItem,
index:Number):IFill {
var c:SolidColor = new SolidColor(0x00CC00);
var item:ColumnSeriesItem = ColumnSeriesItem(element);
var sales:Number = Number(item.yValue);
if (sales >= 50000) {
return c;
} else {
// They have not met their goal.
c.color = 0xFF0000;
return c;
How can I access values that pertain to the specific chart
item, but are not plotted on the x and y axis. Something similar to
the checking on the above function, but check if value that is not
plotted but still exists on the data provider.
Thanks in advance. -
No longer able to access the "Advanced" options via the Inspector Chart Series Advanced sequence
In iWorks9 Numbers in attempting to add trendline to a line chart I am suddenly no longer able to access the options under "Advanced" via the Click On Chart Line>Inspector>Chart>Series>Advanced sequence because the triangle button adjacent to Advanced is not highlighted and does not open up when clicked upon. Ideas?
well ... I spent some time this afternoon repairing disk permissions, checking application preferences, etc. and don't think I found anything directly related to this problem but after a few hours I returned to Numbers and lo and behold something changed and everything is working fine ... and I have no idea what was the cause and what was the fix but I'll take it. Heisenberg was right.
-
Possible to use formulas in chart series data?
Hello, I need to build chart series from manual values. This is possible but Excel accepts only raw values. When I try to use a calculated value, excel rejects the series format.
=SERIES("Supply";(Sheet1!$A$97;Sheet1!$H$47);(Sheet3!$B$10;Sheet3!$B$10);4)
is accepted. I need to adjust it to something like
=SERIES("Supply";(DATEVALUE("31.12.2014");MAX(Sheet1!A:A;Sheet1!H:H));(Sheet3!$B$10/365;Sheet3!$B$10/365);4)
this however doesn't fit. Does Excel provide a format for inline evaluating without need to use auxiliary cells?It is not possible to evaluate formulas within a Series formula. You can use Names to calculate individual values from formulas, return an array of values or use a dynamic Name to return an array of cells and use Names in Series formulas.
However for your purposes I don't think even use of Names would help; from your first example your formulas return multiple cell areas (albeit only one cell in each area) and your second example aims to return an array with each formulas calculating each
element, you'd need a Name of Names which I don't think would work.
Even if you could do it the way you want I think it would be a bad approach. Why not make use of cells, there's no shortage of them and it would make things much easier for maintenance.
-
Chart series name from SELECT event
Hi all, how can I get the name of the chart series when I click on it (SELECT event)? is this possible?
Thanks in advanceHi
If you place curser on the chart on the required 'Data series' you will get data series name also you will get the values of the field on the category access. Is this what you want? If you want to drilldown the 'data series' through 'select' event then it is not possible, it will pass the value of the field which is on category axis. Even though you want to do this, you have to create 'Radio Button or Dropdown etc for each 'Data series'. Then create separate chart for each series place them one over the other. BAsed on radio button (or Dropdown) create visibility condition to display required data series. by doing this you will get the same effect.
If you are looking for anything else then please elaborate your requirement.
Regards
Sandeep -
Please suggest how can we place chart series label evenly in Pie Chart of SSRS 2008
Could you please suggest how can we place chart series label value evenly so that it doesnot overlap with each other and user can view the data properly.
Please find the attached screenshot for the same.Hi SubhadipRoy,
As Satish posted, the solution can achieve your goal. In addition, you can right click the Chart Series Labels and Series Label Properties, and then select Number in the left pane, finally select Scientific below the Category option. The data label may not
overlay. Or you can enlarge the chart.
Regards,
Heidi Duan
Heidi Duan
TechNet Community Support -
Hi to all,
i have a question about excel chart.
I have created a simple query based on a simple infocube that read data from 2lis_11_vaitm infosource.
I know that i can create charts after run the queryNow the problem. The chart, is created with a user input (push the relative button on the bex toolbar). But if i close (no simply refresh) the query and i run it again, i loose the chart and i do same steps to recreate the chart again. I would like to have this chart automatically draw without user interaction.
The query is a "simple" type (not a web template). Is it possible to do that? In witch way?
Good answers/solutions will surely rewarded
Thx a lot
AndreaHi Andrea,
You did not say if Gupta's response solved your problem. If it did, do not read any further.
If not ... I think I understand your problem. I have seen this happen many times. For some charts, refreshing the query destroys the chart. For some other charts, drilling down and then drilling back up destroys the charts.
In these cases, the best solution is what you suggest ... automatically draw the chart each time that the query is refreshed. How to do that? With VBA.
First thing to do is to open the VB Editor (Alt+F11) from Excel. Next locate the Subroutine named SAPBEXonRefresh. If this is a problem, see earlier postings by me in which I explain this in detail.
Re: Where are the BEx variable stored
BW will run this subroutine every time that a query refreshes. So, you can call your chart-drawing subroutine from this subroutine. If there is more than 1 query in the workbook, you use the local queryID ("SAPBEXq000?") to only call the chart-drawing subroutine when the appropriate query is refreshed.
- Pete -
How to customize line chart series and symbols?
Hello Forum,
who can help me to customize line chart series and symbols color?
I need to customize this in dynamic way.
Thanks in advanced.See example 8-10 (Example 8-10 Changing Chart Symbol Color) from http://docs.oracle.com/javafx/2.0/charts/css-styles.htm#CIHGIAGE (reproduced here).
The linked tutorial document contains a picture of how this example renders.
.chart-series-line {
-fx-stroke-width: 2px;
-fx-effect: null;
.default-color0.chart-series-line { -fx-stroke: #e9967a; }
.default-color1.chart-series-line { -fx-stroke: #f0e68c; }
.default-color2.chart-series-line { -fx-stroke: #dda0dd; }
.default-color0.chart-line-symbol { -fx-background-color: #e9967a, white; }
.default-color1.chart-line-symbol { -fx-background-color: #f0e68c, white; }
.default-color2.chart-line-symbol { -fx-background-color: #dda0dd, white; }Note the two comma separated colors listed for each -fx-background-color for the chart-line-symbol.
The first color is the color or the outside of the symbol, the second is the inside of the symbol.
In the sample css you provided you only supply a single background color for the chart-line-symbol, when two colors are required. -
Change color in chart series (Chart Controls)?
Does anyone know if it's possible to change the color within a series in Microsoft Chart Controls? My data is X = test time and Y = response time using a column graph. Currently when the test to collect response time fails it does not
record a numerical value and when graphed it appears as though the response time was minimal. I want to make it stand out when a failure occurs, for example to draw a large column and change the color to red (other values are in blue).
I don't have much experience using Chart Controls yet. I know you can use an alternate color with a different series of data but it doesn't appear you can change it from within.
This is my chart series (when a test fails, the response matches "" and not $NULL):
[void]$chart1.Series.Add("ResponseTime")
$chart1.Series["ResponseTime"].ChartType = "Line"
$chart1.Series["ResponseTime"].BorderWidth = 1
$chart1.Series["ResponseTime"].IsVisibleInLegend = $true
$chart1.Series["ResponseTime"].chartarea = "ChartArea1"
$chart1.Series["ResponseTime"].color = "#0404B4"
$DATA | ForEach-Object {
If ($_.RESPONSE_MS -eq "") {
$chart1.Series["ResponseTime"].Points.addxy("FAIL",9999)
Else {
$chart1.Series["ResponseTime"].Points.addxy( $_.TIME.Remove(5) , ($_.RESPONSE_MS)) }
I tried changing the color within the if/else but the first .color value it picks up will be used throughout.Hi Tickermcse76,
To create a new line chart, please refer to this script:
function New-Chart
param ([int]$width,[int]$height,[int]$left,[int]$top,$chartTitle)
# create chart object
$global:Chart = New-object System.Windows.Forms.DataVisualization.Charting.Chart
$global:Chart.Width = $width
$global:Chart.Height = $height
$global:Chart.Left = $left
$global:Chart.Top = $top
# create a chartarea to draw on and add to chart
$chartArea = New-Object System.Windows.Forms.DataVisualization.Charting.ChartArea
$global:chart.ChartAreas.Add($chartArea)
[void]$global:Chart.Titles.Add($chartTitle)
# change chart area colour
$global:Chart.BackColor = [System.Drawing.Color]::Transparent
} #New-Chart
New-Chart -width $width -height $height -left $left -top $top -chartTile $chartTitle
[void]$global:Chart.Series.Add("Data")
# $global:Chart.Series["Data"].Points.AddXY($(get-date), $($ht.Values))
$global:Chart.Series["Data"].Points.DataBindXY($ht.Keys,$ht.Values)
#$global:Chart.Series["Data"].XValueType = [System.Windows.Forms.DataVisualization.Charting.ChartValueType]::Time
#$global:Chart.chartAreas[0].AxisX.LabelStyle.Format = "hh:mm:ss"
#$global:Chart.chartAreas[0].AxisX.LabelStyle.Interval = 1
#$global:Chart.chartAreas[0].AxisX.LabelStyle.IntervalType = [System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType]::Seconds
$global:Chart.Series["Data"].ChartType = [System.Windows.Forms.DataVisualization.Charting.SeriesChartType]::Line
#$global:chart.Series["Data"].IsValueShownAsLabel = $false
Reference from:
http://poshcode.org/1205
To change the chart color, please refer to this script:
Charting with PowerShell
I hope this helps. -
How do I set default colors for XY chart series (lines and legend)
I am implementing a line chart and need to override the default (caspian style) colors for the line colors and the legend symbols. I'm not displaying the chart symbols themselves as that would make the chart look bad. I've been able to successfully set the default colors for the lines via the CSS below, but cannot find a way to do the same for the series symbols that appear in the chart legend. How do I do this? Thanks.
.default-color0.chart-series-line {
-fx-stroke: rgb(0, 102, 255);
.default-color1.chart-series-line {
-fx-stroke: rgb(0, 255, 102);
...Update:
Figured it out. Need to do the following:
.default-color0.chart-line-symbol {
-fx-background-color: rgb(R, G, B);
}Edited by: 998038 on May 16, 2013 4:09 PMHere is some css to customize the line and legend colors in a line chart.
/** file: chart.css
place in same directory as LineChartWithCustomColors.java */
.default-color0.chart-series-line {
-fx-stroke: rgb(0, 102, 255);
.default-color1.chart-series-line {
-fx-stroke: rgb(0, 255, 102);
.default-color0.chart-line-symbol {
-fx-background-color: rgb(0, 102, 255), white;
.default-color1.chart-line-symbol {
-fx-background-color: rgb(0, 255, 102), white;
}And a test harness to try it:
import javafx.application.Application;
import javafx.event.*;
import javafx.scene.Scene;
import javafx.scene.chart.*;
import javafx.scene.control.*;
import javafx.scene.input.*;
import javafx.stage.Stage;
public class LineChartWithCustomColors extends Application {
@Override public void start(final Stage stage) {
stage.setTitle("Line Chart Sample");
//defining the axes
final NumberAxis xAxis = new NumberAxis();
xAxis.setLabel("Number of Month");
final NumberAxis yAxis = new NumberAxis();
//creating the chart
final LineChart<Number,Number> lineChart =
new LineChart<>(xAxis,yAxis);
lineChart.setTitle("Stock Monitoring, 2010");
lineChart.setCreateSymbols(false);
//defining a series
XYChart.Series series = new XYChart.Series();
series.setName("My portfolio");
//populating the series with data
series.getData().setAll(
new XYChart.Data(1, 23),
new XYChart.Data(2, 14),
new XYChart.Data(3, 15),
new XYChart.Data(4, 24),
new XYChart.Data(5, 34),
new XYChart.Data(6, 36),
new XYChart.Data(7, 22),
new XYChart.Data(8, 45),
new XYChart.Data(9, 43),
new XYChart.Data(10, 17),
new XYChart.Data(11, 29),
new XYChart.Data(12, 25)
lineChart.getData().add(series);
//adding a context menu item to the chart
final MenuItem resizeItem = new MenuItem("Resize");
resizeItem.setOnAction(new EventHandler<ActionEvent>() {
@Override public void handle(ActionEvent event) {
System.out.println("Resize requested");
final ContextMenu menu = new ContextMenu(
resizeItem
lineChart.setOnMouseClicked(new EventHandler<MouseEvent>() {
@Override public void handle(MouseEvent event) {
if (MouseButton.SECONDARY.equals(event.getButton())) {
menu.show(stage, event.getScreenX(), event.getScreenY());
Scene scene =
new Scene(
lineChart,800,600
stage.setScene(
scene
stage.show();
scene.getStylesheets().add(
getClass().getResource("chart.css").toExternalForm()
public static void main(String[] args) {
launch(args);
} -
Can anybody explain why a Line chart comprising of more than one Chart Series does not work when building the SQL constructed in PL/SQL ?
The second series is identical apart from the snapshot_ids.
I need to construct like this due to another problem with database links.
I''ve tried to trace this but nothing much is produced, maybe because of the SVG plug-in?
DECLARE q varchar2(1000);
BEGIN
q:='SELECT Snap_Time, Snap_TimeXX, Value
FROM (
SELECT TO_CHAR(S2.SNAP_TIME,''D'') Snap_Time,
TO_CHAR(S2.SNAP_TIME,''D'') Snap_TimeXX,
SUM(S.value) Value
FROM STATS$SYSSTAT S,
STATS$SNAPSHOT S2
WHERE S.SNAP_ID=S2.SNAP_ID
AND S.SNAP_ID between 832 and 859
AND S.INSTANCE_NUMBER=1
AND S.NAME=''execute count''
group by TO_CHAR(S2.SNAP_TIME,''D''))';
RETURN q;
END;Yes it was that problem, but I still have an issue:
How do I set the Flash Chart to use a PL/SQL function in the first place ?
When I try to enter:
"return package.function;" in the Create Region Wizard, I get the following error:
Failed to parse SQL query:
return EXPERT.getFullListSQLByNC
ORA-00900: invalid SQL statement
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). -
Dynamic Chart Series (or equivalent)
Hi Folks.
I am looking to dynamically create chart series queries at runtime.
The data that I am presenting in my chart is stored in APEX collections populated at runtime. The series I need to generate at runtime will effectively pivot the data stored in the collections using the sequence number as the key.
For example, if my page generates two collections at runtime like this...
collection1
Sequence C001 C002 C003
1 AAA 200 300
2 AAA 300 400
3 AAA 400 500
collection2
Sequence C001 C002 C003
1 BBB 500 600
2 BBB 600 700
3 BBB 700 800I would need three series to be generated.
The first series would pick up the C001, C002 & C003 from both collections for sequence 1
The second series for sequence 2
The third series for sequence 3.
Does anyone have an opinion on how I could achieve this dynamically? Some pages may need 10 series, some only two.
Any suggestions appreciated.
Many thanks
Kind regards
Simon GaddSimon,
I think this can help:
http://apex.oracle.com/pls/otn/f?p=31517:222
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------------------ -
Hi!
I want generate svg chart with 3 series basead in database table DR_HPUX_CPU with 5 columns: id (server id), percent_user, percent_idle, percent_system and info_date.
What I Want is view information about CPU percent user, system and idle in the same chart. series query (i create 3 only different in PERCENT_XXX):
SELECT NULL LINK,
data,
valor
FROM
(SELECT DISTINCT
TO_CHAR(info_date,'YYYY-MM-DD HH24:MI') as data,PERCENT_XXX as valor
FROM DR_HPUX_CPU
WHERE ID=6 ORDER BY data DESC)
WHERE ROWNUM < 21
order by data asc
If I have only one series, chart display very well. when i have 3 series chart return error:
SVG Chart error: ORA-20001: line_chart error: ORA-20001: get_data error: ORA-20001: Parse error: ORA-00933: SQL command not properly ended
What's wrong?
Thanks
Avc"Avc"
I think we're going to have to see the other 2 queries. What happens when you try all combinations of 2 queries? What I'm asking is: can you narrow the problem down to 1 query?
Sergio -
Hi,
I have a WAD report and im using another wad template to export my data to excel. I have a INFO web item which is passing all variables used in the report to excel. Now I wud like to pass all variables other than exit variables to excel. Is this possible. Im using the same excel export template in all wad reports and each wad report has diffferent set of variables. So Icant really list out the variables that i need to pass to excel using 1 INFO web item each for 1 variable.Hi Rahul,
InfoField webitem only provides you display options for static/dynamic filters & all/specific variables with/without values. If your customer exit variables return values before display of variable screen, I'm afraid they will show up, else you always have the option to display only variables with values.
--Priya
Maybe you are looking for
-
Error while assignment of Paying Co Code in FBZP
HI friends, I am getting the following error while assigning Paying Co Code in FBZP - Company code 7144 is not permitted as the paying company code Message no. F3063 Diagnosis The paying company code and the company code on whose behalf the payment i
-
When I connect I-phone 4 to MacBook Pro and bring up I-Photo, my newest photos taken with the I-Phone do not automatically appear. This is something new that just started happening in the last 2 days. Usually, everything is transferred and then I
-
Dear Experts, My Equipment BOMs and FL BOMs are not seen in the structure view when gone through IH01 (All relevant check boxes ticked in) Whereas, these are visible when I go through IL03 --> Structure. May kindly share the knowledge to troubleshoot
-
Sqldeveloper and multiple homes - how to force it to use included jdbc
Hello, I'm having a hard time to get Sqldev 1.5 working with a WE8MSWIN1252 database on windows system that has also a 10.2.0.3 home installed. It looks like it's then not using the own jdbc but the 10.2.0.3 thin jdbc found in the Oracle home - runni
-
Hi Gurus's what is the major difference between LSMW, eCATT, BDC. please elaborate more clearly. more over i got a lot of data to upload which is the best to tool to uploads. points will be assigned. <<regards>> <<venkat.>>