Need charting help - multiple data points between major ticks
Hi,
I am trying to create an AreaChart in which the data shows a
consumption rate over the course of a week. The major points along
the x-axis will be Monday, Tuesday, ... , Sunday (the days of the
week). However, there are multiple data points between each day. I
only want the days of the week to show on the axis but I want to
plot all of the data points. How would I go about accomplishing
this task?
Thanks in advance,
Brent Schooley
Thanks, it is getting closer now. My only problem now is that
the data points do not line up correctly with the tick marks. I've
look through the documentation and I can't figure out what to do to
ensure this happens. Here are the relevant portions of my code:
[Bindable]
public var energyDataAC:ArrayCollection = new
ArrayCollection( [
{date: "2007, 7, 27, 0", saved: 0},
{date: "2007, 7, 27, 12", saved: 50},
{date: "2007, 7, 28, 0", saved: 35},
{date: "2007, 7, 28, 12", saved: 0},
{date: "2007, 7, 29, 0", saved: 0},
{date: "2007, 7, 29, 12", saved: 46},
{date: "2007, 7, 30, 0", saved: 39},
{date: "2007, 7, 30, 12", saved: 0},
{date: "2007, 7, 31, 0", saved: 0},
{date: "2007, 7, 31, 12", saved: 44},
{date: "2007, 8, 1, 0", saved: 45},
{date: "2007, 8, 1, 12", saved: 0} ]);
public function myParseFunction(s:String):Date {
// Get an array of Strings from the comma-separated String
passed in.
var a:Array = s.split(",");
// Create the new Date object.
var newDate:Date = new Date(a[0],a[1],a[2],a[3]);
return newDate;
<mx:AreaChart id="Areachart" height="100%" width="100%"
paddingLeft="5" paddingRight="5"
showDataTips="true" dataProvider="{energyDataAC}" >
<mx:horizontalAxisRenderer>
<mx:AxisRenderer styleName="myAxisStyle"/>
</mx:horizontalAxisRenderer>
<mx:horizontalAxis>
<mx:DateTimeAxis alignLabelsToUnits="true"
dataUnits="hours" labelUnits="days" dataInterval="12" interval="1"
parseFunction="myParseFunction"/>
</mx:horizontalAxis>
<mx:series>
<mx:AreaSeries yField="saved" xField="date"
form="segment" displayName="Energy Saved"/>
</mx:series>
</mx:AreaChart>
<mx:Legend dataProvider="{Areachart}"/>
Any ideas?
Thanks,
Brent
Similar Messages
-
Help: Chart with multiple data points
I would like to create a chart which has 2 data points. The way I know it works, each metric has only one data point. If I want the metric history chart shows 2 data points (y axis) over the same period of time (x axis). Is it possible to do such metric?
Thanks for the help.Don't believe you can have 2 data points as you are suggesting. Oracle is working on enhancing the reporting framework for EM, but not sure when BI will be there. You can send data from the OMR to an existing BI infrastructure and report from there.
Sorry...
Have a good day. -
Crystal Reports - Charts - Restricting the data points on the X-axis
Hi,
Is there a way to restrict the number of points to display on the x-axis of a crystal chart keeping the number of data points the same.
For example, if the chart plots date vs value points and the data for the chart is from 1980 to 2009. This means the data points on the x-axis appear very close to each other.
I need a way to show the chart with all data from 1980 to 2009 but limited x-axis labels. Is there a way to configure the number of labels to show on the x-axis.
Thanks!Thanks for the answer.
"Right click on one of the x axis labels and select Group (X) Axis Options...
On the Layout tab there is an option to Skip Group Labels, check this and enter in the number of labels you want to skip". Is there a way to do this from a .NET client or via a formula field in Crystal itself. The data points is going to be dynamic, hence the requirement is to dynamically configure the "number of labels" to be skipped.
Thanks. -
Color Highlights not working in bar chart with two data points
Iu2019m using Crystal Reports 2011. I have created a bar graph using two data fields in the Chart Expert. I have set the colors for the bars in the Color Highlights tab, but the colors that I have defined have not been applied to the graph.
I have tried changing the colors numerous times and have done it in both design and preview modes. It seems to be somethign with having two data points because I don't have this problem when using just one data point. Please help!is the colour mode Color by group or color by series
-
Need some help learning cue points, etc
I need some help with a Flash project I'm working on. If any
Flash junkies out there are up for sitting down with me through
email or IM and helping me get to the point where I have a template
FLA doing what I want to do, I'd be willing to pay you. It wouldn't
be much, but it would be something. Here's what I'm trying to do:
I need to create an interactive talking-head style flash
presentation with a number of progressive download externally
linked FLV files, playing in succession, supported by movie-clip
text animations and supporting graphics which are triggered by cue
points in the video. I also need a simple navigation menu linking
to the FLV files. I've got some of this down already, namely, I've
laid the FLVs in and they are playing in succession. I'm stuck on
the cue point part. At this point I really just need some hands-on
help. I've bought books, I've scoured the web.
I'm easy to communicate with, and I'm good with computers and
comfortable in many multimedia design programs. Flash is very
powerful, but tougher to learn than I expected, and I'm at the end
of my rope =PMy advice... start with a very simple "proof of concept" project before you attempt the entire package.
It will be much easier to scale up if you first have a very good understanding of what's going on.
So one simple video with just one cuepoint and only one button and additional display. You'll also have to work out the interaction of pausing the video when a cuepoint is reached or button pushed to display the graph, giving the viewer time to read the graph... then when the viewer closes the graph, the video should "resume".
Start very simple and build on that only after you understand the fundamentals.
Second, you mention "video reports"... plural. So that most likely means that you will need a video player with a "playlist".
This may mean that you'll need to learn to use a little .xml to bring in the playlist data. You may also find xml an excellant way to bring other data into you project.
At the link listed above there is an excellant tutorial on "Integrating Flash and XML"
"Flash and XML"
"XML Video Playlist"
"ActionScript 3 XML Basics"
"ActionScript 3 Advanced XML"
Personally I would not even begin a project like this without considering how I could use xml to feed data into the project.
Here's an example of a video player I created that has a playlist, thumbnails, categories, transcipts, "Now Playing" etc. All that data comes into the main .swf via various xml files. Super good way in input data into Flash.
http://www.drheimer.com/video/
Yours is a rather ambitious project and will take awhile to gain the skill and assemble the pieces. So when you come to a new part... first create a real simple "proof of concept" model so you can learn how that section works. Don't expect to be able to assemble the entire project all at once.
Best wishes,
Adninjastrator -
Charts with Multiple Data Series in One Color
I am trying to create a pie chart to reflect the different areas of my budget in four categories. However, my budget is divided into several smaller categories across several columns and I can only get the cells in the first column to register even though the additional cells show up in the Inspector as part of the series.
Jerry,
Thanks for the info. I'll give that a read when I get home today. In a roundabout way I tried part of that. I created my chart with my data for Mammallia and the time periods. Then I selected the occurrences for Synapsids and dropped them in, but it added them to the first data set in the chart? I'm guessing I was doing something wrong, but I'm unsure of what. Numbers/Excel has never been a strong subject for me, but I'll try your advice and see what I come up with.
Reading your post again, the last way seems the most simple and I feel a little foolish for not thinking of that myself. Oh well, that's how we learn right? Thanks for your help!! You saved me a lot of hassle.
Best regards,
Mitch -
Need Help. Data jumps between Combo Boxes in an ADG
I have an item renderer in an advanced datagrid.
<mx:AdvancedDataGridColumn
dataField="USE_TYPE_DESC"
headerText="Use Type"
rendererIsEditor="true"
itemRenderer="renderers.tpUseTypeDropDown"
editorDataField="getData"/>
But the data that gets displayed in the combo boxes, appear to jump between CBs when you scroll the ADG up and down. The physical data is fine, its just the displayed data that is wrong.. Any ideasOk, I tried this but still getting an error
<cfquery datasource="mydb" name="test">
Select name from mytable
where
<cfqueryparam value=#createodbcdate(edate)# cfsqltype="CF_SQL_DATE"> Between '01/01/2011' AND '01/01/2013'
</cfquery>
<cfoutput query="test">
#ename#
</cfoutput>
now I get
An error occurred while evaluating the expression:
"#createodbcdate(edate)#"
Error near line 3, column 53.
Error resolving parameter EDATE -
Using multiple data points in an item renderer?
I have a datagrid, bound to data from an XML file. My XML has
multiple items,such as:
<book>
<title></title>
<author></author>
<description></description>
<cover>someimage.jpg</cover>
</book>
I need to display each book as a unit, something like:
[image] Moby Dick
Herman Melville
A long book about a whale.
How would I accomplish this? Obviously, I can easily display
the discrete info in columns, but I'd like to lay it out as one
unit.
Thanks.Use a list control instead of a datagrid. Then use a custom
item renderer based on HBox or VBox depending on your preference
for horizontal or vertical layout... possibly even just a Box
control so you can change it at your whim. -
Need URGENT help on DATA PACKAGE
Hi team,
When we extract the data from the data source it's getting as a package by package before start process i need to add all the packages into one internal table .
How do i do that ?.
Pl help me it's URGENt appreciate your response. thanks.
Regards,
Senthilhi,
you need to do the process in source system or BW.
if it is in source system, extract through program/function module that coolects all the data package and process there and push to BW once procee is over.
if it is to be done in BW- i hope in the start routine u can do only by package by package.
please give ur actual requirment so that others can give suggesstion.
Ramesh -
Hi everyone!
I have an application in Flex AIR and I'm having problems with dates, I could't found an example on internet until now.
I tried this for insert (database is embeded sqlite)
insertManager.parameters[":mydate"] = mydate.selectedDate.time; // type of this column is INTEGER (in my table) and store a number (milliseconds from 1/1/1970) ex: 1265079600000
Then when I need read records
mydate.selectedDate = new Date(mydateprice); //it supposed show me DD/MM/YYYY but in every case display 1/1/1970
If I replace mydateprice for mydate.selectedDate = new Date(1265079600000); // it brings me the right date
So I don't know what happed, and I'm not sure if it's the best idea to store a date in Flex AIR
I'll appreciate any help, information or example to find a solution.
Regards!
Mara.-Thank you so much VIKASH!!! it works!!!
Now I'm trying to format this value 1265079600000 in my datagrid column:
<mx:DateFormatter id="dateFormatter" formatString="DD/MM/YYYY"/>
<mx:DataGridColumn width="140" textAlign="left" headerText="DATE" dataField="myDateColumn" labelFunction="formatDate" />
public function formatDate(item:Object,column:DataGridColumn):String
return dateFormatter.format(item.myDateColumn);
but this column appear empty....
Regards and thanks again!
Mara.- -
NEED COMPILING HELP (10 duke points!!!!!!!)
Hi i'm using jedit, and i need to know why my compiler isn't working. As some may know that jedit has an inbuilt compiler called jcompiler. The results from the jcompiler are fine but when i try javac i recieve an error, and when i use java i recieve an error...
error for javac:
D:\>javac haha
javac: invalid flag: haha
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are us
ed
-classpath <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-help Print a synopsis of standard options
error for java:
D:\>java haha
Exception in thread "main" java.lang.NoClassDefFoundError: haha
the program:
class try {
public static void main (String [] args) {
System.out.println("Hello World");
}To the perosn or persons who completely solve my problem, they recieve 10 points (btw i made the prog haha in 30 secs but i'm still a beginner (a student) in java )HelloWorld.java :
public class HelloWorld {
public static void main (String [] args) {
System.out.println("Hello World");
}d:\somedir> dir
0:00 10101 HelloWorld.java
d:\somedir> javac HelloWorld.java
d:\somedir> dir
0:00 10101 HelloWorld.java
0:00 10101 HelloWorld.class
d:\somedir> java HelloWorld
Hello World
-Alexis -
X-y Scatter chart with multiple data series
Hi,
How do I create an x-y scatter chart with more than 1 data series? For example:
Series 1
x__y
1__0
2__5
3__9
4__7
5__2
Series 2
x_____y
0.5___0
1.3___4.8
2.6___12.3
4.1___8.4
4.9___3.2
I can do this with 2 seperate graphs but I need them on the same graph.
Is there a limit on the number of series that can be placed on a single x-y scatter graph?
Many thanks.Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551 -
Need immi. help - Multiple JRE running 4 diff applet tag in diff web pages
Hi,
Im facing a weird scenario after installing JRE7, Please help me to resolve the issue.
This is the scenario, in our application we have applets tags added in multiple web pages. for eg . in page 1, I have added an applet tag with some supporting jars,
in page 2, I have added another applet tag with some supporting jars (completely different from the one added in page 1).
similarly in page 3, complete different set of jars added.
I enabled to show Java console in java control panel
When I load page 1, I get a java console popup, loading page 2 shows another java console.
each represents its own applet tag.
Not sure is there any limitation of opening number of jre from one single browser tab._
Because when I load page 3 with different applet tag my browser hangs & other 2 java console also hangs_
But its not the case in Jre 6,
In jre 6 I get only one console_, & when try to dump the list I get all the jars in the same console.
From jre 7 console
console 1
Java Plug-in 10.5.1.255
Using JRE version 1.7.0_05-b05 Java HotSpot(TM) Client VM
Dumping class loader cache...
Live entry: key=http://MYIP:10001/ipc/,Applet1.jar, refCount=1, threadGroup=sun.plugin2.applet.Applet2ThreadGroup[name=http://MYIP:10001/ipc/-threadGroup,maxpri=4]
Live entry: key=http://MYIP:10001/ipc/,Applet2.jar,commons-logging.jar, refCount=1, threadGroup=sun.plugin2.applet.Applet2ThreadGroup[name=http://MYIP:10001/ipc/-threadGroup,maxpri=4]
Done.
Console 2
Java Plug-in 10.5.1.255
Using JRE version 1.7.0_05-b05 Java HotSpot(TM) Client VM
Dumping class loader cache...
Live entry: key=http://MYIP:10001/ipc/,Applet3.jar, refCount=1, threadGroup=sun.plugin2.applet.Applet2ThreadGroup[name=http://MYIP:10001/ipc/-threadGroup,maxpri=4]
Live entry: key=http://MYIP:10001/ipc/,Applet4.jar,pdfbox-1.5.0.jar,fontbox-1.5.0.jar, refCount=1, threadGroup=sun.plugin2.applet.Applet2ThreadGroup[name=http://MYIP:10001/ipc/-threadGroup,maxpri=4]
Done.
From jre 6 console
console 1
Java Plug-in 1.6.0_33
Using JRE version 1.6.0_33-b03 Java HotSpot(TM) 64-Bit Server VM
Dumping class loader cache...
Live entry: key=http://MYIP:10001/ipc/,Applet4.jar,pdfbox-1.5.0.jar,fontbox-1.5.0.jar, refCount=1, threadGroup=sun.plugin2.applet.Applet2ThreadGroup[name=http://MYIP:10001/ipc/-threadGroup,maxpri=4]
Live entry: key=http://MYIP:10001/ipc/,Applet1.jar, refCount=1, threadGroup=sun.plugin2.applet.Applet2ThreadGroup[name=http://MYIP:10001/ipc/-threadGroup,maxpri=4]
Live entry: key=http://MYIP:10001/ipc/,Applet3.jar, refCount=1, threadGroup=sun.plugin2.applet.Applet2ThreadGroup[name=http://MYIP:10001/ipc/-threadGroup,maxpri=4]
Live entry: key=http://MYIP:10001/ipc/,Applet2.jar,commons-logging.jar, refCount=1, threadGroup=sun.plugin2.applet.Applet2ThreadGroup[name=http://MYIP:10001/ipc/-threadGroup,maxpri=4]
Done.
Havent tried to write an sample program for this scenario yet, the application is our existing corporate application.
I just tried to test it with jre 7. but facing this issue now.
additional info
OS win7 64 bit
browser IE 9 32bit jre 1.7 32 bit
IE 9 64bit jre 1.6 64 bit
Anyone faced this issue & resolved, Please help how to resolve this issue.
If you need additional info also I get it for analysis, please help.
Thanks in Advance
JPWhat's 'immi.'?
If it's what I think it is, it is pointless if not counterproductive to disclose your time management problems here. They are your own to deal with, not anybody else's.
However I have Web pages with three applets on them, and they all work OK in both Java 6 and 7. -
Need some help on data selection
Hi all,
In COST dbtable there are fields TKG001, TKG002, ... TKG016.
From this i need to select one according to month.
ie., if month is January i need to select TKG001,
June i need to selct TKG006 and so on.
How can i do this. Please help me in this.Write one select to fetch all the fields and in the program, filter out from he internal table only those ields that u require..
-
Need small help in data retriving
Hi ALL...
I have the ship_to_party no. In this ship to party no i have multiple deliviries. In the deliveries i have mutiple material numbers.
These ship to party and delivery no are populating form these strctures.
VBDPL-MATNR (Material Number) -- item
VBDKL-KUNWE (Sold 2 party) --- header
now i need to populate the KDMAT feild from LIPS. So what should i do to populate the feild.
regards
arjunHi,
could you tell me the name of the object you are using ?
Regards
Shiva
Maybe you are looking for
-
How do i get past IOS 8 activation without a Sim card
I Bought this Iphone 5 off this dude. but i cant even use it because theres no sim card and the activation thing says i need one.. I have an iphone 4 with the same carrier which is verizon. but the sim card is bigger so it wont fit. i looked up ways
-
tHE UNDERMINED ATTITUDE OF APPLE TO ERASE THE PHONE WAS GREAT AND GLORIOUS BUT IT WAS GIVEN TO ME AND NOW I CANNOT USE IT AND THE PERSON WHO GAVE ME THE PHONE HAS LEFT SO I HAVE A PHONE THAT IS A PAPER WEIGHT. aPLE IS A SCREW UP NOT THE CUSOMER.TO ME
-
How to Start and Stop the SAP System
Hi, I have installed "Sneak Preview"; Searched for start and stop scripts but there are more than one script which has named start.bat and stop.bat. Moreover, I searched the documents which comes with Sneak Preview but could find useful instruction t
-
Updating custom fields to MSEG through MIGO
Hi, I got a requirement to add a tab with custom fields in MIGO transaction, which I did using BADI MB_MIGO_BADI and requirement also says to extend table MSEG with custom fields and store the values in MSEG. I have gone through example implimentatio
-
Sleep light acting odd, sleep not waking up
In the past few days, occasionally I'll close my display, and then when I open it, the screen will be black, and I'll have to hold down the power button to restart the computer. The sleep button will be off too. Now, my sleep button is off when I'm r