Chart Axis Title
When a title is added, Flex selects a title which is oriented
vertically and pointing downward. How can I set the orientation of
the title, for examle, to be 180 degrees rotated?
I don't think you can. But you can use a text box instead of the chart title.
Similar Messages
-
Problem replacing chart axis title with &string. syntax
Apex 4.1.1
Hi,
I am having a problem replacing a chart axis title with substitution syntax &P5_MYFIELD., where P5_MYFIELD is an item with Source Type PL/SQL Function Body:
begin
return web_message.show('LASTNAME', 'dk');
end;
The Item is defined on the same Page as the chart in a different region. I can see that function is working ok, because the return value is displayed in P5_MYFIELD.
There is a second item in an other region on the same page where the source value is defined with substitution syntax &P5_MYFIELD. It also displays the expected value. But when I use the string &P5_MYFIELD. as axis title it is not displayed.
I also defined a field P0_MYFIELD on Page Zero with the same function, when I reference that with &P0_MYFIELD. as axis title on Page 5 the value is displayed correctly. I tried the same with a field on Page 1, &P1_MYFIELD. and it is displayed correctly.
I think, the chart axis title must be substituted before the item P5_MYFIELD is executing the PL/SQL function body to get its value. Can anyone tell me why?
We want to use string substitution syntax to translate all our labels in different languages. I would like to create hidden items with source type PL/SQL function body for all labels on a page and reference these values as label definitions. I would like to place them on the same page as the labels.
Thanks
AnneI started the application again and now also the Items are not displayed, only the message 'Label not defined', so I probably did something wrong with the computation. Why the correct values were shown during the first run, I do not know, maybe i did not logout in between.
Here is the debugging information, but I cannot see any error message:
0.02844 0.00038 Computation point: Before Header 4
0.02881 0.00032 ...Perform computation of item: P5_CYCLE, type=FUNCTION_BODY 4
0.02913 0.00060 ...Performing function body computation 4
0.02973 0.00464 ...Execute Statement: declare function x return varchar2 is begin begin return web_message.show('CYCLE','de'); end; return null; end; begin wwv_flow.g_computation_result_vc := x; end; 4
0.03437 0.00042 ......Result = Wurf 4
0.03479 0.00046 ...Session State: Save "P5_CYCLE" - saving same value: "Wurf" 4
0.03526 0.00027 Processes - point: BEFORE_HEADER 4
0.03553 0.00027 ...close http header 4
0.03580
Edited by: Anne-Marie Rosa on Jun 8, 2012 10:09 AM
Now the correct value is displayed again in the P5_MYFIELD, because I had to set the item source back to PL/SQL Function body, but I am still getting the chart error and the chart is not displayed.
Edited by: Anne-Marie Rosa on Jun 8, 2012 10:17 AM -
Chart axis titles disappearing with image capture
I have the following code which generates a png file from a
UIComponent (a panel with a chart in it). I have two different
methods which are called to generate the image. One is
automatically generated every few minutes, the other generates the
image when a user hits a button to "save" the image. Both generate
the chart fine, except that the automated version cuts the axis
titles off for some reason. What is going on?"Cr99" <[email protected]> wrote in message
news:gklm8k$2d7$[email protected]..
> I've made some progress. If I add this code:
>
> chartPanel.addEventListener(FlexEvent.CREATION_COMPLETE,
imgExport);
>
>
> // method: imgExport (Event)
>
>
> public function imgExport(e:Event):void {
> var cp:ChartPanel = e.currentTarget as ChartPanel;
> captureImg(cp, cp.title);
> }
>
> The axis gets drawn, but only on the INITAL rendering of
the chart
> (obviously). The
addEventListener(FlexEvent.UPDATE_COMPLETE, imgExport)
> does
> not seem to register properly because the chartPanel
doesn't ever get
> updated,
> just the data in the chart element whithin the panel.
How do I get the
> update
> to register as an event as well?
Maybe you need to register for the event on the chart, not
the panel that
creates it. -
Axis titles don't display on cartesian chart
I use Adobe Flex Builder 3 to create charts for use in a
larger web application. Since moving from Flex Builder 2 to Flex
Builder 3, the axis titles are no longer being displayed.
In my mx:Application, I declare an mx:CartesianChart. I
dynamically add ColumnSeries to a ColumnSet based on the contents
of an XML file loaded using a URLRequest. I then add the ColumnSet
as the only element of the chart.series Array. The rest of the
chart (including the legend) displays correctly.
The axes are explicitly defined as part of the
mx:CartesianChart:
<mx:CartesianChart left="{legend.width}" top="30"
right="0" bottom="0" id="chart" dataProvider="{xmlDoc.elements()}"
showDataTips="true" dataTipFunction="formatDataTips">
<mx:verticalAxis>
<mx:LinearAxis id="vAx" autoAdjust="true" title="Dollars"
labelFunction="formatVerticalLabel"/>
</mx:verticalAxis>
<mx:horizontalAxis>
<mx:CategoryAxis id="hAx" categoryField="Year"
title="Year"/>
</mx:horizontalAxis>
<mx:horizontalAxisRenderers>
<mx:AxisRenderer axis="{hAx}" labelRotation="-60"/>
</mx:horizontalAxisRenderers>
</mx:CartesianChart>
Thanks in advance for your help.I've isolated the issue, but I'm not sure if it's a bug or if
something I'm doing wrong. The following simplified version of my
chart application doesn't display the axis titles:
[code]
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Legend dataProvider="{chart}" left="0" top="25"
id="legend"/>
<mx:CartesianChart left="{legend.width}" top="30"
right="0" bottom="0" id="chart">
<mx:verticalAxis>
<mx:LinearAxis title="Dollars"/>
</mx:verticalAxis>
<mx:horizontalAxis>
<mx:CategoryAxis title="Year"/>
</mx:horizontalAxis>
</mx:CartesianChart>
</mx:Application>
[/code]
The following version does:
[code]
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Legend dataProvider="{chart}" left="0" top="25"
id="legend"/>
<mx:CartesianChart left="{0}" top="30" right="0"
bottom="0" id="chart">
<mx:verticalAxis>
<mx:LinearAxis title="Dollars"/>
</mx:verticalAxis>
<mx:horizontalAxis>
<mx:CategoryAxis title="Year"/>
</mx:horizontalAxis>
</mx:CartesianChart>
</mx:Application>
[/code]
The only difference is the left definition for
mx:CartesianChart. When it's defined in terms of the width of the
legend, the axis titles disappear. Is there another way that I
should be displaying my chart using the full span of the
application?
Thanks again for your help. -
OBIEE 11g Pie Chart Settings /Axis titles
Hi,
In OBIEE 11g, it is not possible to change the Axis titles in a pie chart.
Does anyone know how to change it in the xml file?
Any feedback is highly appreciated.
//Katherine
Edited by: 1002173 on 2013-apr-24 03:56Never heard of Axis in a pie chart. What exactly are you trying to change?
-
Financial Reporting Studio - Chart 2nd Axis Title
I have a Financial Reporting Studio (9.3.1) report including a chart (combo) and have "checked" secondary axis and subsequently set a secondary axis title. Upon opening the report the secondary axis title does not show. The font color is black and the font angle is set to 0. Is this a bug or am I missing setting a property or something? If this is a bug is there a feasible workaround? Thanks in advance for any assistance.
This has turned out to be a rather obscure 'problem or feature'. Primary axis titles can include multiple words, single words or special characters and do not require single quotes around the title. Secondary axis title on the other hand require single quotes around the string whether it is a single word, multiple words or contains special characters. This is not contained in the Financial Reporting Studio documentation.
-
Chart with vertical Y-axis title having horizontal letters?
I've edited the XML on the Chart Attributes page but I don't find atrtributes to rotate the y-axis title (<text>TITLE</text>) nor the letters themselves in the title. What I'd like is something very close to
T
I
T
L
E
But what I get is a horizontal title rotated -90 degrees. I've looked at lots of Anychart documentation but don't find anything that seems to fit with the XML already given on the Chart Attributes page. I've seen the "rotate" attribute but I don't know where it would go and even then, I'm sure it only rotates the title as a unit and not the individual letters.
HowardThat makes sense. So I thought maybe this following script
would work, but it doesn't. Any ideas?
onClipEvent (load)
xcenter=400;
speed=1/200;
onClipEvent (enterFrame)
var distance=xcenter-_root._xmouse;
_x+=(distance*speed);
if (_x > 0) _x=-1550;
if (_x < -1550) _x=0;
if (_ymouse < 450) speed=1/200;
else
speed=1/80;
} -
Adding custom axis titles for Bubble Chart
How to add custom axis titles (for each group of axis values) as shown in the attached figure to a bubble chart ?
- SenI'm trying to do essentially the same thing with a LineChart and I think I've got part of it figured out.
I've subclassed CategoryAxis and overridden reduceLabels to return only certain labels (the "group" labels). Then I create a new axis by adding a LineSeries to the chart's <series> element with the new axis within the LineSeries. Then I have an AxisRenderer in the chart's horizontalAxisRenderers tag that refers to the new axis from within the LineSeries.
Subclassed axis:
public class MonthCategoryAxis extends CategoryAxis
public function MonthCategoryAxis()
super();
override public function reduceLabels(intervalStart:AxisLabel, intervalEnd:AxisLabel):AxisLabelSet
var currentLabels:AxisLabelSet = this.getLabels(0); // Param is ignored by super class
var newLabels:Array = []; // Labels to keep
var label:AxisLabel;
var previousLabel:AxisLabel;
for (var i:int = 0; i < currentLabels.labels.length; i++)
label = currentLabels.labels[i];
if (i == 0) // Keep the first label
newLabels.push(label);
else if (label.value.month != previousLabel.value.month)
// Only keep a label if the previous label has a different month
newLabels.push(label);
previousLabel = label;
// Return a new AxisLabelSet with just the labels we want
var newLabelSet:AxisLabelSet = new AxisLabelSet();
newLabelSet.labels = newLabels;
return newLabelSet;
New series to create the subclassed axis in.
<mx:LineSeries>
<mx:horizontalAxis>
<charts:MonthCategoryAxis id="MonthAxis" labelFunction="calendarMonthAxisLabelFunction"/>
</mx:horizontalAxis>
</mx:LineSeries>
The AxisRenderer. canDropLabels must be "true".
<mx:AxisRenderer axis="{MonthAxis}" canDropLabels="true" showLine="false" tickPlacement="none">
<mx:labelRenderer>
<mx:Component>
<mx:Label width="100%">
<mx:Script>
<![CDATA[
override public function set data(axisLabel:Object):void
this.text = outerDocument.getMonthLabel(axisLabel.value);
]]>
</mx:Script>
</mx:Label>
</mx:Component>
</mx:labelRenderer>
</mx:AxisRenderer> -
Axis Title does not appear in the transated language after translation
hi all,
i have some problem with the translation.
I have an application in german and in french , it works propertly but the X,Y Axis Title and the region name does not appears translated in the chart although they appears in the xliff files and i translated it.
can you see please the snapshot of the region in the link below.The X,Y Axis are in german and the tab names and items name are in french.
I'm sure the X,Y Axis appears in the XLIFF file and i translated them.
can you please help me?
thanks,
kandouda
snapshot: http://imageshack.us/f/835/33071086.png/
Edited by: 896470 on 14.11.2011 07:10
Edited by: 896470 on 14.11.2011 07:22bump
-
How to display PIE chart Axis label horizontally?
Hi
Currently my PIE chart axis label is displying in 2 lines. How make it to display in one line?
Thank youhi,
For Pie chart there will be no X-axis or Y-axis terms generally.
Label/Text could be one of the following.
Title?
or Sub Title?
or Foot note?
Right Click -> Format Title . Reduce the font size such that it fits into a single line.
Regards,
Vamsee -
SSRS 2008 - How to chnage the display axis title?
Hi all,
I have a bubble chart. Currently the values shown on y axis are 1,2,3 and 4. Since it is mandatory to have a numeric value on y axis so i want to change the axis title just for display. I want to change the axis title to some string value
just for display. How can i do that ?
Alok Aswal
Thanks in advance :)Hi Alok,
Based on my research, if we directly add the expression Fields!field_name.Value or other string values in the Custom Number format property, the axis will all display the first value of the field. So we cannot directly achieve the goal. But if there are
only three values on the Y Axis, we can use
excel format code as Peter suggested.
If there are more than three values on the Y Axis, we can use a table control to simulate the Axis labels to work around this issue. For more details, please refer to the steps below:
Drag a table to design surface, then delete the table header and last two columns.
Insert the expression which have some string values as below to the cell:
=Fields!field_name.Value
Set HideLabels property of Y Axis to True, then adjust the table position so that it aligns to the Y Axis of chart.
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Chart, axis and customize grid and labels
Hi!
I created simple LineChart. Chart is dynamic. It changes when
I choose something from ComboBox.
I want to customize vertical axis (mx:verticalAxis) to show
grid and label for: 0,1,2,3,4...etc.
Now I have:
<mx:verticalAxis>
<mx:LinearAxis interval="1" minimum="0"/>
</mx:verticalAxis>
But It doesn't work. Sometimes I see grid/labels in: 0,3,6
and sometimes 0,2,4,6 !! My maximum is changing but I think it
doesn't matter. I want to show label/grid for each integer number.
How to set it?
Thanks for help! :)
newmanHi,
Yes you can do this....you need to increase Top value for xtitle in cordalayout.cxml at this location OracleBI\web\app\res\s_oracle10\chartsupport.
Totaly we had five types in this LEFT LEGEND WITH TITLES ,RIGHT LEGEND WITH TITLES ,TOP LEGEND WITH TITLES,BOTTOM LEGEND WITH TITLES,NO LEGEND WITH TITLES.
So based on the type of view you used in you chart,change x and y axis titles,title and legends top,left,width,height as per your need.
I think you used BOTTOM LEGEND WITH TITLES,as per you requirement you need to increase xtitle-top value in order to increase size between x-axis and label.
**Restart Presentation and BI Server*
Thanks,
Srikanth
http://bintelligencegroup.wordpress.com/ -
Set font of axis title, but not tic labels
I would like to set the axis titles in my chart to bold face,
but leave the tic labels in their regular font. I create the
AxisRenderer in actionscript-
var ar:AxisRenderer = new AxisRenderer();
then I try to set the font-
ar.setStyle("fontWeight", "bold");
it affects the labels as well. This happens in actionscript,
but not when I add it as an mx component. But since I need to make
the chart dynamic, I need to use actionscript, but I don't know how
to change the title font without affecting the tic labels.bump
-
How do I rotate chart axis labels?
Trying to rotaet chart axis labels for the x-axis, but would like to know the same for the y-axis too. Know the solution for a text box, but doesn't seem to work for the axis labels.
Hi Martin,
The solution is the same for X and Y labels. Select the labels and then set the rotation angle, either in the Format Bar or in the Metrics Inspector.
Jerry -
Chart Axis: Label Renderer pixel width
Am using custom label renderer for Chart Axis labels.
CustomLabelRenderer extends label
override public function set data(value:Object):void
if(value is AxisLabel){
dataValue = String(value.text);
else{
dataValue = String(value);
I would like to get the Width of the Label component in PIXELS on runtime.
Can you please tell me how I can get the pixel width of the labels that gets updated when user changes the screen resolution.
Please let me know ASAP.
ThanksSee this example and the related thread:
http://apex.oracle.com/pls/otn/f?p=31517:222
Basically, you need to customize the chart XML. That is quite easy to do.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------
Maybe you are looking for
-
How do I set the number of simultaneous downloads? Per server?
iTunes always tries to download 3 podcasts at once, which leads to timeouts on podcast servers that limit the number of connections. That means I'm either missing episodes or else I need to manually babysit iTunes. Is there a way to set the number of
-
My 5 year old daughter asked me to download a free app, tap pet store. THis I did and then she immediately downloaded the pocket gem upgrade costing £69.99!!! I have tried the customer support help line (35minute wait) then directed to express lane
-
Crosshair mouse tracker on Plot Chart
Hi All, I have implemented a flex plot chart, which works fine (able to plot items to it). I want to add a cross hair tracking device that will move along with the mouse. The cross hair will draw a simple horizontal and vertical line crossing at th
-
PDF's must be saved to print in IE 11
I am running Windows 7, Internet Explorer 11, and Adobe Reader 11.0.0.6. When I try to print a PDF from in Internet Explorer it opens a new tab and tires to download the PDF with options to save or save as. So at current I have to save PDF's to pr
-
Hi , someone tell me please, is it possible to connect three displays to X220 with dock-station? Now I have two attached displays.