How to make chart scrollable?

Hi everybody,
I want to ask how to make a chart become scrollable (just like a chart with a scroll bar that help us see all content in this chart when this content become to large).
Because my line chart adding series data based on real time, so the content change dynamically. And when the content change, I don't want the axis change its size to fit the chart size, because it make the line chart smaller and narrow.
I have seen in JavaFx Ensemble the example *"Advanced Stock Line Chart Sample"*, it seem like what I looking for. But this chart clear the old data after a period. I want chart to keep the old data and when I want to review, just scroll back
Can anyone give me suggestion?

Have you looked at ScrollPane.... http://docs.oracle.com/javafx/2/api/javafx/scene/control/ScrollPane.html
You can just throw your chart in there. Then if your chart gets bigger then the screens dimensions the ScrollPane will become scrollable.

Similar Messages

  • How to make HtmlSelectManyCheckBox scrollable

    Hi,
    I have a requirement like , have to create the checkbox list dynamically.
    I am doing it through the binding. But i want to make the HtmlSelectManyCheckBox should be scrollable.
    I am doing as belwo
    HtmlPanelGrid innerGrid = new HtmlPanelGrid();
                   innerGrid.setWidth("150%");     
                   innerGrid.setStyle("height:150px; border:2px; overflow-x: scroll; overflow-y: scroll;");
    HtmlSelectManyCheckbox selectBox = new HtmlSelectManyCheckbox();
                   selectBox.setBorder(3);
                   selectBox.setLayout("pageDirection");
                   selectBox.setStyleClass("selectManyCheckbox");
                   selectBox.setTitle(catVO.getCatName());
                   // adding the selectitems to select many list box
                   UISelectItems items = new UISelectItems();
                   items.setValue(catVO.getInterestItems());               
                   selectBox.getChildren().add(items);
    innerGrid.getChildren.add(selectBox);Though i set the style of the grid to be scrollable , but its not working properly.
    Plz help me , how to make it scrollable.

    hari_honey wrote:
    Thank u , ok how to apply the styles or style class to the HtmlPanelGroup.Uh, just the same way.
    And i have to create the lists dynamically , and i dont have the count of the number of panelGroups.You already have the count of checkboxes.
    How can i put them in table.The same way.

  • How to make JList scrollable left right?

    Hi,
    How to make JList scrollable left right?
    Ty.

    jList MyList = new JList();
    JScrollPane  sp = new JScrollPane(MyJList,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);then the horizontal (and vertical if its the case) scrollbar will show up
    hope this helps

  • How to make JFrame scrollable?

    How can I make a JFrame scrollable? So that when I resize the JFrame to a smaller size the contents remain accessible? The way it is now is that when I resize a JFrame I can't access the components that fall out of the window (I'm using absolute component positioning within the JFrame). I thought adding two scrollbars to take care of this would be easy, but so far I haven't been able to get it right. Any suggestions would be appreciated.

    Why dont you put all your components in a JPanel, add a scrollpane to it and then add that JPanel to
    ur JFrame.
    += KRR

  • How to make a scrollable applet

    How do I make an applet scroallable? Not a scrollpane within an applet but instead make the whole contentpane for the applet as a scrollable pane if the content within the applet�s contentpane is too small to view all the added content. Or if the applet is added to a frame to be run as an application and the frame size is decreased.
    That is, how do I make a scrollpane that fills the whole contentpane for the applet and is resized together with the applet�s contentpane? What do I for example have to add to this little applet to make it�s contentpane scrollable?
    public class Applet extends javax.swing.JApplet
        public void init()
            // Initialization of the applet pane
            getContentPane().setBackground(java.awt.Color.WHITE);
            getContentPane().setLayout(null);
            // Adds some content
            JLabel label = new JLabel("Applet application");
            label.setSize(100, 20);
            label.setLocation(10, 10);
            getContentPane().add(label);
    }It is probably very easy but I can�t figure it out myself yet, I am still too new to Swing : )

    Thank you for your answer, but I am not quite happy yet ...
    What is it so bad with use of null-layout? I have found that I can use exact positioning using setLocation if I set use null-layout which I can�t with for example BorderLayout. It is even worse, the BorderLayout makes the UI ugly by size of the content to fill one out of five "cells". But I know I am wrong when I say nul-layout is fine because many other also complains on null-layout, I just don�t know why I am wrong?
    But any way, with null-layout, something like this ...
           JPanel contentPane = new JPanel(new java.awt.BorderLayout());
           getContentPane().add(new JScrollPane(contentPane));
           JScrollPane scrollpane = new JScrollPane();
           scrollpane.getViewport().add(getContentPane());
           // Initialization of the applet pane
           contentPane.setBackground(java.awt.Color.WHITE);
           contentPane.setLayout(null);
           contentPane.add(table);do I just get a white empty area. If I instead use a BorderLayout like in your example do the table fill the whole space, and that does not look too beautiful. Couldn�t I instead get a pane with some absolute positioned elements that has some space around them scrollable?
    I guess I am on the wrong direction now : ) but I then need someone to teach me why?

  • How to make chart from multiple loops without local variables

    Hi,
    It is my first experience in LabView.
    I did a program that communicate with Power Supply Device via RS232, sets an output voltage and read Voltage and Current in some sort of a program: Voltage goes up, staying in some value and then goes down. So there are many FOR LOOPS that sequensed one after another.
    I need to make a 2 live Charts (one for current and second for voltage), and the only one solution that i could obtain is using local variables. BUT also I need to export my data to the file after the end of the program (with real elapsed time for collecting data points) and with the use of local variables I cannot do so. Maybe the Shift Register will work, but I could not make it work.
    Thank you for help.
    Attachments:
    test.vi ‏47 KB

    You have multiple, deeply stacked, sequential loops. Way too complicated.
    All you need is a simple state machine architecture using a single loop and a single instance of your charts. No local variables needed. Simplify!!! You could even graph both values on a single chart.
    Look at your code. It is basically repeating the same thing with slighly different inputs. You only need to change the inputs based on state, and re-use the same IO function instances. Only one instance each needed.
    (you also have some misguided autoindexing near the middle of your code. Bad!)
    LabVIEW Champion . Do more with less code and in less time .

  • How to make a SCROLLABLE Table in ADF Faces ?

    Hi All,
    I want to make my ADF Table Scrollable (both Horizontally & vertically). It means when I have 30 rows on the table, I can make it only display 10 rows visible, then scroll it vertically.
    Also If I have wide tables(many columns) I can scroll it horizontally.
    Is it possible with ADF Faces ?
    (I look at FrameBorderLayout, but it seems not be able to do that )
    Thank you,
    xtanto

    Hi,
    What about the Horizontal scrolling ?
    for exampe :
    I have about 15 columns, the full page width can only shows 10, so I need to scroll horizontally, But I don't want to scroll the page, only the table.
    Is there any ADF Faces components for this ?
    or any commercial JSF components ?
    Thank you,
    xtanto

  • How to make JScrollPane scrollable only in the y- direction

    Hai,
    can some one help me fix this one. I need to create a JScrollPane which is scrollable only in the y direction.

    Hi everyone,
    Create the JScrollPane in this way
    JScrollPane ScrollPane1 = new ScrollPane(JComponent,
    VERTICAL_SCROLLBAR_ALWAYS,
    HORIZONTAL_SCROLLBAR_NEVER);Richard West

  • How to make chart labels come on side of chart and not below

    Do I have put the mx:legend in a vbox container? The legend
    displaying the chart series end's up below the chat instead of on
    the right of the chart.
    Thanks,
    VJ
    <mx:Panel title="Chart showing normalized performance
    compared to the major indices" height="100%" width="100%"
    paddingLeft="5" paddingRight="5">
    <mx:LineChart id="mychart" dataProvider="{chartData}"
    showDataTips="true">
    <mx:backgroundElements>
    <mx:GridLines direction="both"
    />
    </mx:backgroundElements>
    <mx:horizontalAxis>
    <mx:DateTimeAxis dataUnits="months"
    parseFunction="myParseFunction"
    labelUnits="months" displayLocalTime="true"/>
    </mx:horizontalAxis>
    <mx:horizontalAxisRenderer>
    <mx:AxisRenderer canStagger="true"
    canDropLabels="false"/>
    </mx:horizontalAxisRenderer>
    <mx:series>
    <mx:LineSeries id="portfolio" yField="normalizedValue"
    xField="date" displayName="portfolio" />
    <mx:LineSeries id="qqqq" yField="qqqqNormalizedValue"
    xField="date" displayName="qqqq"/>
    <mx:LineSeries id="ndx" yField="ndxNormalizedValue"
    xField="date" displayName="ndx"/>
    <mx:LineSeries id="spx" yField="spNormalizedValue"
    xField="date" displayName="spx"/>
    </mx:series>
    </mx:LineChart>
    <mx:Legend dataProvider="{mychart}"
    labelPlacement="right"/>
    </mx:Panel>

    yes, indeed. treat
    <mx:Legend dataProvider="{mychart}"
    labelPlacement="right"/>
    like any other Flex Component, put it in HBox and you're
    done. Currently you see it below the chart perhaps because the
    layout property of the part is set to 'vertical'.
    ATTA

  • How to make JMenu scrollable

    What to do if I have too many items in my Menu?
    Can I implement somthing similar scrolling and how?

    see http://forum.java.sun.com/thread.jsp?forum=57&thread=483165
    ;o)
    V.V.

  • How to make the editable col. in alv grid scrollable?

    friends,
        i have made the last col. in my alv grid editable..even though i have declared it as char of length 255, it's showing only 50 characters in the grid..but when i try to type beyond 50 characters, it's not allowing...how to make it scrollable so that it extends beyond 50 char. and capture all the characters typed in that col.? pl suggest..thanks all..
    Sathish. R

    Hi, u can extend the length of your last field.
    LOOP AT t_fieldcat INTO ls_fcat.
        CASE ls_fcat-fieldname.
          WHEN text-001.
            ls_fcat-outputlen = c_10.                    "10
          WHEN text-002.
            ls_fcat-outputlen = c_20.                    "20
          WHEN text-003.                                  "your lastfield
            ls_fcat-outputlen = c_255.                  "255
                "do nothing
        ENDCASE.
    *fixed column
        ls_fcat-fix_column = c_x.
    *changes to take effect
        MODIFY t_fieldcat FROM ls_fcat.
        IF sy-subrc = 0.
          "do nothing
        ENDIF.
        CLEAR ls_fcat.
      ENDLOOP.

  • How to make a Gant Chart in OBIEE analysis

    Hi all,
    I have intergrate OBIEE 11g with my ERP system, module Project Management. Now, i want to make a Gant chart on BIEE to manage time of project.
    But i can't see this chart type on BIEE, plz tell me how to make it.
    Tks so much

    Please refer to the following link on how to create gantt charts in OBIEE.
    http://oraclebizint.wordpress.com/2007/12/06/oracle-bi-ee-101332-marquee-images-and-gantt-charts/
    Thank you,
    -Amith.

  • How do you make charts in the Numbers app on the iPad?

    I've followed the guides, asked Geniuses and spoken with AppleCare on how to implement charts within the iPad Numbers app. So far I haven't been able together any help or suggestions.
    I am trying to create a pie chart showing some data for an investment portfolio. So maybe 6 investments totalling 100%. When I select the data first and click on create a chart, it brings up one single segment showing 100%. If I add the data afterwards it does the same, sometimes when you click change from rows to columns will it bring up more than one segment, but not always. It also does not show the chart labels with the input data, and just leaves them as coloured dots.
    I have found one one, way is to click individual pieces of data, so 6 clicks in this example, but it still doesn't show the labels and I can't work out how to make it do this.
    It shouldn't be this hard, to create on of the new beautiful charts as advertised for this app, but yet no one at apple seems to know how it works, and suggest its either a bug or that the app isn't powerful enough to create charts?
    I have tried on a first and third generation iPad, as well as on my pone 3GS and 4S but none of these work either.
    Please help.......
    Thanks
    Nick

    laserblues2
    Start with your table. Create the table and values you need
    Select the values to include by tapping on one cell and then dragging the selection handles
    When "Create Chart" Appears, tap it and select your chart type (pie in this case) - the chart will appear as 100% filled, don't worry.
    Tap the chart once and then tap Edit References - this will reveal a Gear Menu in the upper right
    Tap the gear and select "Plot Rows as Series" or "Plot Coumns as Series" as needed
    You should now have a pie chart that you can modify the style to your liking.
    Good Luck

  • How to make dos window scrollable under win98?

    Hi, I am using win98, every time when I run my GUI application, whenever I got bunch of error message that can not be displayed in one window, I will miss the original error information. Can anyone tell me how to make my dos window scrollable so that I can view all error message.
    Thanks a lot.

    I don't think that you can do this. There is another way, however: When java throws an exception, if it is not caught in your program, it is sent to the standard error, which is the console. You can simply reset this to be a file, so you can read this to get all the error info. Try using the following code in your main method:
      public static void main(String[] arg) {
        try {
          System.setErr(new PrintStream(new FileOutputStream(new File("Errors"))));
          //instantiate your main class here
          MyClass mc=new MyClass(); //or whatever
        } catch (Exception _ex) {     
          System.out.println("An error occurred"); //exception get sent to standard error automatically, so there
                                  //is no real need to catch this exception. However, I use it to display
                                  //a message on the console to let me know an error has occurred.
          System.err.println(_ex.getMessage()); //and finally, print the exception to file
          _ex.printStackTrace();
      }

  • I have 10 UiWebView to load different charts and maps on an iPad,using UIScrollView to scroll through each page, problem is on loading of each UiWebView my UiScrollView does not scroll smoothly to other pages horizontally,so how to make the scroll smooth?

    I have 8-10 UiWebView's  to load different charts and maps on an iPad, i am using UIScrollView to scroll through each page, problem is while loading of each UiWebView my UiScrollView does not scroll smoothly to other pages horizontally, my query is can i load UiWebView on background and how to make sure the scoll of pages is smooth, even though the loading of UiWebViews may take time.
    Note :i have tried disabled scrolling on webview, so when i scroll on the page  the scroll event will be of UiScrollView, so believe no conflict with UiWebView.
    also in ios 6 i read about suppressesIncrementalRendering = True but i want to support ios5, also as UiWebViews are said to be running on main thread by default, i suspect when loading of webViews and when user tries to scroll the page, the main thread is busy, but i want the scroll of the page to be smooth  even though the loading of UiWebViews may take time.

    You will probably get a faster and more accurate answer if
    you repost in the Developers Forum.

Maybe you are looking for