How to add lines to scatter/bubble chart?

Hi,
I have bubble and scatter charts for which I'd like to add some horizontal lines, such as sales goals. Anyone?
Appreciate any suggestions/ideas.

FileWriter(String fileName, boolean append) throws IOException
If append is true, then output is appended to the end of the file. Here is an example:
import java.io.*;
public class  AATest1
     public static void main(String args[])
          try
               //Open file for writing:
               File data = new File("C:\\TestData\\javaIO.txt");
               BufferedWriter out = new BufferedWriter(
                              new FileWriter(data) );
               out.write("hello");
               out.close(); //flushes buffer
               //Open file for appending:
               out = new BufferedWriter(
                    new FileWriter(data, true) );
               out.write(" world");
               out.close(); //flushes buffer
          catch(IOException exc)
               System.out.println("io error writing to file");
}

Similar Messages

  • Urjent-how to add line items in tcode-FBL3N

    Hi Experts,
      How to add line items customer, customer name,  vendor and vendor name in FBL3N.
    Thanks in advance.
    mahe
    Moderator message - Please do not use words like "urjent". Please ask a specific question. Please search the forum. This question has been asked and answered before. Post locked
    Edited by: Rob Burbank on Apr 29, 2009 11:27 AM
    Edited by: Rob Burbank on Apr 29, 2009 11:28 AM

    Hi,
    Check the BTE's:
    00001020     POST DOCUMENT:       Prior to final checks             SAMPLE_INTERFACE_00001020
    00001025     POST DOCUMENT:       Final checks completed       SAMPLE_INTERFACE_00001025
    00001030     POST DOCUMENT:       Posting of standard data     SAMPLE_INTERFACE_00001030
    00001050     POST DOCUMENT:       Accounting interface           SAMPLE_INTERFACE_00001050
    Thanks & Regards,
    Harish

  • How to configur Drill down on Bubble Chart

    Hi,
    Can anyone please hel me with examples - how to confihure drill down on bubble chart.
    that means,
    1) whenever the user clicking the bubbles - the pop up window should display some notes related to that bubble
    and also in another requirement
    2) whenever the user click the bubble - the pie chart should display the values related to that bubble.
    please help me on achieving the same..

    If the Bubble size is constant we can do this.But as you know Bubble sizes varies from once to one place..It will be tough scenario if you want to do it here..Instead take a label based menu and try to use dynamic visiblity .And show labels in there which contains the text for the respective labels..

  • How to add line series dynamically to a line chart in flex?

    hi..i need to add line series dynamically to a line chart..depending on an array..the application is this..i have an array which stores the details of the users connected to an fmi server..the chart should display the bandwidth of each client..so the users should be added and removed from the chart dynamically...

    Hi
    1.I am giving you solution for dynamically adding values to the dropdown
    public void addValue( )  //Method Name in Component controller
        //@@begin addValue()
              IWDNodeInfo nodeinfo = wdContext.nodeNodeTestData().getNodeInfo();// Node should be map to the view's Node
              IWDAttributeInfo att = nodeinfo.getAttribute("VechileTypes");// Attribute by which dropdown in bound//
              IModifiableSimpleValueSet svSet = att.getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
              svSet.put(wdContext.currentNodeTestDataElement().getInpAtt(),wdContext.currentNodeTestDataElement().getInpAtt());
        //@@end
    2.   wdThis.wdGetLangCompController().addValue(); // call this method in the point where u want to add values to the dropdown.

  • Using Labels in Scatter/Bubble Chart

    Hi,
    We are trying to show labels in scatter and bubble chart
    using flex 2.0. We have implemented the same in flex 1.5 using
    showlables= true/false property. However we are not able to find
    out the same in flex 2.0
    Can someone help me with the same.
    Thanks

    As this is a configuration issue and not a programming issue I' moving your question to a more appropriate forum where you're more likely to find assistance.
    Cindy Meister, VSTO/Word MVP,
    my blog

  • How to add line itme to sto delivery.

    Sd gurus,
    how do i add line time to the delivery after adding line item to STO?
    Im sure for STO we can t add line itme right there in the delivery it self..right?
    Please give me information.
    vivek

    Hi Vivek,
    As per my knowledge we cannot add the new line item in the same delivey...
    Becoz Delivery is created in backround. there is no specific copy controls set to change..
    its better to create a new delivery...
    hope you understand
    Muthu

  • How to add line item to sales order item table?

    Kindly help me the with the below requirement .
    Add line item to sales order(va01) dynamically on click of button. The button is also custom created push button.
    In the above requirement I have added the pushbutton to va01 tcode. But when I click on that button I need to add line item to sales order item table.
    I tried a lot but I am not successful. If possible can u please help on this.
    Regards,
    Rachel

    Hi!
    It's quite easy even in the standard SAP to add a line item for a customer order, I don't think it worth to develop a new button for this.
    However if you wanted to add a line automatically, the you can do the following in the program MV45AFZZ, FORM USEREXIT_SAVE_DOCUMENT.
    You can use similar code, but with some modifications.
    DATA: lv_posnr.
    LOOP AT xvbap.
    MOVE xvbap-posnr TO lv_posnr.   "get the last posnr
    ENDLOOP.
    ADD 10 TO lv_posnr.
    MOVE 'XYZ' TO xvbap-matnr.   "enter your material number here
    MOVE lv_posnr TO xvbap-posnr.
    * fill additinal field data in XVBAP if necessary
    MOVE 'I' TO xvbap-updkz.                  "Insert line
    APPEND xvbap.
    Regards
    Tamá

  • How to add line in PE51

    Dear Experts,
    Need your help in case added new lines in PE51.
    i tried increasing max line no from pe51_checktab tcode as there is few additional field requirement from my client,  i changed the number accordingly in this tcode. but im not getting the effect of same in pe51.
    I tried doing it through background/ attribute as well, but not able to add line in the existing form.
    Request you to kindly help me for the same.
    Kindly help.
    Rgds,
    Aarti
    Edited by: aartikshirsagar on Dec 21, 2010 7:40 AM

    Aarti,
    When you see it from GUI you are not able to see the whole scree.
    Width of payslip is around '255' charecters so you can't see whole payslip in single screen.
    Whatever you did it might have effected but there is a change it is in next screen.
    Please scroll the screen or run payroll for one person with this slip and check.
    Warm Regads

  • How to add Line Chart in javafx 2.2 FXML?

    I'm using javaFX scene builder 1.0. The LineChart component is not working for FXML ,I'm added a linechart component in FXML and initialized it in corresponding controller class. it displays the gui as default linechart ,when i'm adding some values of x and y using obsevablelist in the java controller class, it is not updating in the Linechart gui.

    It's hard to say for sure without seeing the complete markup and controller code, but it looks like you are replacing the "graph" instance you declare in markup with a new one you create in code:
    graph = new LineChart(xAxis, yAxis, lineChartData);Rather than creating a new chart, try declaring the chart with the axes you want in markup, and then call setData() on it instead of creating a new one:
    <Scene fx:controller="test.LineChartTestController" xmlns:fx="http://javafx.com/fxml">
        <LineChart fx:id="graph">
            <xAxis><NumberAxis label="Values for X-Axis" lowerBound="0" upperBound="3" tickUnit="1"/></xAxis>
            <yAxis><NumberAxis label="Values for Y-Axis" lowerBound="0" upperBound="3" tickUnit="1"/></yAxis>
        </LineChart>
    </Scene>
    public class LineChartTestController {
        @FXML private LineChart<Double, Double> graph;
        @FXML
        protected void initialize() {
            ObservableList<XYChart.Series<Double, Double>> lineChartData = FXCollections.observableArrayList();
            LineChart.Series<Double, Double> series1 = new LineChart.Series<Double, Double>();
            series1.setName("Series 1");
            series1.getData().add(new XYChart.Data<Double, Double>(0.0, 1.0));
            series1.getData().add(new XYChart.Data<Double, Double>(1.2, 1.4));
            series1.getData().add(new XYChart.Data<Double, Double>(2.2, 1.9));
            series1.getData().add(new XYChart.Data<Double, Double>(2.7, 2.3));
            series1.getData().add(new XYChart.Data<Double, Double>(2.9, 0.5));
            lineChartData.add(series1);
            LineChart.Series<Double, Double> series2 = new LineChart.Series<Double, Double>();
            series2.setName("Series 2");
            series2.getData().add(new XYChart.Data<Double, Double>(0.0, 1.6));
            series2.getData().add(new XYChart.Data<Double, Double>(0.8, 0.4));
            series2.getData().add(new XYChart.Data<Double, Double>(1.4, 2.9));
            series2.getData().add(new XYChart.Data<Double, Double>(2.1, 1.3));
            series2.getData().add(new XYChart.Data<Double, Double>(2.6, 0.9));
            lineChartData.add(series2);
            graph.setData(lineChartData);
            graph.createSymbolsProperty();
    }

  • How to Generate Excel XY Scatter Smooth Chart in LabVIEW?

    Hi all
    First of all i am a beginner. We can plot the XY Scatter Smooth graph in excel using Report Generation toolkit but how can we generate that in labVIEW? In my application maximum we use only 5 points to plot a graph. From the graph we want to find the X value for a fixed Y value. Manually how i do is i will create an XY Scatter smooth graph in excel and will find the Y value. If we plot this 5 point in LabVIEW it will not be smooth curve and i tried many curve fitting subVI's for making it smooth. But we cannot generate the plot exactly that of excel. Is there any way to read the chart from excel?
    Please help me.
    Thanks & Regards
    Rajesh R. Nair

    Rajesh, I believe I may have what you are looking for. I have some images of the code I have made that generates a XY scatter smooth graph in excel based on a two dimensional array of X and Y points.
    The Code:
    The Result in Excel:
    Please let me know if this is what you are looking for,
                                                      ​                               Shadowfeld
    Attachments:
    Code.vi ‏18 KB

  • How to add line breaks to output fixed width flat file

    0
    I need to create a Flat file without column headers, no comma separated values but each column will have a fixed starting position and a fixed length in the text file. For example, below is the text file to be created with six columns
    Column1  Column2   Column3     Column4  Column5      Column6
    abc          1             New emp      xxxx         xxxx           
    xxx
    Fixed starting position and a fixed lenth values for these columns as are below;
    Column1 : Starting Position -1, Fixed Length -4
    Column2 : Starting Position - 8, Fixed Length - 2
    Column3 : Starting Postion - 11, Fixed Length - 10
    Column4 : Starting Position -1, Fixed Length -5
    Column5 : Starting Position - 10, Fixed Length - 2
    Column6 : Starting Postion - 15, Fixed Length - 5
    The out put file each line have only 20 characters length.First 3 columns comes in first line and 4-6 columns comes in 2nd line.
    OUTPUT FILE:
    1234   89  11121314151617181920
    12345    1011          151617181920

    BOL says that:
    The Fixed width with row delimiters option is not available in the Flat File Connection Manager Editor.
    If necessary, you can emulate this option in the editor. To emulate this option, on the General page of the Flat File Connection Manager
    Editor, for Format, select Ragged right. Then on the Advanced page
    of the editor, add a new dummy column as the final column of data.
    More details steps:
    http://www.coderewind.com/2012/08/ssis-how-to-include-rowdelimiter-with-destination-flat-files/
    Below blog should make things clear:
    SSIS Flat File Export - "Fixed Width" vs "Ragged Right"
    -Vaibhav Chaudhari

  • How to add lines in combobox?

    I want to add very thick colored lines in this combobox so ..
    how do i do that..
    thanks
    public class NewJFrame extends javax.swing.JFrame {
        /** Creates new form NewJFrame */
        public NewJFrame() {
            initComponents();      
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
        private void initComponents() {
            jComboBox1 = new javax.swing.JComboBox();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            getContentPane().add(jComboBox1, java.awt.BorderLayout.NORTH);
            pack();
        // </editor-fold>
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new NewJFrame().setVisible(true);
        // Variables declaration - do not modify
        private javax.swing.JComboBox jComboBox1;
        // End of variables declaration
    }

    I am exaplaining the code here.Please check once again.
    import java.awt.Component;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.util.Vector;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JSeparator;
    import javax.swing.ListCellRenderer;
    import javax.swing.UIManager;
    import javax.swing.border.EmptyBorder;
    * @version 1.0 12/25/98
    public class BlockComboBoxExample extends JFrame {
      final String SEPARATOR = "SEPARATOR";
      public BlockComboBoxExample() {
        super("Block ComboBox Example");
        String[][] str = { { "A", "B", "C" }, { "1", "2", "3" },
            { "abc", "def", "ghi" } };
        JComboBox combo = new JComboBox(makeVectorData(str));
        combo.setRenderer(new ComboBoxRenderer());
        combo.addActionListener(new BlockComboListener(combo));
        getContentPane().setLayout(new FlowLayout());
        getContentPane().add(combo);
        setSize(300, 100);
        setVisible(true);
    /*This method makes a vector of data to be added to the combo box by iterating through the String array and after each element of array,the needSeparator is made true indicating a separator must be added*/
    private Vector makeVectorData(String[][] str) {
        boolean needSeparator = false;
        Vector data = new Vector();
        for (int i = 0; i < str.length; i++) {
          if (needSeparator) {
            data.addElement(SEPARATOR);
          for (int j = 0; j < str.length; j++) {
    data.addElement(str[i][j]);
    needSeparator = true;
    return data;
    public static void main(String args[]) {
    try {
    UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    } catch (Exception evt) {}
    BlockComboBoxExample frame = new BlockComboBoxExample();
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    /*This class is used to render the elements in ComboBox.When adding elements it checks for Separator,and if it is SEPARATOR then it returns a JSeparator object,causing a separator to be added in combo box.*/
    class ComboBoxRenderer extends JLabel implements ListCellRenderer {
    JSeparator separator;
    public ComboBoxRenderer() {
    setOpaque(true);
    setBorder(new EmptyBorder(1, 1, 1, 1));
    separator = new JSeparator(JSeparator.HORIZONTAL);
    public Component getListCellRendererComponent(JList list, Object value,
    int index, boolean isSelected, boolean cellHasFocus) {
    String str = (value == null) ? "" : value.toString();
    if (SEPARATOR.equals(str)) {
    return separator;
    if (isSelected) {
    setBackground(list.getSelectionBackground());
    setForeground(list.getSelectionForeground());
    } else {
    setBackground(list.getBackground());
    setForeground(list.getForeground());
    setFont(list.getFont());
    setText(str);
    return this;
    class BlockComboListener implements ActionListener {
    JComboBox combo;
    Object currentItem;
    BlockComboListener(JComboBox combo) {
    this.combo = combo;
    combo.setSelectedIndex(0);
    currentItem = combo.getSelectedItem();
    public void actionPerformed(ActionEvent e) {
    String tempItem = (String) combo.getSelectedItem();
    if (SEPARATOR.equals(tempItem)) {
    combo.setSelectedItem(currentItem);
    } else {
    currentItem = tempItem;
    Now you can use the same concept to add separator to ur combobox.

  • How to add Line items to Accounting Doc

    Hi All,
    I want to capture the amount of inventory to a separate GL accounts while doing GR.
    Accounting Document should look like this:-
    Inventory a/c 1000 BSX
    GR/IR a/c           1000- WRX
    1New line a/c  1000
    2New line a/c    1000-
    How can we achieve this.
    Thanks.

    U can make use of purchase account and purchase offset account . In obyc assign the account to purchase account EIN and puchase offset account EKG.

  • How to add line break to UILabel or to UITextView

    How can I do it? \n is not working
    Thank you

    Aristarh wrote:
    ... in this case in debugger
    looks thinner and paler.
    I don't think the "thick" character you're seeing is a new line, '
    ' (0x0A). It might be a carriage return, '
    ' (0x0D), some other control char, or possibly the combination "
    ", which is seen on Windows systems.
    How can I replace my usual
    to thinner
    1) Identify the unknown char(s);
    2) Use a method such as [stringByReplacingOccurrencesOfString:withString:|http://developer.apple.com/ip hone/library/documentation/Cocoa/Reference/Foundation/Classes/NSStringClass/Reference/NSString.html#//appleref/occ/instm/NSString/stringByReplacingOccurrencesOfString:withString:] to insert '
    ' in place of each occurance of the char identified in step 1. E.g., if the char turns out to be a single carriage return:
    myLabel.text = [stringFromParser stringByReplacingOccurrencesOfString:@"
    " withString:@"
    Some ways to do step 1:
    Examine the raw xml;
    Loop through a string (e.g. label.text) and print the numeric code point of each char with NSLog();
    Format the output of gdb to print the code points (e.g. as hex). Here's a quick tutorial: [GDB Output Formats|http://www.delorie.com/gnu/docs/gdb/gdb_55.html].
    Let us know if you need help interpreting the text obtained by any of these methods. For example, if the hex output from gdb doesn't make sense, just paste directly from your Console window into the forum so we can have a look at it.
    - Ray

  • How to add Line hight in sap.ui.layout.form.Form ?

    Hi,
    i am using the sap.ui.layout.form.Form and sap.ui.layout.form.ResponsiveLayout as layout. And i gave line height from CSS using 'line-height' style, it is working good in Chrome but coming to the IE, the text  in all buttons are looking like below .
    If we increase the height it is showing the text, but i don't want to increase the button height.
    Is there any way i can do this using any layout styles, i am m=not able to find any 'line-height' kind of properties in the Form of ResponsiveLayout .
    Thank you,

    Hi Shashank,
         Add this class in CSS and change the values as required.
    .sapUiBtnS { 
    padding: 4px 58px 19px;
    height: 22px;
    font-size: 12px;

Maybe you are looking for

  • DATASET_WRITE_ERROR :How to know the value of a field at the time of error?

    Hi All, I have an ABAP code that write some records to a  flat file. Am getting a DATASET_WRITE_ERROR when this program is run. in ST22 i checked for any info that could be of help. The Error Text is: "No Space left on device" Error code: 28. Now i w

  • PI 7.1 HTTPS Communication

    Hi PI Experts, We are enabling HTTPS communication in PI 7.1 EHP1 using CIDX adapter. We have nearly completed settings after going through several threads and sap help documentation. 1. Defined SSL parameters in RZ10 (ssl/pse_provider = Java and oth

  • "Balancing field "Profit Centre" in line items 001 not filled."

    Hi Gurus, When make an entry for asset acqisition it is throwing an error as "Balancing field "Profit Centre" in line items 001 not filled." pls let me know how to rectify this error. warm regards Manjunath

  • Date format when getting a PDF document with RESTful changes

    Hi all, I have a simple document with a date concatenation (as a string) for DateFrom - DateTo (for example "1/4/2015 - 30/4/2015") When I am in WebI I can see it in this format, even if I export it to PDF or Excel. However when I open it using BO BI

  • How can i add a time stamp to tdms file?

    I want the data and the time for the tdms file generated? how can i do that? should i cinvert .tdms to .lvm and use the data storage option or excel add on option for .lvm file created? cant i directly have the time stamp for tdms file generated?