Add data series to excel chart
I have an envelope on a chart in Excel. I would like to add same test data to the chart. I can open the workbook and get my data on a worksheet, but can't figure out how to add the data series to the chart using ActiveX.
Here is some vi's that I forgot that I had for excel. In it is one vi in particular called create chart.vi have alook at it. I'm sending you the whole llb. i have not tested them in LV 8 yet.
hope they help.
Joe.
"NOTHING IS EVER EASY"
Attachments:
excel.llb 2092 KB
Similar Messages
-
Add a data series dynamically in charts
I am trying to add a data series dynamically in a chart but
it does not seems to work. Here is the sample code. Any idea?
var line1:LineSeries=new LineSeries();
line1.dataProvider=[something];
line1.displayName="New data";
chart.secondSeries.push(line1);
It works if I do the following but I don't want to remove
other series already there.
var arr = new Array();
chart.secondSeries=arr;
var line1:LineSeries=new LineSeries();
line1.dataProvider=[something];
line1.displayName="New data";
arr.push(line1);I see...i don't know why the chart is not refreshing itself
in the next keyframe after you added another series. You can also
try to put the statement:
[myChart.series[(myChart.series as Array).length] = your new
ColumnSeries object goes here.]
in a new frame by doing doLater();
Apparently an asigninment statement on the series array does
the trick. If you don't like that approach, you can also try to
invalidate the display object, so that a refresh is forced.
-george -
I want data series in Keynote chart to enter one at a time.
In older version of Keynote, data series can enter one at a time. In version 6.2, seems all series enter at once. Can different series be made to enter one at a time in Keynote 6.2?
Select the chart
Inspector > Animate > Build IN > Add an Effect
choose an effect
in the Delivery drop down menu select; By Element in Series -
Change the x-axis series in excel chart
Hi,
While plotting an Excel chart using ExcelRpt_ChartWizard(), the x - axis series starts from 0, 1, 2, 3... I like to change the series according to the data present in a particular column. Eg. If column 2 contains 2, 5, 7, 6.2... then the x-axis should be in the order 2, 5, 7, 6.2.....
Can anyone help me regarding this issue?Hi,
Many thanks for this post, It's been quite helpful since there seems no to be so much info available about not so basic generation and manipulation of excels graphs with LabWindows (at least compared to C#).
I am struggling to set my own X-Axis as well but the best I can get is the graph looking like the one of the attached file.
The first row for the X-Axis is 11:47:00 and the last one is 17:46:25, however I get a graph between 0:00:00 and 19:12:00.
May thanks,
Best regards
Attachments:
Graph with LW.png 14 KB -
Showing data series for two charts on one
Hi
I need to represent 2 sets of data on one chart. The first is a linebar chart and the second is a scatter chart. This can be done in Excel by adding multiple named data series.
Is this possible with crystal report 2008.
ThanksI'm a bit late to discussion, but this is I think the most relevant post I could find.
I have the same problem - displaying multiple data series on the same chart (line chart or scatter by date). My problem is complicated by the fact that number of series also depend on the data point.
Essentially I need to plot readout of test in a monitored room where different number of sites maybe tested depending on the room. So one room might have three data readouts (three sites), and another five (five sites), and when charting by room, one chart will have three series, and another five. So even considering using overlapping transparent charts, there are issues of conditionally enabling/disabling the whole chart, of determining maximum number of charts (and room might have dozens of test sites) and also displaying appropriate legend(s).
There must be a better way!
TIA,
Andrey. -
Add dinamically series to a chart
Hi all,
Is there any way to dinamically add series to a chart? I.e. based on the results of a query by using pl/sql or api or similar.
Many thanksHi Javier,
why don't you use the Query Source Type="Function Returning SQL Query" feature of the series?
Create 1 series with the above type and depending how many columns you return in your chart query that many series you have. Or do I miss something?
eg.
DECLARE
vQuery VARCHAR2(32767);
BEGIN
vQuery := 'select null, to_char(o.order_timestamp, ''MON RRRR'') label, ';
IF :P1_OPTION = 'NO CLUE'
THEN
vQuery := vQuery || 'sum (decode(p.category,''Computer'',oi.quantity * oi.unit_price,0)) "Computer",
sum (decode(p.category,''Video'',oi.quantity * oi.unit_price,0)) "Video" ';
ELSE
vQuery := vQuery || 'sum (decode(p.category,''Computer'',oi.quantity * oi.unit_price,0)) "Computer",
sum (decode(p.category,''Audio'',oi.quantity * oi.unit_price,0)) "Audio",
sum (decode(p.category,''Phones'',oi.quantity * oi.unit_price,0)) "Phones" ';
END IF;
RETURN vQuery ||
'from demo_product_info p, demo_order_items oi, demo_orders o
where oi.product_id = p.product_id
and o.order_id = oi.order_id
group by to_char(o.order_timestamp, ''MON RRRR''), to_char(o.order_timestamp, ''RRRR MM'')
order by to_char(o.order_timestamp, ''RRRR MM'')';
END;Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/ -
Team:
Is this possible to write data to Excel using javascript.
I have created ScriptUI Dialog window. but i can't able to store datas in Excel.
I can add data column wise in excel( using writeln comment) but I can't able add data to Row wise.
Please anyone help me to solve this problem...
Thanks in Advance.
-yajiv
Source Window :
and the outputs wants......
save the excel name to the Batch ID..Hi Everyone!
I can add data column wise in excel( using writeln comment) but I can't able add data to Row wise.
Please anyone help me to solve this problem...
Thanks in Advance...
-yajiv....
Code :
var myDoc = app.activeDocument;
var myAllLinks = myDoc.allGraphics;
var myLink=new Array()
var mySeen = Object;
var myLogFile = new File("~/Desktop/Link Files.xls");
myLogFile.open("w", undefined, undefined)
myLogFile.writeln("Link Name");
for ( i = 1; i < myAllLinks.length; i++ )
var myLinkName = myAllLinks[i].itemLink.name;
var l=myLinkName.length;
var T=myLinkName.substring(l-4);
if (T==".tif"){
myLogFile.writeln(myAllLinks[i].itemLink.name); -
Overlapping of data series in Combo Chart
Hi All,
We are working on VC7.0
I have three data series elements and I would like to display them in a combo chart with two columns and a line .
( 1.Actual Gross Turnover - Column
2. Planned Gross Turnover - Column
3. Actual Gross Turnover prior Year - Line )
I tried with different options present there in Configure Element , but the two columns overlap with each other i.e the highest column is overriding the lower column.
Can someone help me out in this ?
Thnks,
NRHi Pasha ,
yes, i am quite sure that bars are overlapping and checked with the 3 options you have mentioned.
3. I have tried streching the graph horizontally but still the same display.
2. I did moved to mouse to the edge points of bar .. it only mentioned one data series instead of two
1. See if the db column contains NON-ZERO values ? ..
I am not sure of it but when deploying the model in VC , i got a warning message saying " Zero fill is checked without Max length in field "Gross Turnover Actual " of entity " query name "
Let me know, how this efffects the display and what do i need to do to resolve the issue .
Appreciate your valuable inputs ...
Thnks,
NR -
How can I change the bar color (data series) in a chart on the iPad version?
The number of different. colors used in a char (line, bar, pie, ...) appears to be limited to six, quite short for my needs, however, Excel imported charts show up in the original colors (12)... until I change the chart type (to get a homogenous look with the rest of the content) it gets changed to the 6 basic colors. Any clue on how to modify individual series colors? Note that I am asking about the iOS version.
ThnxDoes any one know how you can adjust the font size (point size) for the file
names.
Sadly enough you can't chance that, feel free to add a feature request for
that, the more there ask for the bigger chance it will be realized.
It would be great if the colors for the image name (background and font color)
could be changed so the contrast could also be increased so it is also easier
to read.
And this the cheerful part, go to Bridge preferences General tap and play
with the sliders for user interface and Image Backdrop until your satisfied.
BTW using the slider for thumbnail size bottom right of the Bridge window to
increase the thumbs does not increase the font but makes it nevertheless a
little clearer. -
Problem - over lie of data series in Line chart (Web Application Designer)
Dear Experts,
I have created a chart with below requiments from my user by using web application designer.
1) Key Figure 1 (Chart type -> column )
2) Key Figure 2 (Chart type -> column )
3) Key Figure 3 (Chart type -> Line; color assigned -> BLACK; Visibility: Visible)
4) Key Figure 4 (Chart type -> Line; color assigned -> YELLOW; Visibility: Visible/Hidden)
5) Key Figure 5 (Chart type -> Line; color assigned -> RED; Visibility: Visible/Hidden)
The line chart of Key Figure 3 must always appear in Front then others Key Figures.
Then following by, Key Figure 4. Last is Key Figure 5.
As I know the order of display line chart is infflucing by the order of Key Figure in structure by descending, likes below
1) Key Figure 3 (Rank of front -> 3rd; Chart type -> Line; color assigned -> BLACK; Visibility: Visible)
2) Key Figure 4 (Rank of front -> 2nd; Chart type -> Line; color assigned -> YELLOW; Visibility: Visible/Hidden)
3) Key Figure 5 (Rank of front -> 1st; Chart type -> Line; color assigned -> RED; Visibility: Visible/Hidden)
So, I have conflict on fulfilling these 2 request on assigning the color and control their visibility and lines over lie.
Please advice me if you have any suggestion on controlling the lines order.
Thanks!
~ GP
Edited by: GP Poh on Jun 9, 2010 12:32 PMHi Priya, thanks for input.
I think I should further elaborate the problems. Thanks for your highlight.
I have a lines chart with five key figures. So my chart will have five lines.
Some lines from chart will overlap if the data are same.
When overlapping of lines happens, I want to control the order of which series should be appear first.
Likes below example,
1) Key Figure 1 (Chart type -> column )
2) Key Figure 2 (Chart type -> column )
3) Key Figure 3 (Chart type -> Line; color assigned -> BLACK; Visibility: Visible)
4) Key Figure 4 (Chart type -> Line; color assigned -> YELLOW; Visibility: Visible/Hidden)
5) Key Figure 5 (Chart type -> Line; color assigned -> RED; Visibility: Visible/Hidden)
KF1 KF2 KF3 KF4 KF5
CW 1 30 30 80 80 50
CW 2 40 50 90 60 90
CW 3 70 50 90 90 90
CW 4 80 70 70 90 70
As you can see, there is overlap in these value.
CW 1 KF3, KF4 -->80
CW 2 KF3, KF5 --> 90
CW 3 KF3, KF4, KF5 --> 90
The order which i want the series should appear first when overlapping.
- KF3 must appear on top.
- Then, follow by KF5
- Last is KF4.
So now, i have no idea to control the overlap orders except adjusting the sequence of keyfigure from query.
Feel free to give me any input! -
Data Series Missing in the chart.
Hi ,
I have included 4 data series in the chart item.
But its displaying only one data series in the output.
that is its displaying only the last series. for eg
i have included Data series1,Data series2,Data series3,Data series4,
in output its displaying only Data series4.
what settings i have to make inorder to get all the four data series to be displayed.
Please Help.
Thanks
Tulsi
Edited by: Thulasi ram on Jun 16, 2008 9:34 AMHi,
GML File is developed when you are developing your apllication.
Procedure to Send the GML.
Click on Model Menu bar in the Tool bar->select Export option
Then Zip it and send to me
Regards,
Govindu -
Formatting data series in charts
Hello all,
Need help in how to format data series used in charts(pie and bar). The charts show proper data but i need the amounts in the charts to be formatted using comma separators and $ symbol. Had tried using the NSTR functions and these work properly for table data , but not for charts. Could someone pls conform if this is a known limitation with charts or is this yet another issue with ehp1 ? If so , are there any other alternatives for this approach.
Vc version is 7.01 SP5 (ehp1)
Any help would be appreciated.
RgdsDid you try:
OracleBI/web/app/res/s_.../popbin/
EX:
line.pcxml Look for <SeriesDefinition ...
we modified the line width and a few other things. You'll have to modify all the pcxml files for all the chart types you want to customize. -
SP2010: Different colors for chart bars in Chart Web part with single data series?
Hello,
I've been asked to create a chart for visual display and summary of Status values within a SharePoint list of job positions. The list of positions includes a Status field with the only values being Open and Closed. I created a page that shows the list, and
at the top I inserted a Chart Web part that displays two bars - one showing the number of Open positions and one showing the Closed positions. Because I was having difficulty getting the totals for each Status value to show up in the chart, I followed
the instructions at
http://highbrowse.wordpress.com/2012/07/04/chart-counts-from-sharepoint-lists/ and pointed my chart at the new "Status values" list - this worked well to display the sum counts for each of the two Status values in separate bars.
This was all fine and good, except that because I am only using one data series for my chart, both of the bars (for Open and Closed) show up as the same color. I've been asked to make them different colors but cannot figure out how to do so. Can someone
provide guidance on how I could make the two bars different colors? Thank you so much.
cheersHello,
as far as I know, the chart web part does not have any settings to change the color of individual data points or plot data points of a series in different colors. If you only have two values in the series, you could use a pie chart instead of the column
or bar chart. In a pie chart, the different slices have different colors.
cheers, teylyn -
Excel chart - create second axis
I've created a script which makes an Excel object, takes some data, generates a chart and then exports the chart as a JPG. The thing is it's a CPU report with one series for Mhz and one for % - and using only one axis results in it ending in the thousands
and not being able to see the second series. Do you know how to specify a second axis on the right-hand side (left for Mhz right for %) which would only go up to 100? I don't even know how to do it in Excel, never mind PowerShell.
Thanks in advance. Oh yeah, here's my code:
# Generate graph
$xRow = 1
$yRow = $rows
$objRange=$Worksheet.range("a${xRow}:c${yRow}")
$colCharts=$excel.Charts
$objChart=$colCharts.Add()
$objChart.ChartType=4
$objChart.Axes(0).CategoryType=2
$objChart.Axes(0).TickLabelSpacing=7
$objChart.HasTitle = $true
$objChart.ChartTitle.text = "CPU Report"
$a=$objChart.Activate
$savepath = "C:\"
$a=$objChart.export($savepath + "cpu.jpg","JPG")Hi Bobbinspenguin,
If you want to add a second series in Excel chart with powershell, please refer to this article:
Tutorial: PowerShell and Microsoft Chart Controls (or How To Spice Up Your Reports)
I hope this helps. -
Programitically creating column series to flex chart not showing the chart
I want to create n number of series dynamically when i run my
application.
where n can be any value it depends on the data which i
retrieve from database. below i pasted the example
( in this example i have taken n = 4 i.e., CountMax=4 if i
change the CountMax=6 then it should generate 6series dynamically
after calculating the values. ). just copy the below code and paste
it in Flex builder and run the application.
in this example i am facing problem, chart series are not
showing. i dont know the reason why its not showing, if anyone got
the solutions for the problem please let me know. my actual
requirement is to retrieve data from Salesforce account and want to
populate the arraylist then display the chart.
<?xml version="1.0"?>
<!-- Example showing using mx:LineSeries vs using AS to
create chart series programmatically -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="drawChart()" layout="absolute">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.charts.series.ColumnSeries;
import mx.charts.series.LineSeries;
import mx.collections.ArrayCollection;
[Bindable]
public var categoryArray:ArrayCollection = new
ArrayCollection();
[Bindable]
public var sArray:ArrayCollection = new ArrayCollection();
public function drawChart():void
var histMax:int = 25;
var histMin:int = 5;
var countMax:int = 6;
var tmpArr:Array = new Array();
categoryArray.removeAll();
for(var n:int = 0; n < 10; n++)
tmpArr[n] = histMin + Math.round((2 * n) / 20 * (histMax -
histMin));
categoryArray.addItem({data:tmpArr[n]});
// Add a series to the chart with the x-values and y-values
// from the arrays and set the series type to a column chart
for(var chartSeries:int = 0; chartSeries < countMax;
chartSeries++)
var tmpseries:Array = new Array(10);
for(var i:int = 1; i < 10; i++)
tmpseries = 3 * Math.random();
var cs:ColumnSeries = new ColumnSeries();
columnchart1.series.join( = [cs];
sArray.addItem({data:tmpseries});
//columnchart1.dataProvider = sArray;
cs = new ColumnSeries();
cs.dataProvider= sArray;
cs.displayName = 'Series';
cs.yField = 'data';
columnchart1.series[chartSeries] = cs;
]]>
</mx:Script>
<mx:Panel title="Dynamic Series Adding Sample"
width="195%" height="90%" layout="absolute">
<mx:ColumnChart id="columnchart1" height="338"
width="396" showDataTips="true" type="stacked" x="10" y="0">
<mx:horizontalAxis>
<mx:CategoryAxis dataProvider="{categoryArray}"
categoryField="data"/>
</mx:horizontalAxis>
<mx:verticalAxis>
<mx:LinearAxis baseAtZero="true" maximum="3"
autoAdjust="true"/>
</mx:verticalAxis>
</mx:ColumnChart>
</mx:Panel>
</mx:Application><?xml version="1.0"?>
<!-- Example showing using mx:ColumnSeries vs using AS to
create chart series programmatically -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="drawChart()" layout="absolute">
<mx:Script>
<![CDATA[
import mx.graphics.SolidColor;
import mx.charts.HitData;
import mx.controls.Alert;
import mx.charts.series.ColumnSeries;
import mx.charts.series.LineSeries;
import mx.collections.ArrayCollection;
[Bindable]
public var categoryArray:ArrayCollection = new
ArrayCollection();
public function drawChart():void
var histMax:int = 25;
var histMin:int = 5;
var countMax:int = 3;
var tmpArr:Array = new Array();
categoryArray.removeAll();
for(var n:int = 0; n < 10; n++)
tmpArr[n] = histMin + Math.round((2 * n) / 20 * (histMax -
histMin));
categoryArray.addItem({data:tmpArr[n]});
var cs:ColumnSeries = new ColumnSeries();
columnchart1.series = [cs];
// Add a series to the chart with the x-values and y-values
// from the arrays and set the series type to a column chart
for(var chartSeries:int = 0; chartSeries < countMax;
chartSeries++)
var tmpseries:Array = new Array(10);
for(var i:int = 0; i < 10; i++)
tmpseries
= 1 * Math.random();
if(tmpseries > 0.5)
tmpseries
= 1;
else
tmpseries = 0;
var testArrCol:ArrayCollection = new ArrayCollection();
for(var j:int =0; j < 10; j++)
var m:Number = tmpArr[j];
var m1:Number = tmpseries[j];
testArrCol.addItem({mData:m.toString(),nData:m1.toString()});
cs = new ColumnSeries();
cs.dataProvider = testArrCol;
cs.displayName = 'Series' + chartSeries;
cs.xField = 'mData';
cs.yField = 'nData';
columnchart1.series[chartSeries] = cs;
public function myTipFunction(hitData:HitData):String
return(ColumnSeries(hitData.element).displayName +" - "+
hitData.item.mData + "\n" + "Value : "+ hitData.item.nData);
]]>
</mx:Script>
<mx:Panel title="Dynamic Series Adding Sample" width="98%"
height="90%" layout="absolute">
<mx:ColumnChart id="columnchart1" height="338"
width="396" showDataTips="true" type="stacked" x="10" y="0"
dataTipFunction="{myTipFunction}">
<mx:horizontalAxis>
<mx:CategoryAxis dataProvider="{categoryArray}"
categoryField="data"/>
</mx:horizontalAxis>
<mx:verticalAxisRenderer>
<mx:AxisRenderer visible="false"/>
</mx:verticalAxisRenderer>
</mx:ColumnChart>
</mx:Panel>
</mx:Application>
Maybe you are looking for
-
Lost all my passwords in mozilla, is there a way to retrieve them?
While looking in my security window folder of passwords I somehow inadvertent did something to lose all my stored passwords -- is there a way to retrieve them
-
Dears, While running ME5A report using ALV, the delivery date is not coming properly, i.e., it is coming as '20090722'. What should be done so that it displays properly, such as '22.07.2009'. Thanks and Regards,
-
How can I individually align various columns in a text frame?
I've searched and searched but I cannot find anyone who has asked this, perhaps it isn't possible? I have a Circle, and within it, I have 6 text columns. I basically want to align the left most column to the left, the rightmost to the right, and the
-
Purchased a KT3 Ultra2 after reading good reviews. Replaced old Chaintech CT-7AJA motherboard. Fitted new 512MB DDR memory module (PC2100). Reconnected all devices etc. Switched on power. Front panel power LED came on. Hard drive LED came on for 20 s
-
How to use help in OSX Lion when offline
I am often offline for months when working at sea. When I try to access information for using the operating system, or when trying to do something on my computer, by using Help in the menu bar, very little information is available since I don't have