Help with scaling of chart

I have a problem manipulating the scale of the graph here.
in the VI that i attached, there's two chart. The one at the top is the problem that i am facing. I want to have a chart that has time on the x-scale in 24-hr format with increment of 1 hour. For the first chart to show every hourly value on the x-scale i have to stretch it too much and the incremental value becomes 30 minutes.
I intend to remain the size of the chart as the chart at the bottom.As you can see, the x-scale can not show every hourly value from 08:00 09:00 10:00 all the way to 20:00.
This should be what i want to get
| | | | | |
08:00 09:00 11:00 12:00 13:00 14:00 ... 20:00 x-scale
and maintaining the size as of
the chart at the bottom.
i've tried changing property node values for interval, max, min to no avail.
Thanks for any help
Parker
Attachments:
chart.vi ‏15 KB

Hi Parker,
In your second graph you've got 8:00 - 12:00 - 20:00. What you need to do is replace the 12:00 by 9:00 (clic on 12:00) without adjusting any property.
The graph should then show the different times you want.
Hope this helps !
Julien
Attachments:
From_8_to_20.jpg ‏30 KB

Similar Messages

  • Help with stacked bar chart

    Hello,
    I'm looking for help regarding horizontal stacked bar chart. Typically for stacked bars Publisher seems to want data for each stacks per row, but my data looks like this:
    <DATA>
    <ROW>
    <TYPE>Type 1</TYPE>
    <CLASS>A</CLASS>
    <TOTAL>10</TOTAL>
    </ROW>
    <ROW>
    <TYPE>Type 2</TYPE>
    <CLASS>B</CLASS>
    <TOTAL>10</TOTAL>
    </ROW>
    <ROW>
    <TYPE>Type 1</TYPE>
    <CLASS>B</CLASS>
    <TOTAL>20</TOTAL>
    </ROW>
    <ROW>
    <TYPE>Type 2</TYPE>
    <CLASS>A</CLASS>
    <TOTAL>10</TOTAL>
    </ROW>
    <TYPE>Type 3</TYPE>
    <CLASS>A</CLASS>
    <TOTAL>40</TOTAL>
    </ROW>
    </DATA>
    So each bar would be the TYPE element, and each stack within the bar would be the CLASS element.
    Here is a very crude drawing of what I would want the chart to look like: http://i.imgur.com/3gEdEQ5.png
    How can I achieve this? Thanks in advance.

    Jody,
    I'm sorry that I missed that you didn't want an overlay solution. You wrote it plainly, I just didn't read carefully.
    This is as close as I could come to how I now read your request:
    Here I have charted your Actual and a column of zeros that I have called the Goal Reference. The last column contains the goal values and I have used them as Positive Custom Error Bars for the Goal Reference series. I'm not thrilled with the look, but unless I know for sure that I'm on the right track, I'll leave it there for now. The width difference between the goal and the actual can be adjusted.
    Jerry

  • Help with stacked bar charts

    Help..................
    I am definitely missing something.
    I want to do something like the attached, stacked bar chart example.  This is pretty much
    one of the examples.
    What I need is for a horizontal chart instead of a vertical.  When I right click the legend and
    chose bar charts, it only shows vertical.  After messing with this for a couple of hours,
    I give.
    Any suggestions would be much appreciated.
    Attachments:
    Stacked Bar Graph.vi ‏43 KB

    Another stacked bar graph plea for help!
    My scenario: I am recording 3ph current values (red, yellow, blue) on multiple circuits for some electrical tests we do.
    I want to present this data on a screen that is most visible from a distance, so the approach I have taken when I last wrote the software in Delphi was to have each 3 ph circuit represented by a 3 channel bar chart where the three channels are stacked front to back in order of magnitude. This allowed me to add multiple 3 channel circuits next to these to fill the screen from left to right.
    See attached Excel file to make it clear. I hope!
    The main issue I see is that the colour of plot needs to move front to back with the magnitude. ie Red is not always the front plot, it is the 'smallest' of the three plots that stays at the front.
    Some tests we do, may have 12 x 3ph circuits of this type which fills the screen up and can make it very busy. Rather than having 36 plots left to right, by stacking them in groups of three, I reduce the left to right number to 12 plots. The screen can then be viewed from a distance much easier.
    Any suggestions? I am expecting I will need to write my own routine for this, which if I do, i am quite happy to share when complete.
    See (and run) the attached LabVIEW code of my progress so far.
    thanks  Adam
    Message Edited by tca-adam on 11-16-2006 01:27 PM
    Attachments:
    Stacked Bars example.xls ‏24 KB
    Create CurrBal Graph Data.vi ‏21 KB

  • Help with 3D pie chart

    I tried to create 3D Pie Chart using the code below but it come back with no chart data available. I tested the select statement in sqlplus, it works. Is there something wrong with my select statement??
    SELECT NULL LINK, 'Saturday' LABEL, DECODE(SUM(hours1),NULL,0,SUM(hours1)) VALUE
    FROM   Ewbs e,
           Timesheet t
    WHERE  t.Company     = 'A1000'
    AND    t.Entity_item = '504586'
    AND    t.Timesheet_date > NVL(TO_DATE('07-NOV-2008','DD-MON-YYYY'),TO_DATE('01-JAN-1900','DD-MON-YYYY'))
    AND    t.Timesheet_date <= TO_DATE(SYSDATE,'DD-MON-YYYY')
    AND    e.Ewbs_code = t.Ewbs_code
    AND    e.Hour_class = '13'
    AND    TO_CHAR(t.Timesheet_date,'YYYY') = TO_CHAR(SYSDATE,'YYYY')
    UNION
    SELECT NULL LINK, 'Sunday' LABEL, DECODE(SUM(hours2),NULL,0,SUM(hours2)) VALUE
    FROM   Ewbs e,
           Timesheet t
    WHERE  t.Company     = 'A1000'
    AND    t.Entity_item = '504586'
    AND    t.Timesheet_date > NVL(TO_DATE('07-NOV-2008','DD-MON-YYYY'),TO_DATE('01-JAN-1900','DD-MON-YYYY'))
    AND    t.Timesheet_date <= TO_DATE(SYSDATE,'DD-MON-YYYY')
    AND    e.Ewbs_code = t.Ewbs_code
    AND    e.Hour_class = '13'
    AND    TO_CHAR(t.Timesheet_date,'YYYY') = TO_CHAR(SYSDATE,'YYYY');

    Hello,
    Can you create the same query you use for your chart as a report please?
    Just to make sure you get actual data. One other thing, you can write DECODE(SUM(hours1),NULL,0,SUM(hours1)) as NVL(SUM(hours1),0)
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/
    REWARDS: Please remember to mark helpful or correct posts on the forum

  • Help with Bar & Line Chart on dual Axes

    I'm attempting to build a chart with 2 series
    Series 1 is a total
    Series 2 is a percent value
    I want Series 1 to be a column and series 2 to be a line
    Here is what I tried
    right click on the Bar that Iwant to display as line.
    Select the series option and then select "Line" from the drop down.
    But when I do this both series change even though they on different Axes.
    What did I miss?
    Thanks
    Steve

    you should first create a line chart, then click the series and turn to 'riser'.
    Thx, Hao

  • Need help with a powerpivot chart

    I need to create a chart with the following three categories:
    Success inside window
    Success outside window
    Failed
    Seems simple enough. However, my dataset contains a calculated column based off of info contained in two other columns STATUS & FINISHED.
    Status contains either success or failed.
    Finished contains a date/time of when the job finished. Our backup jobs are supposed to be completed by 7:00 a.m. each day (except weekends - there is no 7:00 am deadline). A success is any job that was successfully backed up while fail is just that, a failure
    of that particular backup job.
    My calculated field contains the following formula:
    =IF(WEEKDAY([Finished],2)>5,"on-time",IF(OR(HOUR([Finished])+MINUTE([Finished])/100<7.01,HOUR([Finished])+MINUTE([Finished])/100>18.9),"on-time","outside"))
    My problem is when I try to graph this I get four results:
    Success inside
    Success outside
    Fail inside
    Fail outside
    I do not care about inside/outside when it comes to the fails. I only want total fail.
    I hope I am being clear with my request.
    Thank you.

    =IF([Status] = "Failed", "Failed", 
    IF(WEEKDAY([Finished],2)>5,"on-time",IF(OR(HOUR([Finished])+MINUTE([Finished])/100<7.01,HOUR([Finished])+MINUTE([Finished])/100>18.9),"on-time","outside")))
    Try referencing the failed status as the first part of the IF statement to stop the them being calculated within the rest of the 'IFs'.  Not knowing the dataset, try the above (changing any assumed column names or values to what you have).

  • Help with a Gantt chart view (Project Tasks) - Tasks and chart misaligned vertically

    I have created a Gantt chart for a task list and on some computers (all on I.E. 9), the chart is misaligned with the table on the left.  The "row height" of the bars on the chart is less than the height of the rows in the table, so about 10-15
    tasks down the lists things become very misaligned, and by the bottom of the page, the table goes 2-3 complete rows past the bottom of the chart.  How can I correct this?
    On a similar note, is there a way to color code the bars or anything to make it easier to associate them with a task/assigned to/etc?

    This is a rendering error on IE, try changing your zoom level on the browser.

  • Help with Multi point chart plot hile using the waveform data type..

    Currently I have two channels being transfered into the AI C-Scan block (by means of a build array) in hopes to display the outputs on a chart as well as an output file. As an outout I am using the waveform data type, as I hear this is the way to go. Problem is that I have the the Waveform chart directly connected to the waveform out put the the AI C-SCAN block but nothing is being displayed on the chart. Although the time is updated on the chart it is listed as the year 1903. I do have data these channels as the there are digital outputs for these channels. Perhaps I should use the AI CONFIG and AI READ clocks rather than this AI C-SCAN. Any ideas...

    Christian,
    Please see the Real-Time Chart shipping example for LabVIEW. This example describes how to set the base time of the chart so that the time and date are correct.
    You may want to autoscale the Y-axis as your data may be out of range of your chart and that is why nothing is seen.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Help With Displaying Pie Chart

    Hi, I've put some code together but cannot seem to get my chart to display. I hope it's something simple but being very new to this I'm having a difficult time.Thanks in advance.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.NumberFormat;
    import java.awt.Color;
    public class MortgageCalc_wk5 extends JFrame implements ActionListener {
         private static final long serialVersionUID = 6L;
         private static final Rectangle Rectangle = null;
    //Set up panels for Frame
         JPanel topPanel = new JPanel();
         JPanel bottomPanel = new JPanel();
         JPanel radioPanel = new JPanel();
         JPanel grfxPanel = new JPanel();     //new line
         //Set up Layout
         FlowLayout flowLayout = new FlowLayout();
         BorderLayout borderLayout = new BorderLayout();
    //Radio Choice Style Buttons    
         JRadioButton Choice1 = new JRadioButton ("User Input", true);
         JRadioButton Choice2 = new JRadioButton ("User Selection", false);
    //Set up JLabels, JButtons, and JTextFields
         JLabel amountLabel = new JLabel("Loan Amount");
         JTextField loanField = new JTextField(7);
         JLabel termLabel = new JLabel("Term(Yrs)");
         JTextField termField = new JTextField(4);
         JLabel rateLabel = new JLabel("Rate");
         JTextField rateField = new JTextField(4);
         JComboBox options = new JComboBox();
         JLabel optionsLabel = new JLabel();
         JButton calcButton = new JButton("Calculate");
         JButton resetButton = new JButton("Reset");
         JButton exitButton = new JButton("Exit");
         JButton grfxButton = new JButton("Display Graphics");    //new line
         JLabel paymentLabel = new JLabel("Monthly Payment =");
         JTextField paymentField = new JTextField(6);
         JLabel outputLabel = new JLabel("Loan Amoritization Chart");
         JTextArea calcField = new JTextArea(10, 25);
         JScrollPane scroll = new JScrollPane(calcField, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
         JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
         ButtonGroup radioSelect = new ButtonGroup();
         JLabel grfxLabel =new JLabel ("Graphic Chart");        //new line
         JTextField grfxField = new JTextField ("Graphics");   // new line
    //Default constructor
         public MortgageCalc_wk5() {
              super("Tony's Calculator - Week 5");
              setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
              setVisible(true);
    //add ActionListeners
              loanField.addActionListener(this);
              termField.addActionListener(this);
              rateField.addActionListener(this);
              options.addActionListener(this);
              calcButton.addActionListener(this);
              grfxButton.addActionListener(this);    //new line
              resetButton.addActionListener(this);
              exitButton.addActionListener(this);
              Choice1.addActionListener(this);
              Choice2.addActionListener(this);
    //Top Panel Layout
              topPanel.setLayout(flowLayout);
              topPanel.add(amountLabel);
              topPanel.add(loanField);
              radioSelect.add(Choice1);
              radioSelect.add(Choice2);
              topPanel.add(Choice1);
              topPanel.add(Choice2);
    //Loan Term Options For JComboBox
              options.addItem("7 years @ 5.35%");
              options.addItem("15 years @ 5.5%");
              options.addItem("30 years @ 5.75%");
              options.setEnabled(false); 
              topPanel.add(options);
              topPanel.add(termLabel);
              topPanel.add(termField);
              topPanel.add(rateLabel);
              topPanel.add(rateField);
              topPanel.add(paymentLabel);
              topPanel.add(paymentField);
              paymentField.setEditable(false);
    //Was Bottom Panel Now East Panel, Calculate Reset,Exit, and Display Buttons        
              bottomPanel.add(calcButton);
              bottomPanel.add(resetButton);
              bottomPanel.add(exitButton);
              bottomPanel.add(grfxButton);             //new line
              calcButton.setBackground(Color.blue);
              resetButton.setBackground(Color.white);
              exitButton.setBackground(Color.red);
              calcField.setBackground(Color.orange);
              grfxPanel.setBackground(Color.green);   //new line
              grfxPanel.add(grfxField);               // new line 
              //add Container
             Container pane = getContentPane();
              pane.setLayout(borderLayout);
              pane.add(topPanel, BorderLayout.NORTH);
              pane.add(calcField, BorderLayout.WEST);
              pane.add(grfxPanel, BorderLayout.SOUTH);   //new line
              pane.add(bottomPanel, BorderLayout.EAST);
              calcField.setLineWrap(true);
              calcField.setWrapStyleWord(true);
              calcField.setEditable(false);
              pane.add(scroll);
              scroll.setViewportView(calcField);
              pack();
              grfxPanel.setBounds(Rectangle);    //new line
    //actionEvent Listeners
        public void actionPerformed(ActionEvent event) {
              Object source = event.getSource();
              if (source == calcButton)  {
                   startCalculations();
              if (source == resetButton) {
                   reset();
              if (source == grfxButton)  {                  //new line
                    ChartPanel();
              if (source == exitButton)  {
                   end();
                        if (source == Choice1) {
                   options.setEnabled(false);
                   termField.setEnabled(true);
                   rateField.setEnabled(true);
              if (source == Choice2) {
                    options.setEnabled(true);
                    termField.setEnabled(false);
                    rateField.setEnabled(false);
    public void ChartPanel() {                       //newline
         JFrame grfxPanel = new JFrame();
        grfxPanel.setSize(400, 300);
        double[] values = new double[3];
        String[] names = new String[3];
        values[0] = 1;
        names[0] = "Item 1";
        values[1] = 2;
        names[1] = "Item 2";
        values[2] = 4;
        names[2] = "Item 3";
        grfxPanel.getContentPane().add(new ChartPanel(values, names, "title"));
    public class ChartPanel extends JPanel {
           private static final long serialVersionUID = 6L;     
    public double[] values;
    public String[] names;
    public String title;
    public ChartPanel(double[] v, String[] n, String t) {
        names = n;
        values = v;
        title = t;
      public void paintComponent(Graphics g) {
        super.paintComponent(g);
        if (values == null || values.length == 0)
          return;
        double minValue = 0;
        double maxValue = 0;
        for (int i = 0; i < values.length; i++) {
          if (minValue > values)
    minValue = values[i];
    if (maxValue < values[i])
    maxValue = values[i];
    Dimension d = getSize();
    int clientWidth = d.width;
    int clientHeight = d.height;
    int barWidth = clientWidth / values.length;
    Font titleFont = new Font("SansSerif", Font.BOLD, 20);
    FontMetrics titleFontMetrics = g.getFontMetrics(titleFont);
    Font labelFont = new Font("SansSerif", Font.PLAIN, 10);
    FontMetrics labelFontMetrics = g.getFontMetrics(labelFont);
    int titleWidth = titleFontMetrics.stringWidth(title);
    int y = titleFontMetrics.getAscent();
    int x = (clientWidth - titleWidth) / 2;
    g.setFont(titleFont);
    g.drawString(title, x, y);
    int top = titleFontMetrics.getHeight();
    int bottom = labelFontMetrics.getHeight();
    if (maxValue == minValue)
    return;
    double scale = (clientHeight - top - bottom) / (maxValue - minValue);
    y = clientHeight - labelFontMetrics.getDescent();
    g.setFont(labelFont);
    for (int i = 0; i < values.length; i++) {
    int valueX = i * barWidth + 1;
    int valueY = top;
    int height = (int) (values[i] * scale);
    if (values[i] >= 0)
    valueY += (int) ((maxValue - values[i]) * scale);
    else {
    valueY += (int) (maxValue * scale);
    height = -height;
    g.setColor(Color.red);
    g.fillRect(valueX, valueY, barWidth - 2, height);
    g.setColor(Color.black);
    g.drawRect(valueX, valueY, barWidth - 2, height);
    int labelWidth = labelFontMetrics.stringWidth(names[i]);
    x = i * barWidth + (barWidth - labelWidth) / 2;
    g.drawString(names[i], x, y);
    //Calculation Section
    void startCalculations() {
    NumberFormat currency = NumberFormat.getCurrencyInstance();
    //Variables
    double amount = 0;
    double term = 0;
    double interest = 0;
    double moIn = 0;
    double moTerm = 0;
    double payment = 0;
    double newPrin = amount;
    boolean Exception = false;
    //Input Validation
    try {
    amount = Double.parseDouble(loanField.getText());
    } catch (NumberFormatException e) {
    JOptionPane.showMessageDialog(null, "Commas, Letters, and Puncuation NOT Allowed",
    "Message Dialog", JOptionPane.ERROR_MESSAGE);
    loanField.setText(null);
    calcField.setText(null);
    //User's Loan Choice
    if (Choice2.isSelected())
    if(options.getSelectedIndex() == 0)
    term=7;
    interest=5.35;
    else if(options.getSelectedIndex() ==1)
    term=15;
    interest=5.5;
    else
    term=30;
    interest=5.75;
    else
    //More Validation      
    try
    term = Double.parseDouble(termField.getText());
    catch (NumberFormatException e)
    JOptionPane.showMessageDialog(this,"Enter amounts greater than zero","Please enter new amount",JOptionPane.ERROR_MESSAGE);
    Exception=true;
    termField.setText(null);
    try
    interest= Double.parseDouble(rateField.getText());
    catch (NumberFormatException e)
    JOptionPane.showMessageDialog(this,"Enter an Amount Greater Than Zero, % Not Allowed","Please enter Another Amount",JOptionPane.ERROR_MESSAGE);
    Exception=true;
    rateField.setText(null);
    if ((amount <= 0 || term <= 0 || interest <= 0) && (Exception == false)) {
    JOptionPane.showMessageDialog(null, "Please Enter a Number Greater Than ZERO.",
    "Message Dialog", JOptionPane.ERROR_MESSAGE);
    if(amount <= 0)
    loanField.setText(null);
    paymentField.setText(null);
    calcField.setText(null);
    termField.setText(null);
    rateField.setText(null);
    //Amortization Results Chart
    if (amount >7) {
    amount = Double.parseDouble(loanField.getText());
    moIn = (interest / 12) / 100;
    moTerm = term * 12;
    payment = amount * (moIn / (1 - java.lang.Math.pow((1 + moIn), (-moTerm))));
    paymentField.setText("" + currency.format(payment));
    calcField.append("Period");
    calcField.append(" ");
    calcField.append("Payment Amount");
    calcField.append(" ");
    calcField.append("Interest Paid");
    calcField.append(" ");
    calcField.append("Principle Paid");
    calcField.append(" ");
    calcField.append("Loan Balance");
    calcField.append(" \n");
    for (int i = 1; i <= moTerm; i++) {
    double newIn = moIn * amount;
    double reduct = payment - newIn;
    newPrin = amount - reduct;
    amount = newPrin;
    calcField.append(" " + i);
    calcField.append(" " + currency.format(payment));
    calcField.append(" " + currency.format(newIn));
    calcField.append(" " + currency.format(reduct));
    calcField.append(" " + currency.format(newPrin) + "\n");
    calcField.setCaretPosition(0);
    // Program Reset, User Can Calculate Another Amount or Choose A Different Style
    void reset () {
    loanField.setText(null);
    paymentField.setText(null);
    calcField.setText(null);
    termField.setText(null);
    rateField.setText(null);
    // Exit Command
    void end() {
    System.exit(0);
    // main method
    public static void main(String args[]) {
    MortgageCalc_wk5 calc = new MortgageCalc_wk5();
    calc.pack();
    calc.setVisible(true);
    // end of program

    Will you please describe the problem.
    Your program works fine for one who doesn't know your precise requirement.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.NumberFormat;
    import java.awt.Color;
    public class MortgageCalc_wk5 extends JFrame implements ActionListener {
      private static final long serialVersionUID = 6;
      private static final Rectangle rectangle = null;
      //Set up panels for Frame
      JPanel topPanel = new JPanel();
      JPanel bottomPanel = new JPanel();
      JPanel radioPanel = new JPanel();
      JPanel grfxPanel = new JPanel();
      //Set up Layout
      FlowLayout flowLayout = new FlowLayout();
      BorderLayout borderLayout = new BorderLayout();
      //Radio Choice Style Buttons
      JRadioButton Choice1 = new JRadioButton ("User Input", true);
      JRadioButton Choice2 = new JRadioButton ("User Selection", false);
      //Set up JLabels, JButtons, and JTextFields
      JLabel amountLabel = new JLabel("Loan Amount");
      JTextField loanField = new JTextField(7);
      JLabel termLabel = new JLabel("Term(Yrs)");
      JTextField termField = new JTextField(4);
      JLabel rateLabel = new JLabel("Rate");
      JTextField rateField = new JTextField(4);
      JComboBox options = new JComboBox();
      JLabel optionsLabel = new JLabel();
      JButton calcButton = new JButton("Calculate");
      JButton resetButton = new JButton("Reset");
      JButton exitButton = new JButton("Exit");
      JButton grfxButton = new JButton("Display Graphics");
      JLabel paymentLabel = new JLabel("Monthly Payment =");
      JTextField paymentField = new JTextField(6);
      JLabel outputLabel = new JLabel("Loan Amoritization Chart");
      JTextArea calcField = new JTextArea(10, 25);
      JScrollPane scroll
        = new JScrollPane(calcField, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
          JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
      ButtonGroup radioSelect = new ButtonGroup();
      JLabel grfxLabel =new JLabel ("Graphic Chart");
      JTextField grfxField = new JTextField ("Graphics");
      //Default constructor
      public MortgageCalc_wk5() {
        super("Tony's Calculator - Week 5");
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        setVisible(true);
        //add ActionListeners
        loanField.addActionListener(this);
        termField.addActionListener(this);
        rateField.addActionListener(this);
        options.addActionListener(this);
        calcButton.addActionListener(this);
        grfxButton.addActionListener(this);
        resetButton.addActionListener(this);
        exitButton.addActionListener(this);
        Choice1.addActionListener(this);
        Choice2.addActionListener(this);
        //Top Panel Layout
        topPanel.setLayout(flowLayout);
        topPanel.add(amountLabel);
        topPanel.add(loanField);
        radioSelect.add(Choice1);
        radioSelect.add(Choice2);
        topPanel.add(Choice1);
        topPanel.add(Choice2);
        //Loan Term Options For JComboBox
        options.addItem("7 years @ 5.35%");
        options.addItem("15 years @ 5.5%");
        options.addItem("30 years @ 5.75%");
        options.setEnabled(false);
        topPanel.add(options);
        topPanel.add(termLabel);
        topPanel.add(termField);
        topPanel.add(rateLabel);
        topPanel.add(rateField);
        topPanel.add(paymentLabel);
        topPanel.add(paymentField);
        paymentField.setEditable(false);
    //Was Bottom Panel Now East Panel, Calculate Reset,Exit, and Display Buttons
        bottomPanel.add(calcButton);
        bottomPanel.add(resetButton);
        bottomPanel.add(exitButton);
        bottomPanel.add(grfxButton);
        calcButton.setBackground(Color.blue);
        resetButton.setBackground(Color.white);
        exitButton.setBackground(Color.red);
        calcField.setBackground(Color.orange);
        grfxPanel.setBackground(Color.green);
        grfxPanel.add(grfxField);
        //add Container
        Container pane = getContentPane();
        pane.setLayout(borderLayout);
        pane.add(topPanel, BorderLayout.NORTH);
        pane.add(calcField, BorderLayout.WEST);
        pane.add(grfxPanel, BorderLayout.SOUTH);
        pane.add(bottomPanel, BorderLayout.EAST);
        calcField.setLineWrap(true);
        calcField.setWrapStyleWord(true);
        calcField.setEditable(false);
        pane.add(scroll);
        scroll.setViewportView(calcField);
        pack();
        grfxPanel.setBounds(new Rectangle(0, 0, 400, 400));
      //actionEvent Listeners
      public void actionPerformed(ActionEvent event) {
        Object source = event.getSource();
        if (source == calcButton)  {
          startCalculations();
        else if (source == resetButton) {
          reset();
        else if (source == grfxButton)  {
          chartPanel();
        else if (source == exitButton)  {
          end();
        else if (source == Choice1) {
          options.setEnabled(false);
          termField.setEnabled(true);
          rateField.setEnabled(true);
        else if (source == Choice2) {
          options.setEnabled(true);
          termField.setEnabled(false);
          rateField.setEnabled(false);
      public void chartPanel() {
        JFrame grfxFrame = new JFrame();
        grfxFrame.setSize(400, 300);
        double[] values = new double[3];
        String[] names = new String[3];
        values[0] = 1;
        names[0] = "Item 1";
        values[1] = 2;
        names[1] = "Item 2";
        values[2] = 4;
        names[2] = "Item 3";
        grfxFrame.getContentPane().add(new ChartPanel(values, names, "title"));
        grfxFrame.setVisible(true);
      // public class ChartPanel extends JPanel {
      class ChartPanel extends JPanel {
        private static final long serialVersionUID = 6;
        public double[] values;
        public String[] names;
        public String title;
        public ChartPanel(double[] v, String[] n, String t) {
          names = n;
          values = v;
          title = t;
        public void paintComponent(Graphics g) {
          super.paintComponent(g);
          if (values == null || values.length == 0){
            return;
          double minValue = 0;
          double maxValue = 0;
          for (int i = 0; i < values.length; i++) {
            if (minValue > values){
    minValue = values[i];
    if (maxValue < values[i]){
    maxValue = values[i];
    Dimension d = getSize();
    int clientWidth = d.width;
    int clientHeight = d.height;
    int barWidth = clientWidth / values.length;
    Font titleFont = new Font("SansSerif", Font.BOLD, 20);
    FontMetrics titleFontMetrics = g.getFontMetrics(titleFont);
    Font labelFont = new Font("SansSerif", Font.PLAIN, 10);
    FontMetrics labelFontMetrics = g.getFontMetrics(labelFont);
    int titleWidth = titleFontMetrics.stringWidth(title);
    int y = titleFontMetrics.getAscent();
    int x = (clientWidth - titleWidth) / 2;
    g.setFont(titleFont);
    g.drawString(title, x, y);
    int top = titleFontMetrics.getHeight();
    int bottom = labelFontMetrics.getHeight();
    if (maxValue == minValue){
    return;
    double scale = (clientHeight - top - bottom) / (maxValue - minValue);
    y = clientHeight - labelFontMetrics.getDescent();
    g.setFont(labelFont);
    for (int i = 0; i < values.length; i++) {
    int valueX = i * barWidth + 1;
    int valueY = top;
    int height = (int) (values[i] * scale);
    if (values[i] >= 0){
    valueY += (int) ((maxValue - values[i]) * scale);
    else {
    valueY += (int) (maxValue * scale);
    height = -height;
    g.setColor(Color.red);
    g.fillRect(valueX, valueY, barWidth - 2, height);
    g.setColor(Color.black);
    g.drawRect(valueX, valueY, barWidth - 2, height);
    int labelWidth = labelFontMetrics.stringWidth(names[i]);
    x = i * barWidth + (barWidth - labelWidth) / 2;
    g.drawString(names[i], x, y);
    //Calculation Section
    void startCalculations() {
    NumberFormat currency = NumberFormat.getCurrencyInstance();
    //Variables
    double amount = 0;
    double term = 0;
    double interest = 0;
    double moIn = 0;
    double moTerm = 0;
    double payment = 0;
    double newPrin = amount;
    boolean Exception = false;
    //Input Validation
    try {
    amount = Double.parseDouble(loanField.getText());
    } catch (NumberFormatException e) {
    JOptionPane.showMessageDialog
    (null, "Commas, Letters, and Puncuation NOT Allowed",
    "Message Dialog", JOptionPane.ERROR_MESSAGE);
    loanField.setText(null);
    calcField.setText(null);
    //User's Loan Choice
    if (Choice2.isSelected()){
    if(options.getSelectedIndex() == 0){
    term=7;
    interest=5.35;
    else if(options.getSelectedIndex() ==1){
    term=15;
    interest=5.5;
    else{
    term=30;
    interest=5.75;
    else{
    //More Validation
    try{
    term = Double.parseDouble(termField.getText());
    catch (NumberFormatException e){
    JOptionPane.showMessageDialog
    (this,"Enter amounts greater than zero","Please enter new amount",
    JOptionPane.ERROR_MESSAGE);
    Exception=true;
    termField.setText(null);
    try{
    interest= Double.parseDouble(rateField.getText());
    catch (NumberFormatException e){
    JOptionPane.showMessageDialog
    (this, "Enter an Amount Greater Than Zero, % Not Allowed",
    "Please enter Another Amount", JOptionPane.ERROR_MESSAGE);
    Exception=true;
    rateField.setText(null);
    if ((amount <= 0 || term <= 0 || interest <= 0) && (Exception == false)) {
    JOptionPane.showMessageDialog
    (null, "Please Enter a Number Greater Than ZERO.",
    "Message Dialog", JOptionPane.ERROR_MESSAGE);
    if(amount <= 0)
    loanField.setText(null);
    paymentField.setText(null);
    calcField.setText(null);
    termField.setText(null);
    rateField.setText(null);
    //Amortization Results Chart
    if (amount >7) {
    amount = Double.parseDouble(loanField.getText());
    moIn = (interest / 12) / 100;
    moTerm = term * 12;
    payment
    = amount * (moIn / (1 - java.lang.Math.pow((1 + moIn), (-moTerm))));
    paymentField.setText("" + currency.format(payment));
    calcField.append("Period");
    calcField.append(" ");
    calcField.append("Payment Amount");
    calcField.append(" ");
    calcField.append("Interest Paid");
    calcField.append(" ");
    calcField.append("Principle Paid");
    calcField.append(" ");
    calcField.append("Loan Balance");
    calcField.append(" \n");
    for (int i = 1; i <= moTerm; i++) {
    double newIn = moIn * amount;
    double reduct = payment - newIn;
    newPrin = amount - reduct;
    amount = newPrin;
    calcField.append(" " + i);
    calcField.append(" " + currency.format(payment));
    calcField.append(" " + currency.format(newIn));
    calcField.append(" " + currency.format(reduct));
    calcField.append
    (" " + currency.format(newPrin) + "\n");
    calcField.setCaretPosition(0);
    // Program Reset, User Can Calculate Another Amount or Choose A Different Style
    void reset () {
    loanField.setText(null);
    paymentField.setText(null);
    calcField.setText(null);
    termField.setText(null);
    rateField.setText(null);
    // Exit Command
    void end() {
    System.exit(0);
    // main method
    public static void main(String args[]) {
    java.util.Locale.setDefault(java.util.Locale.US);
    MortgageCalc_wk5 calc = new MortgageCalc_wk5();
    calc.pack();
    calc.setVisible(true);
    // end of program
    Message was edited by:
    hiwa

  • I need help making a pie chart

    Hello, hoping for some help with making a chart that will update as i continually input data
    I have a chart that has many columns logging details of win/loss records. I would like to make a pie chart that represents a set of columns and shows the ratio of wins for each of the columns.
    I will try and give some better details. There are 5 columns (j,k,l,m,n) and each represents a color. In each column there are check-boxes. 1 or more will be checked on each row. On the same row there is a tally of wins. each row represents a different day. What I am looking for is a pie chart that shows how many wins i have in each color.
    for example.
    nov 1st: 5 wins in color J
    nov 2nd: 2 wins in color k
    nov 3rd: 4 wins in colors m and n
    the pie chart will contain a total of 15 'wins' split up on the chart between each color....... 5(j) + 2(k) + 4(m) + 4(n). theoretically the J should take up 1/3rd of the pie and so on.
    I also have a total at the bottom of the colors column, but this will not show which color got the wins.
    Hopefully this makes some sense to understand and if I am very fortunate someone much smarter then me will be generous enough to help me out.
    Thank you very much, all help is appreciated.

    Hi Anthony,
    This table may be  what you want. I added a row at the top (you don't need that row. It is just may way of getting around the poor screen shots in this forum).
    I hid some columns, then I copied the table and pasted directly into this reply (I have had it with screen shots ).
    A
    F
    J
    K
    L
    M
    N
    Date
    Wins
    Colour J
    Colour K
    Colour L
    Colour M
    Colour N
    Nov 1
    1
    TRUE
    Nov 2
    1
    TRUE
    Nov 3
    2
    TRUE
    TRUE
    Checkboxes show as TRUE (not a tick) in this pasted table. But a tick = TRUE .
    Formula in F3 (Wins, Nov 1)
    =COUNTIF(J3:N3,"=TRUE")
    I hope this helps with your pie chart.
    Regards,
    Ian.

  • Need help with pie chart code

    I am new to Java and am having problems and I am in need of some help. I have written the code for my Mortgage Calculator but do not know how to get my chart to work. I found an example of the chart code in my text book but I am not sure if I wrote it wrong. When I run the MortCalc code it compiles but the Pie Chart code won't. I tried to run the chart code by itself but it prints out another calculator. My question is 1.) Is my chart code written wrong? and 2.) How do i enter it into my MortCalc code so that I get my chart?
    **Below I have included the assignment(so you know what I am doing exactly) and below that the pie chart code just in case you have questions. Thanks for any advice you can give.
    **If you need the rest of the code I can post it too. It was too long to post with the pie chart code.
    Assignment:
    Write the program in Java(w/ a GUI) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage adn the user's selection from a menu of availible mortgage loans:
    --7 yrs @ 5.35%
    --15 yrs @ 5.5%
    --30 yrs @ 5.75%
    Use an array for the mortgage data for the different loans. Read the interst rates to fill the array from a sequential file. Display the mortgage payment amount followed by the loan balance and interest paid for each payment over the term of the loan. Add graphics in the form of a chart.Allow the user to loop back and enter a new amount and make a new selection of quit. Please insert comments in the program to document the program.
    CODE:
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.Rectangle;
    //Class to hold a value for a slice
    public class PieValue {
    double value;
    Color color;
    public PieValue(double value, Color color) {
    this.value = value;
    this.color = color;
    // slices is an array of values that represent the size of each slice.
    public void drawPie(Graphics2D g, Rectangle area, PieValue[] slices) {
    // Get total value of all slices
    double total = 0.0D;
    for (int i=0; i<slices.length; i++) {
    total += slices.value;
    // Draw each pie slice
    double curValue = 0.0D;
    int startAngle = 0;
    for (int i=0; i<slices.length; i++) {
    // Compute the start and stop angles
    startAngle = (int)(curValue * 360 / total);
    int arcAngle = (int)(slices[i].value * 360 / total);
    // Ensure that rounding errors do not leave a gap between the first and last slice
    if (i == slices.length-1) {
    arcAngle = 360 - startAngle;
    // Set the color and draw a filled arc
    g.setColor(slices[i].color);
    g.fillArc(area.x, area.y, area.width, area.height, startAngle, arcAngle);
    curValue += slices[i].value;

    // Draw each pie slice
    double curValue = 0.0D;
    int startAngle = 0;
    for (int i=0; i<slices.length; i+) {
    // Compute the start and stop angles
    startAngle = (int)(curValue 360 / total);
    int arcAngle = (int)(slices.value * 360 / total);Look here and i think you will find some syntax errors.
    Count the brackets.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Need help with Page Layout and Background Scaling

    hello, everyone.
    I am in the process of designing a new website for myself,
    and while I was researching nicely designed pages to use as
    inspiration, I stumbled upon this site:
    http://www.jeffsarmiento.com/
    obviously, the design is very impressive, but it also
    incorporates a lot of web mechanics that I have been trying to
    figure out, so I will use this page as an example.
    one thing I need help with is backgrounds. as you can see in
    the posted website, the creator used a seamlessly tiled paper
    texture to display the bulk of his content on. also make not of the
    pattern that is located to the left of the paper texture. how do I
    create seamless backgrounds like this that will scale to fit any
    amount of content or any resolution? I can't imagine that the guy
    that made that site created a new size background every time he
    made an update, so there has to be an easier way.
    the second thing that I am having trouble with is general
    site layout. I have read that most sites used series of invisible
    tables to organize there content, but when I open the source of
    this page in dreamweaver, he was using something different. div
    tags? should I be using these? who do I use them? are there any
    general layout tips that someone could pass on to me? perhaps a
    link to a good tutorial?
    please help me. i am very confused.
    thanks so much.

    IMO not a good site to emulate. To wit:
    Top background image:
    http://www.jeffsarmiento.com/images/bg-top.jpg;
    745px
    x 350px 137K
    Main background image:
    http://www.jeffsarmiento.com/images/bg-tile.jpg;
    745px x 950px 130K
    Total page size: 454K (Check here:
    www.websiteoptimization.com)
    Website usability experts routinely recommend a maximum page
    size of ~80K
    Check out the We We Scale @ www.FutureNowInc.com/wewe/ where
    they suggest,
    "You speak about yourself approximately 0,003 times as often
    as you speak
    about your customers. Might that have an impact on your
    effectiveness?"
    That is 100% consistent with the #1 Web Design mistake:
    "Believing people
    care about you and your web site." or to phrase more
    expansively, "Our site
    tries to tell you how wonderful we are as a company, but not
    how we're going
    to solve your problems."
    www.sitepoint.com has some excellent books on making a
    website actually
    attractive and usable at the same time.
    Walt
    "beWILLdered_" <[email protected]> wrote in
    message
    news:[email protected]...
    > hello, everyone.
    > I am in the process of designing a new website for
    myself, and while I was
    > researching nicely designed pages to use as inspiration,
    I stumbled upon
    > this
    > site:
    >
    http://www.jeffsarmiento.com/
    > obviously, the design is very impressive, but it also
    incorporates a lot
    > of
    > web mechanics that I have been trying to figure out, so
    I will use this
    > page as
    > an example.
    > one thing I need help with is backgrounds. as you can
    see in the posted
    > website, the creator used a seamlessly tiled paper
    texture to display the
    > bulk
    > of his content on. also make not of the pattern that is
    located to the
    > left of
    > the paper texture. how do I create seamless backgrounds
    like this that
    > will
    > scale to fit any amount of content or any resolution? I
    can't imagine that
    > the
    > guy that made that site created a new size background
    every time he made
    > an
    > update, so there has to be an easier way.
    > the second thing that I am having trouble with is
    general site layout. I
    > have
    > read that most sites used series of invisible tables to
    organize there
    > content,
    > but when I open the source of this page in dreamweaver,
    he was using
    > something
    > different. div tags? should I be using these? who do I
    use them? are there
    > any
    > general layout tips that someone could pass on to me?
    perhaps a link to a
    > good
    > tutorial?
    > please help me. i am very confused.
    >
    > thanks so much.
    >

  • Help with stock charts

    Is there any proper documentation / tutorial / help for creating stock charts in Calc? The built-in Help says almost nothing, and I can't find anything online.

    Select chart > Inspector > Chart > Chart. deselect show Title, legend etc.
    Inspector > Chart > Axis > delete the axis titles.
    You can delete them all individually on the Numbers page by double clicking to select each one then delete.

  • Need help in creating a chart from 3 datasets

    Need help in creating a chart in SSRS from 3 datasets
    Can someone help me in creating a chart from 3 datasets, however datasource is same.

    Thank you Olaf...
    could anyone help me in using union all with the below
     WITH a AS (
    SELECT
    clientid,
    DATEPART(year, row_date) AS 'Year',
    DATEPART(month, row_date) AS 'Month',
        value ,
        CASE metricid WHEN 16 THEN 'FCR' ELSE 'Cases' END AS metric
    FROM XXXXXX AS V
    WHERE metricid IN (16, 11)
    AND row_date BETWEEN '2012-01-01' AND '2014-10-01'
    AND value IS NOT NULL)
    , b AS (
    SELECT     clientid ,
        Year ,
        Month ,
        value AS 'Cases',
        metric 
    FROM a
    WHERE metric = 'cases')
    , c AS (
    SELECT     clientid ,
        Year ,
        Month ,
        value AS 'FCR',
        metric  
    FROM a
    WHERE metric = 'FCR')
    , d AS (
    SELECT b.YEAR, b.MONTH, c.FCR, b.Cases 
    FROM b INNER JOIN c 
    ON c.clientid = b.clientid
    AND c.[YEAR] = b.[year] 
    AND c.[month] = b.[month]
    WHERE c.fcr <> 0 AND b.cases <> 0
    ,E AS (
    SELECT [Year], [Month], SUM(FCR) AS FCR, SUM(Cases) AS Cases
    FROM d
    GROUP BY [Year], [Month])
    select YEAR, MONTH, 
    CASE MONTH 
    WHEN 1 THEN 'Jan'
    WHEN 2 THEN 'Feb'
    WHEN 3 THEN 'Mar'
    WHEN 4 THEN 'Apr'
    WHEN 5 THEN 'May'
    WHEN 6 THEN 'Jun'
    WHEN 7 THEN 'Jul'
    WHEN 8 THEN 'Aug'
    WHEN 9 THEN 'Sep'
    WHEN 10 THEN 'Oct'
    WHEN 11 THEN 'Nov'
    WHEN 12 THEN 'Dec'
    END AS MonthName
    ,e.FCR AS FCRCases
    ,e.Cases AS TotalCases
    ,CASE 
    WHEN [month] IN (11, 12, 1) THEN 1
    WHEN [month] IN (2, 3, 4) THEN 2
    WHEN [month] IN (5, 6, 7) THEN 3
    WHEN [month] IN (8, 9, 10) THEN 4
    END AS 'Quarter'
    --,CONVERT(DECIMAL(18, 2),(e.FCR/e.Cases)*100) AS FCRRaw
    from e
    order by YEAR, MONTH
    **************2nd query*************
    WITH a AS (
    SELECT
    clientid,
    DATEPART(year, row_date) AS 'Year',
    DATEPART(month, row_date) AS 'Month',
        value, 
        CASE metricid WHEN 56 THEN 'numerator' ELSE 'denominator' END AS metric
    FROM XXXXXXX.[Values] AS V
    WHERE metricid IN (56, 10)
    --WHERE metricid IN (11,16)
    AND row_date BETWEEN '2013-10-01' AND '2014-02-01'
    AND value IS NOT NULL)
    , b AS (
    SELECT     clientid ,
        Year ,
        Month ,
        value AS 'numerator',
        metric
    FROM a
    WHERE metric = 'numerator')
    , c AS (
    SELECT     clientid ,
        Year ,
        Month ,
        value AS 'denominator',
        metric
    FROM a
    WHERE metric = 'denominator')
    , d AS (
    SELECT b.YEAR, b.MONTH, c.denominator, b.numerator 
    FROM b INNER JOIN c 
    ON c.clientid = b.clientid
    AND c.[YEAR] = b.[year] 
    AND c.[month] = b.[month]
    WHERE c.denominator <> 0 AND b.numerator <> 0
    , e AS (
    SELECT [Year], [Month], SUM(numerator) AS numerator, SUM(denominator) AS denominator
    FROM d
    GROUP BY [Year], [Month]
    SELECT *, 
    CASE 
    WHEN [month] IN (11, 12, 1) THEN 1
    WHEN [month] IN (2, 3, 4) THEN 2
    WHEN [month] IN (5, 6, 7) THEN 3
    WHEN [month] IN (8, 9, 10) THEN 4
    END AS 'Quarter'
    FROM e
    ORDER BY 1,2
    ******************3rd query**************
    WITH a AS (
    SELECT --L.[LocationGroupId],
    -- T.locationid,
    -- T.AccountId,
    TR.datestamp,
    /*Convert(NVARCHAR, DatePArt(year, TR.datestamp)) + '-' + Convert(NVARCHAR, DatePArt(month, TR.datestamp)) + '-01'*/ 
    TR.Period AS ValueDate,
    CASE WHEN TR.TargetResultState = 0 THEN 0 WHEN TR.TargetResultState = 1 THEN 1 WHEN TR.TargetResultState = 2 THEN 1 ELSE 0 END AS Met,
    CASE WHEN CONVERT(DATE, Convert(NVARCHAR, DatePArt(year, TR.datestamp)) + '-' + Convert(NVARCHAR, DatePArt(month, TR.datestamp)) + '-01') > T.Startdate AND CONVERT(DATE, Convert(NVARCHAR, DatePArt(year, TR.datestamp))
    + '-' + Convert(NVARCHAR, DatePArt(month, TR.datestamp)) + '-01') < T.Enddate THEN 1 ELSE 0 END AS ActiveTarget
    FROM XXXXXX AS TR
    INNER JOIN dbo.Target T ON TR.TargetID = T.ID
    --INNER JOIN dbo.Location L ON T.Locationid = L.Id
    WHERE --locationid <> - 1 AND 
    TR.Period IN ('201306', '201307', '201308', '201309', '201310', '201311', '201312', '201401'))
    select ValueDate, SUM(Met) AS Met, Count(ActiveTarget) AS ActiveTargets,
    right(ValueDate,2) as Month
    ,left(ValueDate,4) as Year
    ,CASE 
    WHEN right(ValueDate,2) IN (11, 12, 1) THEN 1
    WHEN right(ValueDate,2) IN (2, 3, 4) THEN 2
    WHEN right(ValueDate,2) IN (5, 6, 7) THEN 3
    WHEN right(ValueDate,2) IN (8, 9, 10) THEN 4
    END AS 'Quarter'
    from a
    group by ValueDate
    order by ValueDate

  • Problem with Group Bar Chart

    Hi all ,
              i  need help as my requirement is  like i have three values (material,value1,value2) now i want to display data with the help of Group bar chart like for material1 value1 and value2 should be in BAR then again for material 2 value1 and value2 in BAR......  
    right now i am assining  value1 and value 2 to Value column of display template but i am gettin a graph like material1 value1(BAR) material2 value1(BAR) .....  material1 value2(BAR) material2 value2(BAR)...........which value i should set so i should get graph what i mentioned above .
    thanks in advance
    regards,
    Praveen

    Hi,
    Give the material in the label columns...( check with the requirement as the Legend show only the Material )
    Check this also.(May solve your problem)
    Change the type to Bar chart and give the value1 and value 2 in the value columns..
    Hope this may help you...
    Regards,
    Kishore

Maybe you are looking for

  • Can I order more than one keepsake at a time, sent to same address?

    I would like to order several cards and calendars for gifts. Is there anyway to order all the keepsakes at once, having them sent to my address? If not, it looks like $2.50 shipping for each which makes it not very cost effective. Since you can indiv

  • Appdist copy from VMS to NT question ...

    G'day Folxs Does anyone here have a simple way to copy a whole appdist tree for myapp1 say from VMS to NT? I have created a new environment on a NT box and want to copy down all our application distributions. eg: On OpenVMS machine vmsbox1 the direct

  • Retrieving Deleted Spool Request

    Hi, We are running R/3 45B on the iseries and we had the same problem from Note 1422843 - Wrong deletion date in spool request I ran the report RSPO2010 to change the deletion date in R/3 PRD excluding 9 users to keep their year end reports. I then r

  • Where is the NullPointerException coming from?

    The program in question uses the following typical and generic code to set the LAF of the program to that closest to the original OS. //Set look and feel.     String nativeLookAndFeel = UIManager.getSystemLookAndFeelClassName();     try       UIManag

  • Can't create another Sculpture instance

    If I already have an instance of Sculpture I cannot create another. The same problem occurs with some other instruments as well, but not all. The strange thing is that if I quit Logic and then restart I can create another instance. Any ideas? Using L