Grouping the chart data on x-axis
Hi,
I am trying to plot some points on the Plot Chart. I want to
show the Text as my x-axis, so I am using
<mx:horizontalAxis>
<mx:CategoryAxis
id="a1"
dataProvider="{expenses}"
categoryField="Month"
/>
</mx:horizontalAxis>
in my code for x-axis. Now I want to plot all y-axis items
under the same x-axis one if they are from the same 'Month' (used
for horizontal axis). If I try to do this, I am getting more values
on the x-axis that have same 'Month' name. Is there any way I can
fix this problem?
Any help would be of great help.
I am also attaching the sample example.
I am sorry but the whole thing makes no sense.
What is the effect of x-axis category grouping?
How can I aggregate info by date, i.e. in the same month or same year
count should be added up?
How can I show on the x-axis (time) the aggregate values?
I just made a report with no x-axis categories, data grouped by year
summing, and the graph that came out was with axis showing months but
with only one bar value.
Are there bugs in this or I just don't understand the concepts behind it?
With time series data I would have thought the MOST OBVIOUS thing that
people would want are:
- aggregations over different time periods:
- days
- weeks
- months
- quarters (doesn't seem to be supported)
- half-years (doesn't seem to be supported)
- years
- time axis should be linear in time - just because there are no
values in March 2007 for example it should still have a bar which should
show a 0 value and it should show up (currently at best it leaves a gap)
- time axis should be relevant to the aggregation
- grouped by years, axis should show 2005, 2006, 2007, ...
- grouped by months, axis should show Jan 2005, Feb 2005, ....
- currently it doesn't
A lot of the time people just want to say give a bunch of sales info
which is a date and a number (number of units sold on that date or
whatever) and they want to be able to produce graphs of different
granularity.
Is this possible? I've been playing with this thing for weeks and can't
get it to do this reliably.
Similar Messages
-
Hi,
In Excel 2007, I have a pie chart on sheet 1. I want to make a copy of the pie chart from sheet 1 and past into sheet 2, and change the table data in sheet 2 to get new chart recalculated based on new table values in sheet 2.
However, the chart in sheet 2 is still pointing to the table data in sheet 1.
All the cells in sheet 1 have relative cells.
Please advise.
Thanks - BijanHello Wind,
As teylyn suggested:
"An Excel chart is hard-wired to its data source. You can copy and paste a chart to a different sheet and it will still refer to the initial source data."
So I did create the template and used in my 2nd tab which worked perfectly. However, I had an issue with merged cells which I am using for my data, and tylyn suggested that I provide the excel file that I am working with, and I did.
So now I need help as how to make merged cells work when I try to create a pie chart from template based on new data (which reside in mergerd cells).
P.S. I cannot resize my cells to make the data and labels fit into one call, so I have to have merged cells.
Thanks
Bijan -
Identify Different Groups in the Organization (Group the Same data together)
Version : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Help me in Identifying the groups(different Sectors) in the Organization
Each Group will have the same Group id if We_org_id , We_addr_id or We_org_id , Ein Matches
In the below Example Row 1 and 2 Are linked with We_org_id , We_addr_id
and row 2 and 3 are linked with We_org_id , Ein so all the three rows has the same groupid
Included Output Required.
Example
311 563 72-1500000 2
311 563 72-1500001 2
311 565 72-1500001 2
-- Table and inserts
CREATE TABLE ORG_MISMATCH
WE_ORG_ID NUMBER,
WE_ADDR_ID NUMBER,
EIN VARCHAR2(30 BYTE)
SET DEFINE OFF;
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 24303142, '31-1700059');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '39-1675361');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '31-1700059');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '26-0060245');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '72-1284709');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 121786868, '31-1700059');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 21053495, '72-1355929');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '73-1317052');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '56-2525845');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '72-1355929');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '84-1535762');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '91-2031795');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '84-1487943');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '91-2035844');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '84-1535753');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '72-1501788');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '30-0137738');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 563, '72-1500001');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 565, '72-1500001');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '72-1355929');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 24303142, '31-1700059');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '31-1700059');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 121786868, '31-1700059');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '84-1535762');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '72-1501788');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '91-2031795');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '30-0137738');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '72-1284709');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '56-2525845');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '91-2035844');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 21053495, '72-1355929');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '39-1675361');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '84-1487943');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '84-1535753');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '26-0060245');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '73-1317052');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 563, '72-1500000');
COMMIT;
WE_ORG_ID
WE_ADDR_ID
EIN
GROUPID
OUTPUT REQUIRED --> Create Groupid Column
311
24303142
31-1700059
1
311
56381251
39-1675361
1
311
56381251
31-1700059
1
311
56381251
26-0060245
1
311
56381251
72-1284709
1
311
121786868
31-1700059
1
311
21053495
72-1355929
1
311
56381251
73-1317052
1
311
56381251
56-2525845
1
311
56381251
72-1355929
1
311
56381251
84-1535762
1
311
56381251
91-2031795
1
311
56381251
84-1487943
1
311
56381251
91-2035844
1
311
56381251
84-1535753
1
311
56381251
72-1501788
1
311
56381251
30-0137738
1
311
563
72-1500001
2
311
565
72-1500001
2
311
563
72-1500000
2It would be nice to know the roots. I did assume two with
start with we_addr_id in (
select min(we_addr_id)
from org_mismatch group by we_org_id
Otherwise it could taken a while ...
That below doesnt really work ..
select
WE_ORG_ID
,WE_ADDR_ID
,EIN
,dense_rank() over (partition by WE_ORG_ID order by r) grp
from (
select
WE_ORG_ID
,WE_ADDR_ID
,EIN
,connect_by_root WE_ADDR_ID r
from ORG_MISMATCH
connect by nocycle
prior we_org_id = we_org_id
and (
(prior we_addr_id = we_addr_id and prior ein < ein)
or
(prior ein = ein and prior we_addr_id < we_addr_id)
start with we_addr_id in (
select min(we_addr_id)
from org_mismatch group by we_org_id
group by
WE_ORG_ID
,WE_ADDR_ID
,EIN
,r
order by
WE_ORG_ID
,WE_ADDR_ID
,EIN
,R
WE_ORG_ID
WE_ADDR_ID
EIN
GRP
311
563
72-1500000
1
311
563
72-1500001
1
311
565
72-1500001
1
311
21053495
72-1355929
2
311
56381251
72-1355929
2
311
56381251
72-1501788
2
311
56381251
73-1317052
2
311
56381251
84-1487943
2
311
56381251
84-1535753
2
311
56381251
84-1535762
2
311
56381251
91-2031795
2
311
56381251
91-2035844
2
999
21053495
72-1355929
1
999
56381251
72-1355929
1
999
56381251
72-1501788
1
999
56381251
73-1317052
1
999
56381251
84-1487943
1
999
56381251
84-1535753
1
999
56381251
84-1535762
1
999
56381251
91-2031795
1
999
56381251
91-2035844
1
Message was edited by: chris227 comment -
Group the array data as single context
Hi Everybody,
I have R3 data which consists of two fields namely CategoryID and CategoryName as follows:
CatID CatName
0001 AAA
0001 AAA
0001 AAA
0002 BBB
0002 BBB
0003 CCC
and So on... Now I want to take the CatID and map it to a context element for each catID a context element will be created dynamically.
eg:
I need Output as :-
CatID CatName
0001 AAA
0002 BBB
0003 CCC
How to do this...
Regards/GuruHi Kumara,
Try something like this
create a value node under this create two value attribute CatID and CatName and then use this code snippet
Collection data = new ArrayList();
int size = <size of your data>
for (int i = 0; i < size; i++) {
// instantiate the new context node element of type QuizData
IPublic<comp name>.I<value node name>Element Element =
wdContext.create<value node name>Element();
// set contained context value attributes
Element.setCatID(CatID value);
Element.setCatName(CatName value);
// add new context node element of the type value node to ArrayList
data.add(Element);
// Bind collection of context node elements to context value node
wdContext.node<value node name>().bind(data);
Do Reward points if it helps
Regards
Sid -
Post Author: [email protected]
CA Forum: Charts and Graphs
I have a chart that is grouped on the date by month. The data in the main crosstab report is in the correct order but the dates are grouped incorrectly in the graph. The graph is listing in this order:
1/2007, 10/2007,11/2007, 2/2007,3/2007....
It's picking up the first number as the sort order instead of the date. I've checked by date format and everything is correct in my report. What can I change to get the chart date order correct?Post Author: qcheng
CA Forum: Charts and Graphs
Right click the chart > select "Chart Expert" > "Data" Tab > Select the "On Change Of" field > Click "Order" button > select "in original order". Your group will be in right order now. -
Has anyone seen the Chart Data Editor in Pages and if so can you tell me how to find it?
Am having trouble editing the labels of the X-axis of a chart and the Pages manual seems to have a sensible solution but it requires using the Chart Data Editor. For the life of me I can't find in the programme.You need the Pages Discussion Board. this is the Numbers Discussion board.
Jason -
Discoverer Bar Chart Data Points
Hi everyone,
I am creating a Bar Chart in Discoverer with the data points to be displayed at the top. Does anyone know how to make the datapoints not display decimal places. I've tried to change the number format in the table and through administrator as well. The table does not display decimal places but the Bar Chart Data Points continue to do so. Any suggestions or thoughts to try would be welcomed. Thanks!If you edit the chart and choose X-Axis Scale I believe you can set the number of decimal place there. Should be able to set it to 0.
-
How to create a subVI to Clear all charts data on a main VI
Hi all,
As I am writing a subVI to clear all the "charts" data on a main VI.
The number of Charts is unknown, beasue this subVI need to run at
difference main VIs. Therefore, I can only input a ref. of main VI into
the subVI and find out all the control ref.,then check the classes of
the control. If it is a chart, I need to use "To More Specific Class" to
to select waveform chart. However, if the property node is not create
from the chart directly, the "histroy data" will be missing.
No matter my concept to build this subVI should be right, I donot succeed.
Are there any other methods to do that?
regards,
Ryanparthabe wrote:
Did you file a bug report with NI, Coq?
No i did not. I got it working with some diagram cluttering, and forgot all about it. As my motto is "If the damn thing works, ship it"
Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far) -
Stackedbarchart does not considering CSS if chart data is reset.
I am setting the CSS for Stackedbarchart . initially chart perfectly showing CSS colors for bars . but if i refresh the data set (i am creating new data set which has changes in y values only and setting it to chart), chart is not considering the css colors, its showing some random colors for each series.
steps to reproduce .
use any sample /Ensamble
set a style for chart bar / series with CSS .
recreate the chart data and reset the chart data using chart.setData()
chart is assigning random colors.Pay $200 for something i don't use often is ridiculous. Perhaps I am better off borrowing a PC and converting it for those SSD storage.
-
Can we print an array of dates on the chart X-Axis?
Hi,
I have a requirement in which I have to print all the dates in the selected date range on the chart axis even though I donu2019t have the data for all the dates in my DB.I did not find any direct solution in Crystal Report Designer (2008, XI) except we can use "time scale" option in axes tab of chart option but this option also does not provide the required behavior completely.
After implementing this option I get the date range on chart but from the date I have data in the DB and to the date I have the data in the DB.
For Example, though I have selected the date range from 2nd April to 8th April, dates in the chart are starting from 5th April since I have the data in the DB of 5th April and 8th April.
To overcome this limitation of crystal report I thought of creating an array of dates of the selected date range. I can create the array of dates in crystal report but donu2019t know how to use this array in chart to show the summary data.
I also want to base my Group on this array since I want to show all the dates in group even with count zero.
Thanks & Regards,
AmritaHi Sourashree,
I am using the following formula to create an array of dates.
numbervar dateDiff:={?eDate}-{?bDate};
dateTimeVar array dateArray;
numbervar i;
for i :=1 to 7 do
redim preserve dateArray<i>;
if(i=1) then
dateArray<i>:={?bDate}
else
dateArray<i>:={?bDate}+i;
This formula is a print time formula since when I specify "WhileReadingRecords" array remains blank (I have confirmed this by returning any single value from the array).
I can not base my Group and Chart on any Print Time formula since these two get calculates at read time.
Can you please let me know if there is any other way of creating the array at read time? Or should I create the array in main report and then pass it to sub report?
Regards,
Amrita -
Waveform chart time axis is not matching the waveform data
So here an interesting conundrum I hope you might be able to help me with...
My VI has waveform data sent to a chart, though the data is not being plotted against the current time. Rather, it is being plotted starting way back in the reference time (way back in 1903). I don't understand why this is happening. When I build the waveform, I use the "Get Date/Time in Seconds" function outside the while loop and feed that into my "Build Waveform" Function as the t0 value. My dt value is 0.05 (20 Hz) and then I feed in my array of data in the Y input. Any ideas why the chart is plotting this data over 100 years ago? Thanks!
AndrewHiii, Ronin
Here is your solution.
By default, waveform charts and graphs display the absolute time at time 0 as 7:00:00 PM, 12/31/1903 on a Windows based system. Property nodes can be used to get the correct absolute time to display on the x-axis of the waveform chart.
First, right click the chart on the front panel and select X Scale >> Formatting. Then set the format to Absolute Time.
Create a property node for the waveform chart by right-clicking on the chart on the block diagram and selecting Create >> Property Node. Expand the property node to display two properties. Select the Format property and the Offset property. The Format property is located under X-Scale >> Format and Precision >> Format, and the Offset property can be found under X-Scale >> Offset and Multiplier >> Offset. Right click on the property node and select Change All to Write.
For the Format property, the context help shows that there are multiple inputs to this property. Wire in a value of 7 to set the format to Time and Date.For the Offset property, first wire the output of the Get Data/Time in Seconds VI to the input of the To Double Precision Float VI. Then wire the output of the To Double Precision Float VI to the Offset property.
In addition, if you know the number of data points plotted to the chart per second, you can set the Multiplier property located under X-Scale >> Offset and Multiplier >> Multiplier. If there are x data points generated per second, wire in a value of 1/x to the Multiplier property. A simple example program "Chart with Timestamp" that demonstrates how to do that is attached.
Thanks,
Nishant
Attachments:
Chart with Timestamp.vi 36 KB -
Hi
I am currently adding a chart for each group on group footer in a table.
but i want that charts to be on the right side of the group data.
regards
Pratap M:)Hi PratapM,
If I understand correctly, you have already added a chart in group footer, and you want to display the chart on the right side of the cell. If I have misunderstood, please don't hesitate to let me know.
Based on my research, if we directly add a chart into a cell, the chart will fill all of the space in the cell. So in order to achieve your requirement, we can insert this chart into a rectangle, then add the rectangle to the group footer. If we want to
display the chart on the right side, we can directly drag the chat to the right of the rectangle.
If there are any misunderstanding, please elaborate the issue for further investigation.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Crystal 11 Stacked Area Chart Data Start Point X-Axis
I am trying to create a Stacked area chart and by default there is space between the y-axis and the first data point on the x-axis. Is there any way to eliminate this space so that the first data point appears directly on the y-axis?
I found the answer to my question. Uncheck the box "Value Axis Crosses Between Groups" in the "Group (X) Axis Settings" dialog box.
Edited by: Chuck Gebhardt on Oct 14, 2011 12:28 AM -
I have a line chart with each axi defined as follows; x is
defined by time, and y is defined by bytes. My issue is the data is
coming across for two unique points, each identified by the
interface_name field. Is there any way to group the line series by
the interface_name field? I have no control of how the data comes
to me, so I have to use it as is. Also, the interface_name value is
dynamic.
<record>
<bytes type="integer">21344457</bytes>
<time>Sat Mar 29 15:01:00 UTC 2008</time>
<interface_name>Controller 2</interface_name>
</record>
<record>
<bytes type="integer">56743</bytes>
<time>Sat Mar 29 15:02:00 UTC 2008</time>
<interface_name>Controller 1</interface_name>
</record>
In my current implementation I go through all the data. Pull
out each unique interface_name and create a line series for this
interface_name. I then split the data out into separate
arraycollections and assign this as the dataprovider to the
corresponding line series.
I'm wondering if there is a much simpler way to do this.
Something easy that I overlooked.
Thanks
DanHope you are using e4x format for your data and separating
them using the e4x filtering mechanisms like
var control1List:XMLIst = input.record.(interface_name ==
"Controller 1");
var control2List:XMLIst = input.record.(interface_name ==
"Controller 2");
after determining the unique interface_names from the total
name list which can be obtained as
var nameList:XMLList = input.record.interface_name.text(); -
BAM Combo Chart showing data in 2 graphics for the same data object
Hi all,
I’m trying to show 2 views of the same data object in a Combo Chart (e.g. orders created today as a bar chart and orders created yesterday as line chart grouping by hour of day). It was pretty easy adding the same data object twice but the data type of the horizontal axis seems to be lost and it gets sorted as a simple string, leading to strange grouping of the hours with 05:00 representing 5 AM sided with 05:00 representing 5 PM. Also, I’m not able to format such fields using the format values tab.
Is using the same data object two times in the same report an unsupported scenario?
Thanks,
Danielwhy you want to add the same data object twice? Your use case can be achieved with single data object only.
1) Create combo chart and select the data object.
2) On "Choose data fields" page group by datetime field.
3) You will see UI changed to 3 sections - left one with "Group by" section, middle with "Chart values" and right one with "Time Groups".
4) In the right "Time Group" section, uncheck checkbox for continuous time series. Time Unit as hour, quantity as 1.
5) In middle "Chart values" section ,select the fields that you want to display as chart values and respective chart types , in your case orders created today as a bar chart and orders created yesterday as line chart.
5) Click Next and Finish.
6) Then you can go to Value format tab, and change the format for the datetime field as timeunit and required format.
Maybe you are looking for
-
In Yosemite there is no Sync Manager, how do I sync my blackberry?
I have upgraded to Yosemite and am trying to sync my Blackberry, which keeps telling me I have to switch on Sync Manager on my iMac. However Yosemite no longer uses Sync Manager, so what do I do?
-
Possible to use iPad as a display for iPhone?
i have a wifi-only iPad 3 and an iPhone 5 (no tethering plan). i'm wondering if it is possible to connect the two via cable and use the iPad as a display for the iPhone while i am driving.
-
Problem running an infopackage
I have created a Generic extractor, for the Snnn planning structure. But i have a problem when i run the infopackage to upload the data in BW. The field SPBUP in the r/3 system is NUMC 6, and the corresponding infoobject (0FISCPER) is NUMC7, so, i cr
-
Issues with evaluation of EL expressions
Hey everyone I am having issues with EL expressions being printed instead of evaluated when they are between tags. They work fine when they are in the tag itself. I will show you my code: This is a snippet from the parent file that includes the other
-
Hi all when i am trying to increase my undo tablespace Size i go the Following Error? i am doing this operation from Toad. Having Enough Size on Disk, this is the Problem on Production Database Server, using Oracle 10g Rel 1002000100 on HP-Unix SQL>