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.
Similar Messages
-
Slideshow Titles don't display; Music not controlled.
The Apple TV does not show titles on slideshows that I created in Macbook and synced to Apple TV. The music I chose for the slideshows is not the same as I selected on my Macbook - kind of random selection from the Apple TV Playlist. How can I get Apple TV to display picture titles and play the correct music?
it created an identical file (in Movies tab of iTunes), then gave me a message ""MovieName" was not copied to the Apple TV "Apple TV" because it cannot be played on this Apple TV." However, it actually did transfer to Apple TV, and would play, and it showed the titles.
I suspect that the reference to not being able to be played on the tv is as a result of the original file, which wouldn't be playable and why you created a new version, you can safely delete the original.
The drawback is that the "movie" slides are grainy, nowhere near the quality of using the iPhoto slideshow. Plus the movie does not fit my TV monitor where the slideshow fills the screen. I don't know if there is a solution to this problem.
Yes unfortunately the older imovie wasn't the best at creating movies. imovie 09 is much better, I've linked a couple of examples for you to try on your tv if you wish to see how the newer imovie does things a little better.
Sample 1
Sample 2
Do you think I should upgrade to iTunes 9? I believe it is a free download. MIght not solve the grainy problem, but I might be more current. Any final thoughts on any of this? Thank you for all your continued help.
Yes I'd suggest upgrading to the latest itunes software -
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 -
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 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;
} -
How to give individual horizontal axis label to two stacked bar of cartesian chart
I have a cartesian chart showing no. of xyz and no.of abc for a particular period of time. i.e. two bars corresponding to xyz & abc for Jan, and then again two bars corresponding to xyz & abc for Feb, and so on. I have used label function to give label to horizontal axis such that labels look like "xyz abc (nextLine) Jan" ,"xyz abc (nextLine) Feb".
But the issue is that the label is not centre alligned to the respective bars, i.e. xyz is not coming under xyz bar and abc is not coming under abc bar. the whole label's alignment is somewhere in between the two bars on x-axis. And i want to have label centre alligned to their respective bars, i.e 'xyz' should be centre alligned to 'xyz' bar, and 'abc' label should be centre alligned to 'abc' bar, along with the time period value. I have tried giving space in between "xyz" and "abc" but the problem occurs when data varies.They again don't seems centre aligned. I want x-axis label for each bar along with the categoryaxis's category field.
So,is there any way to achieve such functionality??Could you post a screenshot of your current output and maybe a mockup of the desired output?
-
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?
-
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. -
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.
-
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> -
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
-
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
-
Captivate 3 - Slides don't display
I've got a user who has a LARGE .cp file - about 51MG - and when he opens the presentation, the slides don't display. I can see 70 items in the Library, but the Storyboard, Edit and Branching views only display one blank slide. Title Bar says Slide 1 of 1. I've copied to my Desktop because the presentation takes 'forever' to open from the Network and thought maybe that might be part of the problem. But don't know what else to try.
Is the file just too large? Anything we can do to fix it? Here's the Info on the Project:
Thanks!
DebHi Deb
Unfortunately the project is likely corrupt. There is one thing to try at this point. Create a blank project that has identical project resolution. Then try importing a few slides from the problem project. If that is successful, rinse and repeat as needed until you recover.
Beyond that, it's time to drink a strong Margarita, roll up your sleeves and rebuild the project again from scratch. Assuming you have a working SWF, you can use it as a guide.
Best of luck to you... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcererStone Blog
Captivate eBooks -
Problems with displaying data in Chart
Hi, everyone
I am stuck with displaying data in Chart. I set the minimum
and maximum for LinearAxis of a LineChart, so the chart only
display the data within this range. But sometimes I still need to
keep the trend of all data even the data is out of range.
eg, the range of verticalAxis is 0 -100 and I got data 70,
120, 90. Neither I want to set the data 120 to 100 in order to keep
the data point nor make the data 70 connected directly to data 90.
All I want is to keep the shape, from 70 to 120, from 120 to 90,
but 120 doesn't display in the chart.
My another question is when I try to select an area of a
chart to zoom in, how can I the get the exact area that I select to
zoom,
for example: I want to use exactly the result of the
following line:
((firstMouseX - this.mouseX)/ this.dataRegion.width) *
chart.dataProvider.length
that is I don't want to use methods ceil or floor to get the
approximate area.
Excuse me, I got one question more. The weird things is my
chart won't resize itself when I resize the VDividedBox or other
containers. I set the width equals 100% wherever it needs to be.
Just like the Flex sample - dashboard. If I open a small window at
the very begining and then maximize the window, the chart still
keep the small part of its container. I don't understand why.
Sorry for too many questions.
Hope someone can help me.
Thanks in advance.Can I use the Interpolate to solve the first problem?
But I have no idea about interpolate at all.
Please help! -
Hi all,
Is there a way of naming the axes titles of an excel plot created using the Report Generation Toolkit? There does not seem to be such an option in the excel specific functions of the toolkit... Could it be done through activeX?? I tried to follow the suggestions in the link below but no luck...
http://forums.ni.com/t5/LabVIEW/labview-excel-2007-Axis-title/m-p/1226794/highlight/true#M521825
Thanks a lot for your time..
Harry
Solved!
Go to Solution.Hi,
I have attached a VI incl. many useful active-x commands for plotting graphs to excel. It is a large VI but it includes what you are looking for.. Scroll to the right and locate the 8th active-x box called chartwizard. This is what you are looking for. I have added constants indicating were the name of each axis goes in the wizard box. If you are not familiar with the rest of the active x commands just follow the sequence and you'l' be able to plot an excel graph fully customised through labview.
Hope it is of help
Harry
Attachments:
Excel_ActiveX_O2.vi 51 KB
Maybe you are looking for
-
Time Capsule vs. Other Mass Storage Device
I am a Mac newby seeking advice. I recently purchased the MBA below to replace my personal PC. My previous setup was a desktop with plenty of storage to handle my needs (including iTunes) and I backed up data directly to an external hard drive (I k
-
MD01- PR not getting generated
Hi, When i am running MRP in MD01,it is showing me : No materials were planned Statistics Materials planned Materials with new exceptions Materials with terminated MRP list Parameters Scope of Planning Plnt
-
I've purchased a song from I tunes how do I set it as a ringtone on the I phone 5 btw this is my first I phone so please help
-
How can I force pages to update images to reflect changes made in external editor?
I have added a number of (psd if that's relevant) images to a Pages '09 document (drag & drop from Finder) which have since been updated in an external editor. Pages is not reflecting these changes dynamically, even on closing and re-opening the doc
-
I created one cross tab report.but when the end user uses the report from discoverer viewer 4i. Headings of the column are not displaying. In plus it is working fine