Goal Line Chart in Flex
Hello All,
I'm creating a project that consists of flex chart componnents. However, client requires a goal line in the charts. I've googled allday on this and cant seem to find any samples. Is this even possible? If so, can you please lead me to the right direction.
Kinda like this example..but just have the goal line horizontal.
Jeff
Can you just take the min and max from the data source feeding your line chart, build a separate line chart with start and end corresponding to those two points and y-value corresponding to your goal, and add a second series to the chart? You may need to build a custom lineSegmentRenderer if you want a dashed line but a thin, low-alpha line may look fine.
Similar Messages
-
How to dynamically add new line series to the line chart in flex?
i need to add line series dynamically..and each line series should have a different data provider...
A chart can have only 1 dataProvider which in my case is an ArrayCollection.
The chart will update every time the dataProvider changes if you use binding.
So you have to write a function that periodically populates the ArrayCollection with data from the server and the chart will update automatically.
'Using line charts' tutorial from Adobe: http://livedocs.adobe.com/flex/3/html/charts_types_08.html#243339 -
How to add line series dynamically to a line chart in flex?
hi..i need to add line series dynamically to a line chart..depending on an array..the application is this..i have an array which stores the details of the users connected to an fmi server..the chart should display the bandwidth of each client..so the users should be added and removed from the chart dynamically...
Hi
1.I am giving you solution for dynamically adding values to the dropdown
public void addValue( ) //Method Name in Component controller
//@@begin addValue()
IWDNodeInfo nodeinfo = wdContext.nodeNodeTestData().getNodeInfo();// Node should be map to the view's Node
IWDAttributeInfo att = nodeinfo.getAttribute("VechileTypes");// Attribute by which dropdown in bound//
IModifiableSimpleValueSet svSet = att.getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
svSet.put(wdContext.currentNodeTestDataElement().getInpAtt(),wdContext.currentNodeTestDataElement().getInpAtt());
//@@end
2. wdThis.wdGetLangCompController().addValue(); // call this method in the point where u want to add values to the dropdown. -
How to display a goal line in a Flash 2D Line Chart?
Hello,
I am using Apex 3.0.1 and have a Flash 2d Line Chart displaying a ratio that varies from 1.0 to 1.6 for every month for a year. I need to draw a goal line at 1.2 to show the goal for the ratio. Also, I have grid lines enabled for the y-axis.
Any pointers/tips on how to accomplish displaying this goal line would be really useful.
Thanks and Regards,
DevI'm having the same problem!
APEX is relatively new to me. CUSTOM XML for tweaking charts is even more recent. I tried to get a goal line to work in a line chart as you described but I have had no success. I really require a target/goal/reference line in a vertical bar chart but getting it to work in a line chart would be a welcome first step.
I have tried the following 2 samples of code without success:
<objects>
<line value='94' text='Target' text_position='right' color='0xFF3300' size='1' alpha='100'/>
</objects>
and
<objects>
<trend start_value='94' end_value='94' start_argument='' end_argument='' value='' color='0xFF3300' thickness='1' alpha='100'/>
</objects>
==> in the following blocks of the CUSTOM XML:
<chart .....</chart>
<chart..<line_chart .....</line_chart>..</chart>
<workspace> .. <chart_area .....</chart_area> ..</workspace>
<workspace> .. <y_axis .....</y_axis> ..</workspace>
<workspace> .. <grid> ..<values .....</values ..</grid> ..</workspace>
<workspace> .. <grid> .....</grid> ..</workspace>
Any idea where I am going wrong or what could be missing? Maybe I'm not putting the <objects> parameters in the correct place in the code?
System Info:
Product Build: 3.0.1.00.07
NLS_CHARACTERSET: WE8MSWIN1252
DAD CHARACTERSET: UTF-8
JOB_QUEUE_PROCESSES: 10
Database Version Information
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Thanks for any help!
Lawrence -
Hello Friends,
I need a small help from you guys.
I want to do a line chart example in flash cs3 or in flex. Actually my requirement is getting the data from external file ie xml and with that i want to display a line chart with some time interval just like stock exchange charts for example.
I have to do this either in flex or in flash cs3. i dont have any ideas how to proceed. can anyone help me out on this. i need it asap.
Thanks
Rajeshhi
flex has charting components you can use. see: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/charts/LineChart.htm l (example at the bottom of page) -
Adding a Goal Line to a chart in Webi
Post Author: geozuh
CA Forum: WebIntelligence Reporting
Does anyone know how to add a goal line to a chart created in WEbi? It seems like this would be a standard option.Post Author: jsanzone
CA Forum: WebIntelligence Reporting
geozuh,
You would think that adding a goal line to a WebI report would be an available option within the software package, but it is not (but this sure sounds like a viable enhancement, so hopefully some of the Business Objects Enhancement Gurus are listening in).
It should be possible with a bit of fiddling with data in your database to create a "reference-type" table that could mimic all of the data values present but you would "plug" a metric-type column with the goal. For instance, on your bar graph you have x and y coordinates. The x could be the total sales by year, the y is the items (I know, I should be using an example from E-Fashion, but I'm not up-to-speed on it). In your "reference-type" table you would replicate all of the year and item data and create a new column (perhaps called "goal") which you plug with the goal value. In your universe you can link the two tables and when the report runs, voila you have all of your data. Now you can use the "vertical bar and line" graph to plot your old x and y and use z for the goal. Just a thought, and I know, "it's the long road to China", but hopefully you've got some ideas to tool with now. -
Flex Line Chart Vertical marker
Hi, I have a flex line chart and what I want to do is have an
a vertical marker that extends to the outside the chart area at the
last point.
Does anyone have any ideas?
Very smilar to this...
http://tomgutz.wordpress.com/2007/12/17/flex-custom-chart/
ThanksHere is a perfect example of what I cannot decipher:
http://flex.amcharts.com/examples/chart_with_multiple_value_axes
^ You can even see the source code here. I believe they call it a "chart cursor".
Any idea what the mouse is doing, and how to get that line into a standard FLEX Linechart?
I see this a lot but have no idea what it's called.... -
hi i have a flex line chart with some line series. What I
wanted to do is get access to the items property of the series. (
this contains the x, y values etc).
Question is at what stage during of rending do i need to do
this?
Ive tried the following but at each attempt the items
collection was 0.
Creation complete of the chart
creation complete of the series
thanksThere is info about accessing the properties of the series in
the docs here:
http://livedocs.adobe.com/flex/3/html/charts_eventsandeffects_12.html
hth,
matt horn
flex docs -
Drawing dashed line or dotted line in a flex line chart
Friends,
I want to draw a line chart which should be either dotted or dashed.
since there is no component like dashed line chart, can anyone help me in creating one.
i think if i extend the line series component, then i can draw that.
but am stuck there. pls help people.
Regards,
AnoopTry looking [url http://www.macdevcenter.com/pub/a/mac/2002/03/22/vertical_text.html]here.
: jay -
I have been using fusion charts in the past. Now I want to add an angular gauge chart like this one in my application:
http://www.fusioncharts.com/widgets/Gallery/Angular7.html
I couldn't find any thing similar in flex.
Does any body know any charting library to get similar charts?
ThanksCan you just take the min and max from the data source feeding your line chart, build a separate line chart with start and end corresponding to those two points and y-value corresponding to your goal, and add a second series to the chart? You may need to build a custom lineSegmentRenderer if you want a dashed line but a thin, low-alpha line may look fine.
-
Creating a Line Chart using a user enter target amount.
Hi all,
I'm trying to create a chart that will use Total Sales and Annual Target(Goal).
I get the Total sales to work just fine. It's just getting the Annual Target(Goal), which is a parameter, to come into the chart. Right now they are doing this in Excel and the Target line goes from 0 to 8,000,000.
So how do i get that to work in my Crystal Report?
So when the report is working correctly i should have a Line Chart with two Lines. Line 1 "The Target", Line 2 "Total Sales".
ThanksHi
Create a formula field and store the parameter there.
Now put this formula field in "On change of" in the Chart expert.
e.g. I have a parmeter on country and I have a chart which shows the last year sales year wise for the countries.
I create a formula field and put the below formula:
stringvar x = {?countryparameter};
Now i put this formula field in On change of so when i run the report i select the required country.
Hope this helps!!
Regards
Sourashree -
Showing one data point on a line chart - X-axis label placed away from its actual position
Hi Guys,
In line chart, i used CircleItemRenderer to show single data point. It shows correctly if it is single data point. But the x-axis label placed away from its actual position. Right now it displayed left most position where the line chart starts. I need to move that label straight of that datapoint where it plotted. Please see the screen shot attached with this post.
In screen shot, x-axis label "Jan" displayed in left most position.
And how can we show the datatip for single datapoint. At present, we can't able to see the datatips also with single datapoint.
Can any body help me to fix those two issues.I figured out a way to customize a single datapoint in a line series. The solution is at this link:
http://www.flexdeveloper.eu/forums/flex-charting/customize-a-datapoint-in-a-line-series/ -
Changing color of lines in line chart
Okay this is a dumb question but how do I change the color of
lines in a line chart?"spacehog" <[email protected]> wrote in
message
news:g81g1a$eq4$[email protected]..
> Okay this is a dumb question but how do I change the
color of lines in a
> line
> chart?
http://www.rphelan.com/2008/05/23/taking-control-of-flex-charting-styles/ -
Line Chart glitch - grid lines thick at certain heights
The Flex Line Chart control does not display correctly at certain heights. The gridlines that are supposed to be 1px pin stripes are sometimes displayed up to 100px wide. This can be demonstrated with 1 line of code
<mx:LineChart height="33000" x="200" y="0" id="chart_1" width="100" ></mx:LineChart>
I also have another small app that uses a timer to demonstrate how as the height increases the gridlines increase from:
1px to 100px
then back to 1px
.... then as the chart's height increases another 7000px the 1px gridlines display correctly
then it repeats going back to thick, then thin etc... almost a pulsating effect
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="init();">
<fx:Script>
<![CDATA[
import flash.utils.Timer;
import flash.events.TimerEvent;
private var timer:Timer = new Timer(10);
private function init():void{
timer.addEventListener(TimerEvent.TIMER, changeheight);
timer.start();
private function changeheight(event:TimerEvent):void{
chart_1.height=chart_1.height+30;
lblHeight.text="Chart Height:"+String(chart_1.height)+"px ";
]]>
</fx:Script>
<mx:LineChart height="33000" x="200" y="0" id="chart_1" width="100" ></mx:LineChart>
<s:Label id="lblHeight" />
<s:Button y="80" click="timer.start();" label="Start" />
<s:Button y="100" click="timer.stop();" label="Stop" />
</s:Application>Are you able to acheive this.?
PCXML script is used for chart rendering, and with that I think you can't demark the Gridlines.
The following Xml file gives the definitions for the chart components including gridlines.
chartviewtemplates.xml
Which inturn refers to the following js for gridlines
i think you have to work on the Js here demark the grid lines by default
<Oracle_BIHome>\web\app\res\b_mozilla\views\chart
dlggridlineseditor.js
Before doing any changes take the backup.
Thanks,
Vino
Edited by: Vinodh NK on Oct 22, 2010 3:44 AM -
Putting Category Counts in a Tool Tip on a Line Chart -SQL Server 2008 R2
I have a line chart report that shows the total number of tickets processed each month. Within the same recordset is the data of who processed the ticket. So I want to add in the ToolTip on the Datapoints the number of tickets processed by each
persion. There are just a few people.
So the line chart will have a datapoint at 20, but Joe did 5 and Jim did 15. What expression would I put in the tooltip? I even added datavalues for the Names and hid the data on the chart. I am just not sure how to reference or write the expression
that says joe has 5 and jim has 15 in the ToolTip. Then I would want an "Other" with all Rogues not Jim or Joe.
Example of Data
Ticket # DATE_REPORTED ASSIGNEE_FULL_NAME
1 2013-01-16 08:31:28.000 Joe
2 2013-01-17 07:01:23.000 Jim
3 2013-02-04 17:42:23.000 Jim
4 2013-02-04 18:42:23.000 Bill
Thanks in advance.
DBA DeveloperHi Paul,
As per my understanding, if we want to display some detail information depend on one field, we should add a group on that filed ahead. In your scenario, we should add a Category group or Series group in the chart, then write an expression to display the
detail information. While, if we additional add a group in the chart, the chart would showed with other manners. It will be different from the original chart. So, I think we cannot directly achieve the goal at the moment.
As a workaround, I suggest we can create another report to only display the detail information, then add a drill through action in the main report to jump to that report when we click the line. For more details, please refer to the following steps:
Drag a Line Chart on the design surface of the new report.
Insert [Count(Ticket__)] in the Values pane.
Insert the expression below as the Category Group Label expression and Group expression:
=format(Fields!DATE_REPORTED.Value,"MM")
Insert the expression below as the Series Group Label expression and Group expression:
=iif(Fields!ASSIGNEE_FULL_NAME.Value="Joe",Fields!ASSIGNEE_FULL_NAME.Value,iif(Fields!ASSIGNEE_FULL_NAME.Value="Jim",Fields!ASSIGNEE_FULL_NAME.Value,"Others"))
In the main report, right-click the line to open Series Properties dialog box.
Click Action in the left pane, enable Go to Report, then specify the new report name in the drop-down report.
If we want to see the detail information, we can click the line in the main report, it navigates to the new report. Then we can click “Back to Parent Report” action to return to the main report.
Hope this helps.
Regards,
Katherine Xiong
If you have any feedback on our support, please click
here.
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
Page Breaks on Reports 3.0
How can I set the number of lines to print per page, or set page breaks, so that my report doesn't continually spool, in Reports 3.0?
-
How do you modify the default Execute thread count in Weblogic Server 9.2?
How do you modify the default Execute thread count in Weblogic Server 9.2? How can you tune the starting number of weblogic.ExecuteThread on server startup and/or set minimum number? Is there an option from the console? Please let me know. Thanks
-
Expanding the Mac Mini (2009) over due?
I, and I guess many more, need to discuss the expansion of the current Mac Mini (2009). By it's very design the MM depends on expansion. Currently discussion of the 2009 MM expansion issues are taking place in the 'prior to 2009 MM expansion' sub-for
-
Displaying the layer image in a Flex panel
Hi, I need to display the contents (image) of the active layer in a Flex panel. Was thinking along the lines of saving the layer as a temporary image and then loading it into an Image control. But is there a better/less messy way than this?
-
while playing scrabble on my iphone, a message appears that i have to log in to orgins again, that my time expired. When I try to log in, it reads..auto log in...then it never finishes logging in....what can i do to login to orgins and stay logged i