Had a hard time setting up a bar chart with date value
Just wanted to achieve this simple chart with a date value instead of text string or numbers, which is quite simple to achieve in Excel see screenshot.
With flex 4, here's my code snippet, what do I missed? Please give me a hand, thanks alot.
[Bindable]
private var scheduledata:ArrayList = new ArrayList([
{name: "ward1", meeting: "1/1/2008", seminar: "8/12/2008"},
{name: "ward2", meeting: "2/1/2009", seminar: "9/24/2009"},
{name: "ward3", meeting:"3/1/2011", seminar: "10/30/2011"}
<mx:BarChart id="bar" height="100%"
showDataTips="true" dataProvider="{scheduledata}">
<mx:verticalAxis>
<mx:CategoryAxis categoryField="name"/>
</mx:verticalAxis>
<mx:series>
<mx:BarSeries yField="name" xField="meeting" displayName="meeting" />
<mx:BarSeries yField="name" xField="seminar" displayName="seminar"/>
</mx:series>
</mx:BarChart>
Thank you all for those who tried to help. I figured it out by picking it up from (http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf65a29-7ffb.html). Just need to add a DateTimeAxis to it! Though there's bug to it that the datetimeaxis format will only display mm/yy regardless you chose Days, Weeks or Months. Somehow I will need to tackle that.
<mx:horizontalAxis>
<mx:DateTimeAxis dataUnits="Days""/>
</mx:horizontalAxis>
Similar Messages
-
Bar chart with hyperlink values in X-Axis in XIR2
Hi folks,
I am trying to create a bar chart which shows values for 2 measures using one dimension in the X-axis. I want an hyperlink associated with the values in the X-axis because I want to implement the ability of drilling through to another report when I click any of those values. That second report will show information filtered by the value of the dimension I clicked on.
I was reading a bit about it and it looks like it is not possible. The workaround provided was to make a table aside the chart and implement that behaviour in the table, not in the chart.
Anyone of you could confirm this? Any of you has another ideas?
Thanks a million
J. RussellHi Arif,
That is one of the work-arounds I have in mind.
Thanks for your answer
J. Russell
Edited by: John Russell on Aug 26, 2009 10:59 AM -
Stacked Bar Chart with data from a Web Service
Hi,
I'm working on Dashboard Design (version 14.0.1.287) and I'm trying to create a chart linked to data from a webservice.
With a Year in input, my webservice gives an Amount per Cities and Products
Data retrieved look like this (Sheet1) :
Paris Tablets 45
Paris Laptops 12
Paris Cellulars 89
New-York Tablets 56
New-York Laptops 36
New-York Cellulars 1
Londres Tablets 150
Londres Laptops 3
Londres Cellulars 45
Then I use a Pivot Table (created manually in Excel) looking like this (Sheet2) :
Tablets Laptops Cellulars
Paris 45 12 89
New-York 56 36 1
Londres 150 3 45
The chart is a Stacked Bar Chart plugged on the previous Pivot Table
I create 3 series (one per Product), values (X) are set with Amount
Category labels (Y) are set with Cities
The goal is to have a dynamic chart (series and categories must update if a new city or a new product appears)
So my question is : how can I set up the chart directly with data retrieved from webservice on Sheet1?
Thx a lot !
Nicolas
Edited by: nicolasheurtevin on Sep 14, 2011 4:58 PMhi
First thing , bad news if you are using .Net framework 1,
just forget it, Flex 2 doesn't work well with framework 1, but 2nd,
good news, if you want to use webservices, you'll have to make an
array of objects on .Net Side and send it as objects to flex, i saw
an example on the net but i can't seem to remember where, on the
other hand,if you want to simply use, like i do, HTTPSERVICE its a
very nice way to talk with .Net and you can see my example here
http://flex1-for-dummies.blogspot.com
By the way, in your code, you have a request tag , but you
aren't requesting anything, because if you were you would have to
make like this
<mx:request>
<Artist>{yourinputtext.text}</Artist>
</mx:request>
So if you don't have an input text, you don't need a request
tag, only the operation. -
Stacked bar chart with negative values
Hi,
trying to create a stacked bar chart I only get a grey picture. Reason: my data series provides positive and negative values.
Can anyone tell me a trick how to fix this problem?User614143,
try to add the minumm negative value (but positive) to the parameter for the axis.
e.g. show value+3000 (assuming -3000 is the minimum value)
If you don't have a limitation for the negative values, it doesn't work. (or try to calculate first the most negative value in a before header process)
hope this helps.
Leo -
Had a hard time all of sudden opening photos in PS via Bridge. Updated all my software and now halfway through editing a photo, my actions don't work properly. Should I remove all programs and re-install?
<moved from Adobe Creative Cloud to Photoshop General Discussion>
-
Numbers Charts: Stacked bar chart with two sets of data
Hi....newbie with first post
I'm trying to create a stacked bar chart with two lots of comparative data.
So, there is Basic + Overtime for April 2010 as one stack (ie the basic is one colour, stacked on top is the overtime in a different colour)
Basic + Overtime for April 2011 next to it.
I can get April figures next to one another as four separate columns (2 x basic, 2 x overtime), or I can get all four figures in a single stack, but I can't to two columns (one for each year) of basic and overtime.
Any ideas?UK,
What you are trying to do will require that you interleave the two sets of two-series data into one longer two-set series, and then plot just the one pair of series. Clear as mud?
What I'm saying is that you have to fake out the program into thinking that you have just two sets, not four.
You will have one series that has, for instance Apr 2010 Basic, Apr 2011 Basic, May, 2010 Basic, May 2011 Basic, etc.. This other series in that chart will have Apr 2010 Overtime, Apr 2011 Overtime, May 2010 Overtime, May 2011 Overtime, etc.
The bad thing here (I'll anticipate your first complaint) is that 2010 and 2011 data will have the same color for Basic and another color will be assigned for both 2010 Overtime and 2011 Overtime.
To get separate color sets for 2010 and 2011 data pairs, you will have to create two charts and overlay them. Both charts would be built in the alternating year format described above, but in one chart all the 2010 data would be blank and in the other chart all the 2011 data would be blank, leaving spaces in the chart for the data from the other chart to nest in.
Jerry -
Set Default Color For BarChart YAxis Data Values.
Remove alert
|
Edit
|
Delete
|
Change type
0
I am new to MS Chart. I am drawing a simple bar chart with following code. My chart draws red lines, for my datapoints (Y Axis), I want to draw, I want to set the color of remaining data points for example for 1st record (i.e. dt1) my jobData
have value 10, my graph shows red line for 10 points, for remaining 20 points I need to show the Green Line and also for the remaining data points. Thanks in advance.
double[] jobData = new double[] { 10, 3, 4, 5, 2, 0, 2, 3, 0, 1 };
DateTime dt1 = new DateTime(2015, 3, 17, 8, 30, 0);
DateTime dt2 = new DateTime(2015, 3, 17, 8, 35, 0);
DateTime dt3 = new DateTime(2015, 3, 17, 8, 40, 0);
DateTime dt4 = new DateTime(2015, 3, 17, 8, 45, 0);
DateTime dt5 = new DateTime(2015, 3, 17, 8, 50, 0);
DateTime dt6 = new DateTime(2015, 3, 17, 8, 55, 0);
DateTime dt7 = new DateTime(2015, 3, 17, 9, 00, 0);
DateTime dt8 = new DateTime(2015, 3, 17, 9, 05, 0);
DateTime dt9 = new DateTime(2015, 3, 17, 9, 10, 0);
DateTime dt10 = new DateTime(2015, 3, 17, 9, 15, 0);
DateTime[] xData = new DateTime[] { dt1, dt2, dt3, dt4, dt5,dt6,dt7,dt8,dt9,dt10 };
InitializeComponent();
//Horizontal bar chart
//Create a chart area and add it to the chart
ChartArea area = new ChartArea("First");
chart1.ChartAreas.Add(area);
// chart1.x = Color.Green;
chart1.Size = new Size(1000, 700);
//Create a series using the data
Series barSeries = new Series();
barSeries.XValueType = ChartValueType.DateTime;
barSeries.BorderColor = Color.Green;
barSeries.ChartType = SeriesChartType.Column;
barSeries.Color = Color.Red;
area.AxisX.LabelStyle.Format = "HH:mm";
area.AxisY.Maximum = 30;
area.AxisY.InterlacedColor = Color.Green;
area.AxisY.Interval = 1;
// chart1.ChartAreas(0).AxisX.LabelStyle.Format = "HH:00"
barSeries.Points.DataBindXY(xData, jobData );
//Set the chart type, Bar; horizontal bars
barSeries.ChartType = SeriesChartType.Bar;
//Assign it to the required area
barSeries.ChartArea = "First";
//Add the series to the chart
chart1.Series.Add(barSeries);Remove alert
|
Edit
|
Delete
|
Change type
0
I am new to MS Chart. I am drawing a simple bar chart with following code. My chart draws red lines, for my datapoints (Y Axis), I want to draw, I want to set the color of remaining data points for example for 1st record (i.e. dt1) my jobData
have value 10, my graph shows red line for 10 points, for remaining 20 points I need to show the Green Line and also for the remaining data points. Thanks in advance.
double[] jobData = new double[] { 10, 3, 4, 5, 2, 0, 2, 3, 0, 1 };
DateTime dt1 = new DateTime(2015, 3, 17, 8, 30, 0);
DateTime dt2 = new DateTime(2015, 3, 17, 8, 35, 0);
DateTime dt3 = new DateTime(2015, 3, 17, 8, 40, 0);
DateTime dt4 = new DateTime(2015, 3, 17, 8, 45, 0);
DateTime dt5 = new DateTime(2015, 3, 17, 8, 50, 0);
DateTime dt6 = new DateTime(2015, 3, 17, 8, 55, 0);
DateTime dt7 = new DateTime(2015, 3, 17, 9, 00, 0);
DateTime dt8 = new DateTime(2015, 3, 17, 9, 05, 0);
DateTime dt9 = new DateTime(2015, 3, 17, 9, 10, 0);
DateTime dt10 = new DateTime(2015, 3, 17, 9, 15, 0);
DateTime[] xData = new DateTime[] { dt1, dt2, dt3, dt4, dt5,dt6,dt7,dt8,dt9,dt10 };
InitializeComponent();
//Horizontal bar chart
//Create a chart area and add it to the chart
ChartArea area = new ChartArea("First");
chart1.ChartAreas.Add(area);
// chart1.x = Color.Green;
chart1.Size = new Size(1000, 700);
//Create a series using the data
Series barSeries = new Series();
barSeries.XValueType = ChartValueType.DateTime;
barSeries.BorderColor = Color.Green;
barSeries.ChartType = SeriesChartType.Column;
barSeries.Color = Color.Red;
area.AxisX.LabelStyle.Format = "HH:mm";
area.AxisY.Maximum = 30;
area.AxisY.InterlacedColor = Color.Green;
area.AxisY.Interval = 1;
// chart1.ChartAreas(0).AxisX.LabelStyle.Format = "HH:00"
barSeries.Points.DataBindXY(xData, jobData );
//Set the chart type, Bar; horizontal bars
barSeries.ChartType = SeriesChartType.Bar;
//Assign it to the required area
barSeries.ChartArea = "First";
//Add the series to the chart
chart1.Series.Add(barSeries);
Hello,
Since this issue is mainly related to Chart control, I have helped you move this thread to
Chart Controls for .NET Framework forum to get help.
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Stacked Bar Chart with Multiple Series Sort Question
Hi,
Apex version 4.1.1
I have a stacked bar chart with three separate series, one showing customer effort, another showing project effort and the third showing other effort, summarized by calendar week. The x-axis of the chart is the calendar "week of" date, and the y-axis has a bar for each of the three series. Not every type of effort occurs every week.
When AnyChart renders the chart, the order of entries on the x-axis seems to be dependent both on which series are present in a given week as well as the "week of" date. Weeks with all three series sort in order by calendar date, followed by weeks where just the 2nd & 3rd series are present, followed by weeks where just the 3rd series is present. See this [url http://tinypic.com/r/b9zdt/6] picture of the chart noting the "week of" dates. Note that the months go Sep-Oct-Nov-Aug-Oct.
Is there a way to force AnyChart to sort the x-axis in chronological order regardless of whether there is data for all three series for a given week? I have looked through the AnyChart XML reference but cannot find a way to do this.
Incidentally, I can solve the sorting problem by combining all three series into a single query:
select
null as link,
week_of as label,
sum(customer_effort) as "Customer Effort",
sum(project_effort) as "Project Effort",
sum(other_effort) as "Training, Admin and Other Effort"
from ...But if I do this, I cannot figure out how to have each bar on a given week link to a different detail page, e.g., if I click on a bar representing customer effort I want to link to one page, but if I click on a bar representing project effort, I want to link to a different page. I have had a look at the [url http://apex.oracle.com/pls/apex/f?p=36648:59:1570983160946101::NO:::] chart examples posted on apex.oracle.com, but cannot figure out how to apply to multiple series in a single query.
Thanks,
MikeThanks, Jeff. I did try this but for whatever reason it doesn't make a difference. I think it is because if there's no data for a given series for a certain week, there is no entry in the data set that is sent to AnyChart.
I was able to get around the issue by "filling in" the missing weeks from each data series. To generate the list of "Week Of" dates for a given date range, I used this code:
select
trunc (each_day) as week_of,
0 as effort
from (
select
(to_date(:p920_start_date,:app_date_format) + 2 - to_char(to_date(:p920_start_date,:app_date_format),'D') - 1) + level each_day
from dual
connect by level <= to_date(:p920_end_date,:app_date_format) - to_date(:p920_start_date,:app_date_format) + 1
where
to_char (each_day, 'D') = '2'This creates an effort entry of 0 for each week within the date range; I use the Monday date of a week as the "Week Of" date. I then union this with my actual data and summarize by week and viola, I get the weeks in order. This also has the benefit of showing a week for which there are no entries in any of the three series.
Thanks for taking a look at this.
Mike -
Stacked bar chart with single group
Post Author: rt50896
CA Forum: Charts and Graphs
Dear all, I have a question about stacked bar chart with one group value(normally more than one group value is ok) ex. YYYYMM PRODUCT AMT -
200601 ABC 1000 200602 ABC 300 200603 ABC 500 ..... the data collection is as above,then chart display: x-axis as YYYYMM,y-axis as PRODUCT... but why this case the bar chart color not the same for each YYYYMM? and legend not display one PRODUCT as ABC only? the bar chart display like this: http://tkfiles.storage.live.com/y1po30C7CH6eW9phoLAXH89MBGwFLYdEZ3kOMQXUQzDzwM-VNnffibEwqPI8TIUNBm1f7uKTjnkaOI ps. crystal report version is 8.5ReginaThanks, Jeff. I did try this but for whatever reason it doesn't make a difference. I think it is because if there's no data for a given series for a certain week, there is no entry in the data set that is sent to AnyChart.
I was able to get around the issue by "filling in" the missing weeks from each data series. To generate the list of "Week Of" dates for a given date range, I used this code:
select
trunc (each_day) as week_of,
0 as effort
from (
select
(to_date(:p920_start_date,:app_date_format) + 2 - to_char(to_date(:p920_start_date,:app_date_format),'D') - 1) + level each_day
from dual
connect by level <= to_date(:p920_end_date,:app_date_format) - to_date(:p920_start_date,:app_date_format) + 1
where
to_char (each_day, 'D') = '2'This creates an effort entry of 0 for each week within the date range; I use the Monday date of a week as the "Week Of" date. I then union this with my actual data and summarize by week and viola, I get the weeks in order. This also has the benefit of showing a week for which there are no entries in any of the three series.
Thanks for taking a look at this.
Mike -
My daughter had completed a chart in pages. I saved it and then clicked on other chart types. Now I can't go back to the original chart she made even though I have not re-saved the file. How can I go back to her original chart with data?
I don't get what you are saying.
Is this all the same document?
What version of Pages?
Have you tried to revert to a previous version?
Peter -
Using a Stacked Bar Chart With an Accordian Menu
I am having difficulty using a stacked bar chart with an accordian menu. I am able to have one stack bar populate but the other four stays blank. There seems to be an issue with my destination. I dont think it likes that my destination is more than one row and one column. Is there a way to fix this?
Hello,
I think there may be an issue in how your model/Accordion Menu was configured. What insert option are you using? Your destination should only be 'one' row OR 'one' column at the most.
Thanks,
AJ -
Bex Analyser: Bar chart with limit or average line, is it possible?
Hi everyone.
I have a short question:
Do you know if it is possible to combine different chart types in the Bex Analyser?
I would like to have a bar chart providing monthly values and in the same chart a line showing 1) a fixed limit and 2) another line showing an accumulated moving average.
I have the values as source available, however I can't figure out how to combine the bar charts with a line chart in the same graph.
Does anybody know if this is possible?
Thanks,
NanaNana ,
it is possible to have a Bex Chart of mixed type , you can choose the type of display for each series
As for fixed line - you will need to have the values supplied by query
As for moving average , that too needs to come from the query. The IGS service which renders the chart is something similar to Excel - the display options can be changed but nothing more that what is in the data table.
Arun
P.S Assigning points is a way of saying thank you in SDN -
looking for help syncing my ipad with pc after I upgraded to the latest itunes 10.4 it did not sync with the ipad. Hard time seeing the ipad when it did started to sync it stopped would not let me finish. I can no longer get my programs to work on the ipad and now when I go to sync it itunes it freezes and does allow me to see the device. I have uninstalled and reinstalled itunes three separate times following the instructions that I found
Many thanks b Noir
This is a copy of ONEof the keys in the registry I changed as told by Apple support today. I also have changed others as instructed by GEAR software support to manually delete GEAR drivers (that I had installed but couldn't delete some of the others they mentioned from Windows system 32. Then some bright spark at work told me I need the Gear drivers so I downloaded the software and installed again.
Sorry, just this minute went to insert image and it is giving me a message saying this sort of content is not allowed?.
The most recent key I altered is in: HKey _local _machine. System\class - 4D36E965-E325-11CEBFC1-08002BE10318. Upper Filter data: Upper filter NTIDrvr SiRem GEARAspiWDN.
The GEARsoftware info about manually deleting GEAR drive is from:
http://www.gearsoftware.com/wiki/index.php?title=DRIVERS:_Windows_-_Updating%2C_ removing%2C_64_bit_versions%2C_etc
I hope you can help -
I am having a hard time trying to set up my cc info on iTunes. I keep getting a message that says invalid security code which is on the back of my card and the same card I use to make purchases online with all the time. What may be the problem?
iTunes Store: My credit card's security code or zip code does not match my bank's records
http://support.apple.com/kb/TS1646 -
Updated iTunes to the newest version but have been unable to use it since. Once it opens and tries to connect to the iTunes store it crashes and asks me to close the program and report the problem. In the Windows information center, it tells me to update iTunes to the newest version to fix the problem; when I do and I tell it to repair the problem it goes through the motions, but the program doesn't change, it still doesn't work. I have tried uninstalling and resinstalling the program numerous times from the weekend until now to no avail. After the update was completed, it had a difficult time making a network connection; I knew that the connection was fine, as I was on the internet and receiving e-mail at the same time.
Close your iTunes,
Go to command Prompt -
(Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
(Win XP SP2 & above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
In the "Command Prompt" screen, type in
netsh winsock reset
Hit "ENTER" key
Restart your computer.
If you do get a prompt after restart windows to remap LSP, just click NO.
Now launch your iTunes and see if it is working now.
If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
http://support.apple.com/kb/TS4123?viewlocale=en_US
Maybe you are looking for
-
How to get the node value of payload
Hi The null is returned when I use the following code to get the User_ID element in the payload, but there are values in the User_ID element of the payload Task task_test = wfSvcClient.getTaskQueryService().getTaskDetailsById(wfCtx, taskId); System.o
-
Hai guys, I want to upload material using lsmw for material master.i am following all the steps in the lsmw. i am using the batch input method for uploading.If the sales unit is different from the unit of measure..i will be getting the con
-
Using application toolbar push buttons in report
Hello folks, I'm new to ABAP and so i'm facing some problems with my code. I have copied a standard program to my Z program (ZXXXXX). I have added few push buttons to the application toolbar of the Z program (ZXXXXX) and now on click of the 1st butto
-
Last 4 times I've upgraded FF, I seem to lose more than I gain.... and today I reloaded version 4 only to discover the losses and frustrations remain. Anybody for Chr*m*?
-
Whenever I go to a web page that has a flash movie on it the contents of the movie has random parts of the movie flickering on and off. The movie does show but it is extremely annoying having this flashing on so many pages. This is in Windows 2000. I