XY Graph Pains
I took this code from an example. I hooked up my two data sources and this is what I get. What now? The example does NOT use dynamic data sources. Is this the issue?
Solved!
Go to Solution.
Attachments:
Broken LabView.JPG 51 KB
This is the easiest solution I could find. I did not find a lot of info on changing the dynamic data to waveform or vice versa. My problem now is the plot only shows the current point. Do I need to store the data in an array before sending it to the build xy graph vi? I want a load deflection plot starting at zero and going until the vi is stopped. This vi is in a while loop with the channels that are aquireing the data.
Let me know if you need to see more to help. Thanks.
Attachments:
untitled.JPG 14 KB
Similar Messages
-
Hi
I have a 2D Array and and i am using the paint function to
draw a graph. T
I need to draw the axis of the graph but i am finding this difficult,
1. I cannot pass the 2D array to the public void paint ()method
2. I do not know how to write the axis they should be in the first part
of the array
String [][] otherFrameData;
barChart(String [][] Data)
otherFrameData= Data;
setTitle("Graph Chart");
setSize(400,350);
setVisible(true);
public void paint(Graphics g)
int x = 50;
int y = 300;
int width = 20;
int gap = 5;
//The Axis
g.drawLine(x,y,x+ otherFrameData.length*(width+gap),y);
g.drawLine(x,y,x,30);
//Labelling the axis
for (int i=0; i < otherFrameData.length; i++)
g.drawString(otherFrameData[0][0],i*(width+gap)+gap+x,y+20);
Can someone please help me make the 2D array available to public void paint()
and how to write the axis names the firs part of the array are months
as i am very confused as to how to get this working
CheersVery simple example goes like this (since that is homework, I didn't document the code ...):
import java.awt.*;
import javax.swing.*;
import java.awt.font.*;
public class Chart
public static void main(String args[])
final JPanel contentPane = new JPanel(new BorderLayout());
contentPane.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
contentPane.add(new JLabel("A Chart"), BorderLayout.NORTH);
contentPane.add(new ChartPanel(new int[]{50, 100, 75, 82}), BorderLayout.CENTER);
final JFrame frame = new JFrame("Chart");
frame.setContentPane(contentPane);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(640, 480);
frame.setVisible(true);
static class ChartPanel extends JComponent {
private final static String[] months = {"Jan", "Feb", "Mar", "Apr"};
private int[] rainfall;
public ChartPanel(int[] rainfall) {
this.rainfall = rainfall;
public void paint(Graphics g) {
FontRenderContext frc;
if (g instanceof Graphics2D) {
frc = ((Graphics2D)g).getFontRenderContext();
} else {
frc = new FontRenderContext(new java.awt.geom.AffineTransform(), false, false);
int maxRainFall = Integer.MIN_VALUE;
for (int i = 0; i < rainfall.length; i++) {
if (rainfall[k] > maxRainFall) {
maxRainFall = rainfall[k];
maxRainFall += 10 - (maxRainFall % 10);
final int xOff = 20;
int x = xOff;
TextLayout tl;
final Font font = g.getFont();
final float[][] textData = new float[months.length][2];
float minAdvance = Float.MAX_VALUE;
float maxAdvance = Float.MIN_VALUE;
float maxAscent = Float.MIN_VALUE;
float maxDescent = Float.MIN_VALUE;
for (int k = 0; k < months.length; k++) {
tl = new TextLayout(months[k], font, frc);
final float advance = tl.getAdvance();
final float ascent = tl.getAscent();
final float descent = tl.getDescent();
if (ascent > maxAscent) {
maxAscent = ascent;
if (advance > maxAdvance) {
maxAdvance = advance;
if (advance < minAdvance) {
minAdvance = advance;
if (descent > maxDescent) {
maxDescent = descent;
final int y = maxRainFall + 12 + (int)maxAscent;
final int offset1 = Math.max((int)minAdvance - 5, 4) / 2;
final int offset2 = (int)maxAdvance + 10;
for (int k = 0; k < months.length; k++) {
g.drawString(months[k], x, y);
final int height = rainfall[k];
g.drawRect(x + offset1, y-12-height-(int)maxAscent, 5, height);
x += offset2;
int lineX1 = 0;
int lineX2 = xOff+x;
int lineY1 = y-6-(int)maxAscent;
int lineY2 = lineY1;
g.drawLine(lineX1, lineY1, lineX2, lineY2);
lineX1 = xOff/2;
lineX2 = lineX1;
lineY1 = y+(int)maxDescent;
lineY2 = 0;
g.drawLine(lineX1, lineY1, lineX2, lineY2);
} -
How do I select more then one channel to view in tdms file viewer graph panel
I have a TDMS file that I can view with the labview 2013 TDMS file viewer and I can select one signal out of 15 signals to view on the graph panel. however I would like be able to look at 2 or 3 signals
on the same graph but can't seem to be able to select more then one signal at a time. Is there a way to select more then one to view?I've modified the TDMS viewer in the past to allow selecting multple channels. It's a little bit of a pain because the tree control in the viewer only allows you to select one item. You have to edit the tree to allow multiple items. Now your selection is an array instead of a scalar. This means the rest of the code has to be updated, and the references to the tree in subVIs need to be updated. Not impossible but it takes some time. Alternativly open it in Excel with the free add-in then you can select the two columns you want and insert a graph. Not as simple for the user but using Excel, which users should be familiar with might mean users need less training on data files.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously. -
Hw can we plot a graph from the data given in a flat file
i need a program that reads a file with 2 columns:
- time in minutes for the x axis
- value (e.g. temperature, heart freq.) for the y axis
Plot the last m minutes, the y axis shall have a range from min...max.
Start with parameter values m=5, speed s=1, min=20, max=120.
After m=5 minutes, the graphical display shall plot the curve of the
last 5 minutes. In other words, you have to implement a sliding window
with a 5 minute history
The speed s is useful for testing, 1=real time, 10=10 times faster.
To implement the real time behaviour, you have to let the program wait the
time interval between two values. The time interval is not constant.
A sample file looks like this (lines 1..3 are always comments):
-------8<-------cut-here-------8<-------
Logfile of program temperature_monitor.cpp
Temp sensor #42, range 30..60 degrees Celsius
2007-06-21 20:30
0.017737 45.2
0.045122 42.7
0.073591 43.1
-------8<-------cut-here-------8<-------
You can download the test data file here:
http://alf42.dyndns.org/oost/temp_testdata_2007-06-21
An axample how the output can look like is here:
http://alf42.dyndns.org/oost/temperature_diagram_example.gifhi
i have tried the code for it and i am getting the
barcharts but not the graph as the output
Your code is rubbish. You also did not use code tags. But let's examine the rubbish points shall we?
import java.awt.*;
import javax.servlet.*;There is no need for you to import servlet here. Especially as this later appears to be an applet.
import java.lang.*;Importing java.lang is redundant.
import java.applet.*;
public class classfile{This is a poorly named class for several reasons. One it does not follow conventions, class names should begin with a capital letter. Two classfile is just a stupid name.
Also your class should most likely extend applet if indeed you mean to write an applet. This is probably pointless because you probably don't mean to write an applet, it's just that you have no clue.
>
int n=0;
String lable[];
int value[];
blic void init()
try{
n= Integer.parseInt(getParameter("column"));n is pointless since everything is hardcoded anyways for four elements
lable = new String[n] ;
value=new int[n];
lable[0]=getParameter("lable11");
lable[1]=getParameter("lable12");
lable[2]=getParameter("lable13");
lable[3]=getParameter("lable14");
value[0]=Integer.parseInt(getParamater("c1"));
value[1]=Integer.parseInt(getParamater("c2"));
value[2]=Integer.parseInt(getParamater("c3"));
value[3]=Integer.parseInt(getParamater("c4"));
catch(NullFormatException e )This is garbage.
System.out.println("Null format Exception");
public void pain(Graphics g)While I am forced to agree with the sentiment here the correct name for this method is paint.
for(int i=0;i<n;i++)
g.steColor(color.red);That is garbage for a variety of reasons.
g.drawString(lable, 20, i*50+30);
g.fillRect(50, i*50+20, value[i], 40);
So try again. Maybe learn some Java first? Just a suggestion. -
How to output 3D Surface Graph as image file (bmp or jpg or png)
I'd like to output a graph from the 3D surface.vi module as a regular
image (like a JPG or BMP). At this time, I'm going through an
awkward process of taking a screen cap, then isolating the image with
photoshop (painful and time consuming).
Any idea or input would be appreciated.RIght-click on the graph and "create...invoke node". On the diagram, select method "get image".
Save the output of "image data" as JPG, BMP, or PNG using the tools from the "Graphics Formats" palette.
(The code shows would get a 24bit PNG image)
See how far you get. Good luck!
Message Edited by altenbach on 08-12-2005 02:50 PM
Message Edited by altenbach on 08-12-2005 02:51 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
GetImage.png 3 KB -
Monitoring Hyper-V 2012 R2 - Performance Data/Graphs Equivalent to XenCenter/vSphere Client
Hello,
We've just moved away from Xenserver (hooray!) to Hyper-v 2012 R2, but I must admit the best thing about xenserver was xencenter. The ability to see the real time performance of a VM and see its network utlisation/CPU/Memory was very very useful. Also the
same for VMWare vsphere client.
Although Hyper-V 2012 R2 is a lot better than xenserver the realtime monitoring of VM's is awful!
We have SCVMM but that doesn't give you much either, only average CPU data..and only when it decides it will show the graph!
I've tried a few free tools, VMTurbo, Solarwinds VM Monitor (free - which doesn't support 2012 R2) plus some others...but none give us what we want.
I've seen all these other posts about monitoring reports etc which are all good and well but when you need real-time data how are people getting this? We don't want OM as we cannot afford it nor do we want the excess of managing it (not even sure if this
would give us what we want).
Can anyone give me ideas of what they are using for this or what products, I feel MS have messed up a bit here, if they had these features in Hyper-v Manager/Failover Cluster Manager then it would be on a par with VMWare for sure.
Many thanks
MattUpdate:
I've got a trail license of SCOM and installed it and connected to SCVMM (eventually...what a pain having to install extra packages etc!! good stuff MS! You'd think as SCVMM is part of the System Center family it would be easy to connect to SCOM)
I also got the free version of VeamOne as suggested by Leonardo.
SCOM is too complicated and requires far too much configuration just to get simple monitoring from Hyper-V and I really can't believe you need all this extra software just to get performance graphs from Hyper-V/VM's. Really don't want to install extra agents
on the hosts etc goes against Hyper-V best practice about keeping the servers light. Plus even trying to get simple data out of SCOM is tiresome.
VeamOne on the other hand...for a free product does exactly what SCVMM 'should' be doing.
Plus very useful extra info/alert that SCVMM doesn't even show up which I wasn't aware of, SCOM probably would show these alerts after you've spent days and days trying to figure out how to configure it and reading loads of articles.
So unless there is some hidden gem in SCVMM then it needs to be improved greatly on the monitoring side to fully compare with VMWare I believe as the idea of having to setup/configure SCOM just for monitoring is ridiculous.
I'm going to stick with VeamOne for now as its simple, gives me the info I require. -
Hi,
I plot data on a graph in SI unit. Sometimes the 0 of the y-axis shows a very small number but not zero.
This is super ugly and annoying.
I saw that somebody complained about that 4years ago: http://forums.ni.com/ni/board/message?board.id=170&message.id=47417&requireLogin=False
I use 8.5 and this "bug" is still there!
Is there a fix or a work around?
thanks
Attachments:
Axis Zero.png 12 KBI agree, this is a real pain !!!
The workaround was given by Greg McKaskle : Try changing the axis format. Avoid autoscaling.
Chilly Charly (aka CC)
E-List Master - Kudos glutton - Press the yellow button on the left... -
OK quick question....
In LV 6.1, is there any way to influence the Z-order of the
plots? I want to have a basic plot (it's a multiple-peak
spectrum) in the background with the area between the plot and zero
filled. I then want to be able to superimpose the individual
peaks on this basic plot. At the moment, if I place the basic
plot at index 0, it overwrites all others, and the individual peaks
become hidden (this is bad). I've adapted to this and simply
reversed my order of plots (this is good).
The problem comes whan I have varying amounts of plots on my
graphic. Setting and re-allocating the visual plot properties
each time I select or deselect a plot is really slowing down my
code. What I really need to be able to do is simply set the
Z-order of the plots so that I can effectively send the basic plot to
the background, irrespective of it's order in the plot list. I
also don't want to limit the number of plots as I don't like that
approach out of principle. I like my code being able to take
whatever is thrown at it.
Here are a couple of pics illustrating my problem....
Thanks in advance
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Attachments:
This is good.png 7 KB
This is bad.png 6 KBChristian and Lynn,
Thanks for the replies. I think I'll have to go the route
suggested by Christian since I kind of thought that changing the
Z-order of the graph rendering wouldn't be possible.
Lynn, This is exactly what I'm doing at the moment. I'm
basically reversing the array so that the last three plots are always
the same, and then setting the plot properties accordingly. This
is working, but it's a real pain and it's also awkward to
maintain. Speed isn't critical, but it takes around 500 msec to
allocate 17 plots. This is already noticeable in an otherwise
zippy UI.
What I'll most likely do is the following:
When the spectrum is loaded, allocate plots for ALL data sets (This
part I won't limit in the number of plots, thus allowing for huge
amounts of data - no artificial limit). I still have to do some
plot processing and setting display properties of the graph, but this
will be done on loading the data, so it's not TOO bad.
Then afterwards, as the individual plots are selected and deselected,
I'll simply hide the respective plots. This makes at least the
handling of appearing and disappearing plots much easier. This
means that all plots will be permanently visible on the Legend, but
that's not such a problem really. Only cosmetically. I need
to think about whether the legend is even neccessary. I can't
limit the number of entries visible on the legend, because the most
important are at the end. I have thought of creating a dummy XY
graph off-screen and using the legend from that instead of the legend
from the actual XY graph, but that's not really making things simpler.
EIther way, thanks for the help guys,
Does anyone know how things look in later versions of LV? How
about the all-new super duper turbo-charged LabVIEW 8.0? (this post
will seem so silly in 5 years time when LabVIEW X is around). Any
option to control the Z-order ot the graph rendering?
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2) -
CFCHART Interpolating Bar Graphs
CFCHART is interpolating when plotting bar charts. I can see
where interpolation would make sense for line charts, but not for
bar charts. I am plotting stacked bar chart series, and am getting
non-existant data appearing in the bar charts because of this
interpolation.
Can this be turned off? The default for a bar graph should be
to not interpolate.
I have been manipulating my dataset to explicitly add 0
values for the non-existant points, but that is a royal
pain.You can alter the default chart style (or create a new chart
style) by editing the default.xml file in the
CFROOT\charting\styles folder.
I copied and changed the default.xml file and saved it as a
new xml style file. I then invoke the new style using the
<cfchart style="newstyle"... parameter where newstyle is
the name of the new file.
In the xml file itself, all you have to do is change the
isInterpolated parameter in the <frameChart tag> from
isInterpolated="true" to
isInterpolated="false" -
I need a stacked bar graph stacked but overlaying data help please
Hi,
I have a requirement to change an existing combination graph.
Currently we use a combination graph that has a bar that shows the usage accross a number of weeks, with a line that shows total available over the top. So the customer can see what they have used in a week against themaximun it could be used in that week.
Unfortunatley our customer would like this changes to a single bar graph that shows the usage and then if the total available is more than the usage (it is sometimes the same but never less) then this should be added to the bar graph to increase the bar in a different colour.
I have looked at Reports 10g and the stacked bar graph seems perfect but this adds the two values together and not just the increase. I know i could minus one from the other but with the way my data is structured in the data model this could be a pain as they are linked via a data link in the data model and also seems a bit of a work around. Is there no way to have a overlay on the stacked graph or is there another way to achieve this that i cant see.
ThanksI was able to figure it out.
Instead of using creating the dataset using:
CategoryDataset datasetWorkload = DatasetUtilities.createCategoryDataset()
if a 'DefaultCategoryDataset' is used, the values to be displayed can be customised:
DefaultCategoryDataset result = new DefaultCategoryDataset();
result.addValue(200.0, "Allocated", "Jan 04");
result.addValue(500.0, "Allocated", "Feb 04");
result.addValue(10.3, "Over-Allocated", "Jan 04");
result.addValue(16.2, "Over-Allocated", "Feb 04");
Thanks for your time, users: wpafbuser1 and practissum. -
Shortcuts don't stick. Hidden shortcut for Graph Type?
I realize there is a glitch that Adobe won't address. Custom shortcuts sometimes don't stick. The only tip I've received is to reselect my custom shortcuts each time I launch Illustrator (this is a pain).
I tried a different approach and assigned an alternative shortcut. But it still doesn't stick for one menu item: Object>Graph>Type.
When I was creating a new graph, I was in the data window and accidentally hit a key that opened the Graph Type dialog. I might have been imagining this, but does anyone know if there's an alternative key to open the Graph Type window?
I suspect Adobe is already preparing CS5 so I don't see a fix coming at all.
thanksI set it to Shift I and it worked after relaunch on a Mac.
As far as the command aboveI doubt that will work. -
PAINFULLY slow- can take 4 min to infinity to change tabs!
I have a late 2008 MacBook Pro (original unibody MBP) that's running PAINFULLY slow! I used to be able to run 2 browsers with 15 tabs each, Photoshop, and word all at once. Over the last couple months, I can have as little as a browser with a few tabs and it grinds to a halt. I can simply click on a tab, or on a drop down menu, and I'll get the spinning beach ball for 4 or 5 minutes. Even cmd-opt-esc is unresponsive. Then, minutes later, it'll instantly execute anything I commanded over the last several minutes. Firefox seems to be the worst offender, but it can happen no matter what's running. It can happen immediately after rebooting, too (I used to only have to reboot every few weeks, now it's several times per day)
CPU load is 98% idle after it catches up, but once it catches up and the graph refreshes and I can see it was about 60% user load and 15% system while it was choking on the monumental task of opening the "File" drop-down menu
There are 482 threads and 129 processes.
This is the original unibody Mac with 2.4 ghz core 2 duo. It's been upgraded with 4GB of ram (2.7 used) and a 1TB hard drive. I did those upgrades 2 years ago and they've worked fine until recently. Clicking "get info" on the HD says 333 GB are free, but under "about this mac" it says 121 GB are free and 211 are used for "backup". I'm running OS-X 10.9.2 and it says there are no updates to install.
I've reset system manager
I've reset PRAM
I've fixed disk permissions.
No effect
I know I don't have the speediest machine, but even a mid-80's mac could smoothly handle a drop-down menu, and this is a recent problem. I'm at a loss here, guys. Any idea? My computer is quickly becoming unusable!Great- Thanks! Here's the info...
Hardware Information:
MacBook Pro (15-inch, Late 2008)
MacBook Pro - model: MacBookPro5,1
1 2.4 GHz Intel Core 2 Duo CPU: 2 cores
4 GB RAM
Video Information:
NVIDIA GeForce 9400M - VRAM: 256 MB
NVIDIA GeForce 9600M GT - VRAM: 256 MB
System Software:
OS X 10.9.2 (13C1021) - Uptime: 0 days 3:17:46
Disk Information:
SAMSUNG HM100UI disk0 : (1 TB)
EFI (disk0s1) <not mounted>: 209.7 MB
Macintosh HD (disk0s2) / [Startup]: 999.35 GB (121.34 GB free)
Recovery HD (disk0s3) <not mounted>: 650 MB
MATSHITADVD-R UJ-868
USB Information:
Apple Inc. Built-in iSight
Apple Inc. BRCM2046 Hub
Apple Inc. Bluetooth USB Host Controller
Apple, Inc. Apple Internal Keyboard / Trackpad
Apple Computer, Inc. IR Receiver
Thunderbolt Information:
Gatekeeper:
Anywhere
Kernel Extensions:
[not loaded] com.parallels.kext.prl_hid_hook (4.0 3522.205912) Support
[not loaded] com.parallels.kext.prl_hypervisor (4.0 3522.205912) Support
[not loaded] com.parallels.kext.prl_netbridge (4.0 3522.205912) Support
[not loaded] com.parallels.kext.prl_usb_connect (4.0 3522.205912) Support
[not loaded] com.parallels.kext.prl_vnic (4.0 3522.205912) Support
[not loaded] com.roxio.TDIXController (1.7) Support
Startup Items:
FanControlDaemon: Path: /Library/StartupItems/FanControlDaemon
Launch Daemons:
[loaded] com.adobe.fpsaud.plist Support
[loaded] com.google.keystone.daemon.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
Launch Agents:
[running] com.canon.MFManager.plist Support
[loaded] com.google.keystone.agent.plist Support
User Launch Agents:
[failed] com.adobe.ARM.[...].plist Support
[loaded] com.facebook.videochat.[redacted].plist Support
[loaded] com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist Support
[loaded] com.macpaw.CleanMyMac2Helper.scheduledScan.plist Support
[loaded] com.macpaw.CleanMyMac2Helper.trashWatcher.plist Support
User Login Items:
Temperature Monitor
Quıcĸsıɩⅴεʀ
WDQuickView
HP Scheduler
Internet Plug-ins:
o1dbrowserplugin: Version: 5.3.1.18536 Support
Google Earth Web Plug-in: Version: 6.1 Support
Default Browser: Version: 537 - SDK 10.9
Flip4Mac WMV Plugin: Version: 2.3.2.6 Support
Silverlight: Version: 5.1.20913.0 - SDK 10.6 Support
FlashPlayer-10.6: Version: 13.0.0.206 - SDK 10.6 Support
Flash Player: Version: 13.0.0.206 - SDK 10.6 Support
iPhotoPhotocast: Version: 7.0
googletalkbrowserplugin: Version: 5.3.1.18536 Support
QuickTime Plugin: Version: 7.7.3
AdobePDFViewer: Version: 9.5.4 Support
CANONiMAGEGATEWAYDL: Version: 3.1.0.2 Support
GarminGpsControl: Version: 2.8.2.0 Release Support
SharePointBrowserPlugin: Version: 14.3.6 - SDK 10.6 Support
JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
Audio Plug-ins:
BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
AirPlay: Version: 2.0 - SDK 10.9
AppleAVBAudio: Version: 203.2 - SDK 10.9
iSightAudio: Version: 7.7.3 - SDK 10.9
iTunes Plug-ins:
Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
User iTunes Plug-ins:
TuneUp Visualizer: Version: 2.4.0 - SDK 10.7 Support
User Internet Plug-ins:
fbplugin_1_0_3: Version: (null) Support
WebEx: Version: 1.0 Support
3rd Party Preference Panes:
Fan Control Support
Flash Player Support
Flip4Mac WMV Support
Growl Support
MacFUSE Support
Time Machine:
Skip System Files: NO
Mobile backups: ON
Auto backup: YES
Volumes being backed up:
Macintosh HD: Disk size: 930.71 GB Disk used: 817.71 GB
Destinations:
Time Machine Backups [Local]
Total size: 3
Total number of backups: 22
Oldest backup: 2014-03-12 09:26:21 +0000
Last backup: 2014-04-07 15:52:25 +0000
Size of backup disk: Excellent
Backup size 3 > (Disk size 930.71 GB X 3)
Seagate-40A98A TM Backup [Network] (Last used)
Total size: 4
Total number of backups: 34
Oldest backup: 2014-03-12 09:26:21 +0000
Last backup: 2014-04-21 16:19:38 +0000
Size of backup disk: Excellent
Backup size 4 > (Disk size 930.71 GB X 3)
Time Machine details may not be accurate.
All volumes being backed up may not be listed.
Top Processes by CPU:
0% Google Chrome
0% TemperatureMonitor
0% WindowServer
0% fontd
0% FanControlDaemon
Top Processes by Memory:
324 MB Finder
123 MB com.apple.IconServicesAgent
119 MB Google Chrome
90 MB mds_stores
79 MB com.apple.WebKit.WebContent
Virtual Memory Information:
125 MB Free RAM
1.58 GB Active RAM
1.51 GB Inactive RAM
552 MB Wired RAM
2.23 GB Page-ins
0 B Page-outs -
Create the graph using java applet
Hi friends,
I have one urgent requirement.I need to create the flowchart by using java code.I have data in database.based on that i need to create the parent child relationchip graph..plase anybody help me .
Thanks&Regards,
Yousuf alam.Amalcolmmc wrote:
JFreeChart has been the favourite Java graph drawing library but, last time I looked, it didn't do flowcharts. If I were you I'd fire up Google and hunt around for a 3rd party library that does. Of course it's a pain if you have to use such libraries in an Applet. It's generally better to generate an image file on a server and display it as part of your html page.Sorry Malcolm but I don't think JFreeChart is applicable. The OP is asking for Flowcharts which are a graph as in nodes and edges. JGraph (Google) is probably what the OP wants but he is in for a shock when it comes to using it. -
Changing graph type, color change
Why when I change the type of graph it changes the colors automatically. I had blue, green, red (in the 3d fills) for a bar graph respectively representing 2009,2010,2011. I am adding this year I wanted to switch to a line graph - why are the colors changing auto to add a yellow and making 2012 red? How can I stop this? I find it quite difficult to change the colors of all the lines/symbols using the 3D fills, actually it doesn't work very well @ all, so I would prefer not to have to do this for 10 graphs per client @ 5 clients. Is there a more efficient way to accomplish this?
Also brings me to my next question. I was attempting to use the copy style, paste style function with the graphs - to ease the pain of all of this. When I do that it only pastes the axis scale (exactly what I don't want copied)! Is there a way to c&p the STYLE...the colors, weight, and data symbols of the lines. Therefore if I must do all the color change manually I would only have to do it once?
Thanks so much.Here's an example, using a Line Graph.
The first graph uses the full table, which has a column for each year, and extends to 2017, using 'placeholder data.'
For the second, all of the data, and the header labels (year) was deleted from the table.
Not good for presentation (nor was the table with all those empty cells), so columns E (2012) to J were selected and Hidden.
When data became available for 2012 (ie. about 10 or 11 months from now), the hidden columns were Unhidden, the label and data were entered into column E (2012), and columns F - J were again Hidden.
I haven't tried this with bar graphs yet. A closer look at the structure of your data and a screen shot of a sample bar graph would be useful in avoiding a 40 day trek through the wilderness.
Regards,
Barry -
Update multiple graphs at once
Hi, I have a VI containing multiple graphs (on a page of a tab control, to be precise) like these:
Now, I'd like when the VI starts to initialize all of these graphs in the same manner:
Basically, removing all the plot names and making them all not visible.
Later, as my VI executes, I want to populate each graph with its relevant data and decide programatially on the number of plots in each graph, on the names of the plots etc.
Now, it is OK to do it like above when one has a few graphs, but I am going to have some 16 of them and it is a real pain to add the wires as in the above screenshot every time I decide to add a graph to the front panel or if I decide some additional initialization is needed.
Can this be done in some sort of a loop? I visialize some sort of loop going thru all the graphs belonging to some LabView object and somehow setting all those properties, while retaining the ability to reference each individual graph later in the program (by it name).
Thanks in advance for your help.
Solved!
Go to Solution.Create an array of references for each of those graphs. Unlink the property notes from the graph and feed it the array of references from outside the loop. Now the loop will autoindex over the array and setting the properties on each of those graph references.
Maybe you are looking for
-
Can't drag and drop bookmarks in FF12
I just upgraded to FF 12.0, and I find that I'm unable to drag and drop bookmarks in the "Show All Bookmarks" window. I used to be able to organize my bookmarks that way, order them, put in folders, etc. I can delete bookmarks, and I can even "copy"
-
Has anyone have a problem removing files permanently from trash?
When I select the secure trash removal option It starts but ends abruptly. anyone else have this with Maverick OSX 10.5
-
Premiere Pro CS3 crashes when exporting to Encore CS3
"Sorry, a serious error has occurred that requires Adobe Premiere Pro to shut down. We will attempt to save your current project." That is the error message. I am editing an AVCHD project in which I already converted as an .mpg prior to importing i
-
Motion Tracking: Analyzes only first 6 frames
Hi, I using the FCP "Send to Motion project" command on 2 clips (1 HDV video+1 still. I tried with various material and various FCP sequences and I always end up having a weird problem and maybe someone here can tell me what I'm doing wrong. I set th
-
Problem Pro*C for Oracle 10g
Hello, I am compiling pro*c code for Oracle 10g, it is successfully compiling for Oracle 9i. But with Oracle 10g libs it's giving problems. This following error msg I m getting while compiling /application/Build/code/booking/>mk test *.cpp: No such f