Chart axis problem

I am writing data to a simple x-y chart where x values are cycle numbers (1,2,3,4....etc)
and y values are times in seconds. The total number of cycles sent to the
chart can be 100,000+, but I only need the last one hundred. I have therefore
set the history length attribute to 100 so I effectively display a window
of the last 100 cycles. Now, my problem is that I would like the y-axis (time)
to have a range of 0 to the current maximum displayed. I have auto-scaling
set, so the range is just the min and max of what is being displayed. How
can I fix the lower value of the y-axis range to zero whilst having the upper
value auto-scale? I'm using LabVIEW 5.1 on Windows 98.

Yes, I know how nice LabVIEW 6i is, but we haven't upgraded yet. Anyway, thanks
for your help, I'll give it a try.
Mike Manzheliy wrote:
>Hi Steven,>you can solve the problem by using attribute node.>For example,
set y scale max = max value, y scale min = 0>>P.S Steven, why you don't
using LabVIEW 6i?>It's much more comfortable.>>Best Regards>Mike>>Steven
White wrote>> I am writing data to a simple x-y chart where x values are
cycle numbers (1,2,3,4....etc)>> and y values are times in seconds. The total
number of cycles sent to the>> chart can be 100,000+, but I only need the
last one hundred. I have therefore>> set the history length attribute to
100 so I effectively display a window>> of the last 100 cycles. Now, my problem
is tha
t I would like the y-axis (time)>> to have a range of 0 to the current
maximum displayed. I have auto-scaling>> set, so the range is just the min
and max of what is being displayed. How>> can I fix the lower value of the
y-axis range to zero whilst having the upper>> value auto-scale? I'm using
LabVIEW 5.1 on Windows 98.>

Similar Messages

  • Problem replacing  chart axis title  with &string. syntax

    Apex 4.1.1
    Hi,
    I am having a problem replacing a chart axis title with substitution syntax &P5_MYFIELD., where P5_MYFIELD is an item with Source Type PL/SQL Function Body:
    begin
    return web_message.show('LASTNAME', 'dk');
    end;
    The Item is defined on the same Page as the chart in a different region. I can see that function is working ok, because the return value is displayed in P5_MYFIELD.
    There is a second item in an other region on the same page where the source value is defined with substitution syntax &P5_MYFIELD. It also displays the expected value. But when I use the string &P5_MYFIELD. as axis title it is not displayed.
    I also defined a field P0_MYFIELD on Page Zero with the same function, when I reference that with &P0_MYFIELD. as axis title on Page 5 the value is displayed correctly. I tried the same with a field on Page 1, &P1_MYFIELD. and it is displayed correctly.
    I think, the chart axis title must be substituted before the item P5_MYFIELD is executing the PL/SQL function body to get its value. Can anyone tell me why?
    We want to use string substitution syntax to translate all our labels in different languages. I would like to create hidden items with source type PL/SQL function body for all labels on a page and reference these values as label definitions. I would like to place them on the same page as the labels.
    Thanks
    Anne

    I started the application again and now also the Items are not displayed, only the message 'Label not defined', so I probably did something wrong with the computation. Why the correct values were shown during the first run, I do not know, maybe i did not logout in between.
    Here is the debugging information, but I cannot see any error message:
    0.02844 0.00038 Computation point: Before Header 4
    0.02881 0.00032 ...Perform computation of item: P5_CYCLE, type=FUNCTION_BODY 4
    0.02913 0.00060 ...Performing function body computation 4
    0.02973 0.00464 ...Execute Statement: declare function x return varchar2 is begin begin return web_message.show('CYCLE','de'); end; return null; end; begin wwv_flow.g_computation_result_vc := x; end; 4
    0.03437 0.00042 ......Result = Wurf 4
    0.03479 0.00046 ...Session State: Save "P5_CYCLE" - saving same value: "Wurf" 4
    0.03526 0.00027 Processes - point: BEFORE_HEADER 4
    0.03553 0.00027 ...close http header 4
    0.03580
    Edited by: Anne-Marie Rosa on Jun 8, 2012 10:09 AM
    Now the correct value is displayed again in the P5_MYFIELD, because I had to set the item source back to PL/SQL Function body, but I am still getting the chart error and the chart is not displayed.
    Edited by: Anne-Marie Rosa on Jun 8, 2012 10:17 AM

  • Bubble chart legend problem

    Hello.
    I have problem with bubble chart the problem is that in chart legend appear the same number of object what bubble in chart e.g. if chart have 5 bubble then legend also have 5 object.
    What do I want to obtain is that in chart appear bubble which have different color (color depends on condition) and legend relate only colors. For example if chart have 4 bubble 3 - red and 1 - green then in legend appear only two position which relate green and red color (now appear 4 object three about red and one green).
    Can any one tell me how to resolve this problem?

    I already did this I added three condition (three colors red, green and yellow) in field "Value of" I choosed "is equal to" unfortunately it didn't help.
    Maybe I joust try to describe what I want to show in this chart.
    Suppose I have table with four columns u201Cdateu201D, u201Camount (number type)u201D, u201Csize (number type)u201D, u201Crisku201D (text type) now where this value appear on chart:
    - date is x axis
    - amount is y axis
    - size is a bubble size
    - risk will be bubble color
    Now I have 3 kind of risk u201CLowu201D (green color), u201CMediumu201D (yellow color) and u201CHighu201D (red color).
    Now in my data base I have table with record:
    - u201C11-11-2009u201D, u201C1u201D, u201C2u201D, u201CMediumu201D
    - u201C12-11-2009u201D, u201C2u201D, u201C1u201D, u201CMediumu201D
    - u201C13-11-2009u201D, u201C1u201D, u201C1u201D, u201CHighu201D
    - u201C14-11-2009u201D, u201C3u201D, u201C3u201D, u201CLowu201D
    - u201C15-11-2009u201D, u201C1u201D, u201C1u201D, u201CLowu201D
    Ok so now In My chart I should have 5 bubble and in legend three value (green, red, yellow) but in this case I always have five (the same number what record in table).
    Sorry if this example is not clear.

  • Gantt Chart Related Problem

    Project Link:
    PPPM
    How to solve these problems.
    Problem 1:
    I have to scroll both the Gantt Chart and Task List scroll
    simultaneously. When i scroll Gantt Chart , then at the same time
    Task List and vice versa.
    Problem 2:
    How to stop Gantt Chart header movement stop when scroll the
    Gantt Chart.
    Problem 3:
    In the Gantt Chart Node, there are 2 section. One is dark
    section and other is lite section. I have to slide these scctions
    like like HDevidedBox effect.
    Please help me out from these problems.

    Hi Vedant,
    values are displayed in pie chart their label is not display.
    So you're able to view the value and label information when you hover over a slice i.e. viewing the tooltip, but you can't see the actual label for each slice of the pie. If you're not seeing all of the labels for the slices of the Pie chart, then this could due to a couple of reasons:
    1) the length of the label
    2) the position of the label
    3) the size of the chart
    Keep in mind that displaying all 41 labels on the chart could result in an extremely cluttered looking chart. AnyChart controls the visibility of the labels, depending on the above factors. So if your labels are quite lengthy, for example, and they are positioned to be displayed outside the chart, then AnyChart will display what labels it can for the given chart size. To work around this, having tooltips enabled is a good starting point. Alternatively, you could look at decreasing the length of the label text, changing the label position or even increasing the size of the chart. For further information on the label formatting, I would recommend reviewing AnyChart's online documentation, here: http://anychart.com/products/anychart/docs/users-guide/label-text-formatting.html?fromtree.
    Regards,
    Hilary

  • How do I rotate chart axis labels?

    Trying to rotaet chart axis labels for the x-axis, but would like to know the same for the y-axis too. Know the solution for a text box, but doesn't seem to work for the axis labels.

    Hi Martin,
    The solution is the same for X and Y labels. Select the labels and then set the rotation angle, either in the Format Bar or in the Metrics Inspector.
    Jerry

  • How to display PIE chart Axis label horizontally?

    Hi
    Currently my PIE chart axis label is displying in 2 lines. How make it to display in one line?
    Thank you

    hi,
    For Pie chart there will be no X-axis or Y-axis terms generally.
    Label/Text could be one of the following.
    Title?
    or Sub Title?
    or Foot note?
    Right Click -> Format Title . Reduce the font size such that it fits into a single line.
    Regards,
    Vamsee

  • Chart Axis: Label Renderer pixel width

    Am using custom label renderer for Chart Axis labels.
    CustomLabelRenderer extends label
    override   public function set data(value:Object):void
     if(value is AxisLabel){
    dataValue = String(value.text);
    else{
    dataValue = String(value);
    I would like to get the Width of the Label component in PIXELS on runtime.
    Can you please tell me how I can get the pixel width of the labels that gets updated when user changes the screen resolution.
    Please let me know ASAP.
    Thanks

    See this example and the related thread:
    http://apex.oracle.com/pls/otn/f?p=31517:222
    Basically, you need to customize the chart XML. That is quite easy to do.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Urgent: Chart Axis with Min, Max, Help needed.

    Hi guys,
    I am rushing on a report submodule in our application, which will go on live in a short time. We need to have charts which use min and max value from the table and calculate the appropriate interval as the scale of the axis, instead of the default interval.
    I also tried to put page items into the Min&Max in the chart attributes, but always got the error message that asks for a number.
    I have searched the forum and the conclusion I can made now, is that HTMLDB does not support parameterized value for chart axis.
    So, my question is: if I have to do it manually, how should I do it? I don't have much experiences in pl/sql, so really need some help here.
    Any input is appreciated.

    Does anybody know whether a chart can be built on a collection? I've tried but didn't succeed.
    If somebody has experiences on this, please let me know, so I won't waste more time on trying it if the answer is no. Thanks.

  • Tool tips on chart axis

    Is there a way to create a dynamic tool tip for the labels on
    the chart axis. For example I have a bar chart that shows the
    quantity ordered in 5 categories. I want to be able to add a tool
    tip to the category label on the vertical axis to help explain what
    the category is. I need this tool tip to change based on the
    category that is rolled over. I'm assuming I should be able to do
    something with the ToolTipCreate action on an axis renderer but I
    can't figure out how to find out which label is being moused over.
    Any help would be greatly appreciated. Thanks in advance.

    I'm not sure if you're refering to components you can place in containers, but if you are, there's a ToolTipText option in the component inspector for every component you can select. If you want to change the tooltips manually for specific components, you can use the method (Component).setToolTipText(String text). Hope that helps...
    hello again,
    just one more question :) i was wondering if anyone
    knows how to implement tool tips with controls in
    JavaForte. i looked through the properties window,
    but didnt see any .ToolTipText property.... i know
    its possible, and probably just one line of code,
    anyone know it? thanks a lot in advance for any help!
    talk to ya later,
    Steven M. Berardi
    [email protected]

  • Controlling Chart Axis limits in Interactive Report

    I have set up a bar chart in an Interactive Report where the x-axis is supposed to be a percentage. Currently, the bar chart's x-axis goes out to 120. Is it possible to limit it to 100 without having to create a chart region?
    Thanks in advance!

    Hi Dimitri,
    Firs of all thank you for your patience. I do not oblige you to answer or whatever. it was kind of showing you the error.
    There are date columns but they were not selected for the chart.
    SELECT
         a."FICHE_ID" "N°",
         b."AGENT_ID" "AGENT_ID",
         b."NOM" || ' ' || b."PRENOM" "Agent",
         a."EQUIPE_ID" "EQUIPE_ID",
         c."LIBELLE" "Equipe",
         a."DATE_ACTIVITE" "Journée",
         a."TOTAL_HEURES",
         a."TOTAL_HEURES_EXCEPTIONNELLES" "H. excep.",
         a."FICHE_CREE_PAR" "Fiche créée par",
            a."DATE_CREATION" "Le"
    FROM
         "OBSERVATOIRE"."FICHE" a,
         "OBSERVATOIRE"."AGENT" b,
         "OBSERVATOIRE"."EQUIPE" c
    WHERE
         a.AGENT_ID = b.AGENT_ID
    AND     a.EQUIPE_ID= c.EQUIPE_ID
    AND     (a.total_heures IS NOT NULL
             OR a.total_heures_exceptionnelles IS NOT NULL)
    group   by a."FICHE_ID" ,  b."AGENT_ID" ,
            b."NOM" || ' ' || b."PRENOM" ,
               a."EQUIPE_ID" ,
               c."LIBELLE" ,
               a."DATE_ACTIVITE" ,
         a."DATE_CREATION" ,
         a."FICHE_CREE_PAR",
         a."TOTAL_HEURES",
         a."TOTAL_HEURES_EXCEPTIONNELLES"
    ORDER BY
         a."DATE_CREATION" DESCThank you
    PS if you want we stay here, no problem I you do not want to go further with this thread.

  • Chart Axis Position

    Hi there,
    I'm wondering how I can fix the vertical axis of a chart into
    position. I have 4 charts that are vertically aligned. When the
    chart labels of one get larger than than the rest of the labels the
    chart resizes to make more room for the label. When this happens it
    throws the charts out of alignment. This is a big problem for me as
    the 4 charts share the same X-axis and I only have labels turned on
    for the bottom chart. The chart type is a linechart and the axis
    are both of linearAxis type. I have tried the verticalAxisRatio
    property of the lineChart but this has a rendering problem and
    tends to chop of part of the labels. Im wondering if I can
    explicitly fix the position of the vertical axis so they won't
    move.
    Thanks in advance.
    Tim

    Wow, I tried so many things (even tried the Scope and Sweep chart mode) but some settings must have been different then because the scope chart mode does it this time! Thanks a lot.
    Ben64

  • JFreeChart Dual Axis Problem

    Hi:
    I've developed a Dual Axis Chart (bar and line char) using the JFreeChart library.
    However, when the chart is displayed in the screen the line chart appears always behind the bar chart. How can I solve this? I would like that the bar chart appears behind the line chart.
    Here you can find a little bit of code:
               final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
               final DefaultCategoryDataset dataset2 = new DefaultCategoryDataset();
    // Here I add values to the datasets
                JFreeChart chart;
                if(tres.isSelected()) chart = ChartFactory.createBarChart3D("EVOLUCI� DE LA PRODUCCI� DE RESIDUS MUNICIPALS ("+c+") "+dd1+" --> "+dd2+". QUANTITATS EXPRESADES EN KG. / HAB. * DIA", "MES", "KG. / HAB. * DIA", dataset, PlotOrientation.VERTICAL, true, true, false);
                else chart = ChartFactory.createBarChart("EVOLUCI� DE LA PRODUCCI� DE RESIDUS MUNICIPALS ("+c+") "+dd1+" --> "+dd2+". QUANTITATS EXPRESADES EN KG. / HAB. * DIA", "MES", "KG. / HAB. * DIA", dataset, PlotOrientation.VERTICAL, true, true, false);
                chart.setBackgroundPaint(new Color(204, 204, 255));
                final CategoryPlot plot = chart.getCategoryPlot();
                plot.setBackgroundPaint(Color.white);
                plot.setDomainAxisLocation(AxisLocation.BOTTOM_OR_LEFT);
                plot.setRangeAxisLocation(AxisLocation.TOP_OR_LEFT);
                final CategoryItemRenderer renderer1 = plot.getRenderer();
                renderer1.setSeriesPaint(0, Color.RED);
                final ValueAxis axis2 = new NumberAxis3D("POBLACI�");
                plot.setRangeAxis(1, axis2);
                plot.setDataset(1, dataset2);
                plot.mapDatasetToRangeAxis(1, 1);
                final CategoryItemRenderer renderer2 = new LineAndShapeRenderer();
                renderer2.setSeriesPaint(0, Color.blue);
                plot.setRenderer(1, renderer2);
                plot.setDatasetRenderingOrder(DatasetRenderingOrder.REVERSE);
                plot.setNoDataMessage("NO HI HA DADES");
                ChartFrame frame = new ChartFrame("COMPOSICI� DELS RESIDUS MUNICIPALS", chart);
                frame.setIconImage(new ImageIcon(getClass().getResource("/rsu/Imatges/reciclatge.gif")).getImage());
                frame.pack();
                Dimension dPan = Toolkit.getDefaultToolkit().getScreenSize();
                Dimension dFin = frame.getSize();
                Double x = new Double((dPan.getWidth()-dFin.getWidth())/2);
                Double y = new Double((dPan.height - dFin.height)/2);
                frame.setLocation(x.intValue(), y.intValue());
                frame.setVisible(true);Lots of thanks for your help.

    Hi, I'm new using Java and JFreeChart and I'm facing a problem. I need to draw a XY chart with 2 series and assign each one a choosen color, but I can only have them in the same color! I don't know what I'm doing wrong. Can anybody help me whit this?
    Thanks in advance,
    Freddy
    P.D: This is the code for what I'm trying to do (excuse my english)
    final TickUnits units = new TickUnits();
                   units.add(new NumberTickUnit(337.5, new CompassFormat()));
                   units.add(new NumberTickUnit(315.0, new CompassFormat()));
                   units.add(new NumberTickUnit(292.5, new CompassFormat()));
                   units.add(new NumberTickUnit(270.0, new CompassFormat()));
                   units.add(new NumberTickUnit(247.5, new CompassFormat()));
                   units.add(new NumberTickUnit(225.0, new CompassFormat()));
                   units.add(new NumberTickUnit(202.5, new CompassFormat()));
                   units.add(new NumberTickUnit(180.0, new CompassFormat()));
                   units.add(new NumberTickUnit(157.5, new CompassFormat()));
                   units.add(new NumberTickUnit(135.0, new CompassFormat()));
                   units.add(new NumberTickUnit(112.5, new CompassFormat()));
                   units.add(new NumberTickUnit(90.0, new CompassFormat()));
                   units.add(new NumberTickUnit(67.5, new CompassFormat()));
                   units.add(new NumberTickUnit(45.0, new CompassFormat()));
                   units.add(new NumberTickUnit(22.5, new CompassFormat()));
                   XYDataset dataset7 = createhourDataset(24,50,"Velocidad");
                   JFreeChart chart8 = ChartFactory.createTimeSeriesChart("Diaria", "Hora", "mps", dataset7, true, true, false);
                   XYPlot plot2wd1 = chart8.getXYPlot();
                   final XYItemRenderer r1 = plot2wd1.getRenderer();
                   r1.setSeriesPaint(0, Color.RED);
                   ValueAxis axis2wd1 = new NumberAxis("");
                   axis2wd1.setRange(0.0, 360.0);
                   plot2wd1.setRangeAxis(1, axis2wd1);
                   axis2wd1.setStandardTickUnits(units);
                   axis2wd1.setAxisLinePaint(Color.blue);
                   axis2wd1.setTickLabelPaint(Color.blue);
                   axis2wd1.setTickMarkPaint(Color.blue);
                   plot2wd1.setDataset(1, createhourDataset(24,50,"Direcci�n"));
                   final XYItemRenderer r2 = plot2wd1.getRenderer();
                   r2.setSeriesPaint(0, Color.blue);
                   plot2wd1.setRenderer(1, r2);
                   ChartPanel panel_D1 = new ChartPanel(chart8);

  • Line / scatter plot axis problems

    I'm trying to create a graph to show the percentage of revenue that is generated by some percentage of classes offered, a la an 80-20 graph. Sample XML:
    <DATA>
    <RevenueByClass>
    <REVENUEBYCLASS_ROW>
    <CLASS_NUMBER>1</CLASS_NUMBER>
    <PERCENT_OF_CLASSES>.24</PERCENT_OF_CLASSES>
    <PERCENTAGE>4.67</PERCENTAGE>
    </REVENUEBYCLASS_ROW>
    <REVENUEBYCLASS_ROW>
    <CLASS_NUMBER>2</CLASS_NUMBER>
    <PERCENT_OF_CLASSES>.48</PERCENT_OF_CLASSES>
    <PERCENTAGE>6.83</PERCENTAGE>
    </REVENUEBYCLASS_ROW>
    </RevenueByClass>
    </DATA>
    Ideally, I want a line graph (which I can make without any trouble) with PERCENT_OF_CLASSES showing up on the X-axis and PERCENTAGE on the Y-axis. My problem is that, because it's a line graph, BI Beans treats the X-axis as ordinal rather than a data axis, so the axis labels are completely haywire. I would like a way to change the line graph so that the axis labels are the same as the Y-axis, preferably every 10% or 20%. Skipping doesn't work, because the total number of classes can vary so the exact percentages can vary as well.
    If there is no way to do that, I could try to make it as a scatter plot; however, it's not built into the wizard and I've had little success trying to build it by hand. Any help would be greatly appreciated.

    Unfortunately it seems that while most chart types can cope with data in rows, 'scatter' needs data to be in columns. If you create a table the transpose of how you described it, then click Listings and command-click 200, you should be able to create the correct scatter chart. Note that you'll probably then want to click the numbers on the x-axis of the chart (e.g. 80) until a narrow box appears which contains just those numbers. Then, in the chart inspector 'Axis' dialogue enter the value 50 in 'Value Axis Format':'Minimum', and maybe chnge the number of steps to suit (here 3). You might want to repeat this for the y-axis with different values.
    Craig.

  • Interactive Report - Chart axis value wrong data

    Hi,
    we created an interactive report based on demo_orders table.
    The interactive chart is displaying wrong data on the value axis (4,00000 instead of 4,000.00)!
    Values in the table are ok, even the value displayed when user clicks on specific data point is correct.
    Did somebody had similar problems?
    Application Express 3.2.0.00.27
    AnyChart #5.1.3
    Thanks.
    Regards,
    Kristjan

    Hi Kristjan,
    I'm able to reproduce the issue you report, using an Interactive Report in APEX 3.2.1 and 4.0, where the Application Language is a non-English option. So for example, if my chart label in English is *10,000.00* and when I switch the Application Primary Language to German, then the displayed values should be *10.000,00* however it is incorrectly appearing as *10,000*. When running in some non-English languages, the NLS decimal separator used is a comma ',', but this isn't been correctly applied to the Interactive Report chart. The problem is arising from the fact that the decimal separator setting in the chart XML is not being escaped correctly, and is therefore being ignored. I've logged bug 10154666 to track this issue, and a fix for this will be available in our next release. Thanks for bringing this to our attention. In the meantime, and to ensure the values on your chart are accurately displayed, it might be best to create a separate chart region on the page in question, rather than using the Interactive report chart.
    Regards,
    Hilary

  • Change minor chart axis scale markers to multiples of six

    I have a chart whose y-axis goes from 0 to 36.  For some reason, when I choose uniform marker spacing, I get markers at 0, 5, 10 , 15 , 20, 25, 30, 35 and 36.  This is, by the way, NOT uniform marker spacing.  Uniform spacing would be equal increments between spaces.  What I want is multiples of six:  0, 6, 12, 18, 24 and 36.  I have been through all the menus associated with this chart and there appears to be no way to make this simple change.
    Am I really forced to do this programmatically, even though it will never change?
    Solved!
    Go to Solution.

    Hi Wildcatherder,
    You should be able to set any axis markers you want by double-clicking on the marker and editing the number. Whatever value you specify in this manner will set the spacing on your chart. In your case, I would try changing the "5" marker to "6."   You can also choose "Arbitrary" marker spacing and assign whatever markers you want, uniform or otherwise.
    I've actually run into the same problem before, and the answer isn't readily apparent - thanks for asking here, hopefully someone else with this problem will be able to search for the solution more easily.
    Tom L.

Maybe you are looking for

  • Problem while dropping tablespace

    Hi all, I am getting following error while i am trying to drop tablespace ORA-02449: unique/primary keys in table referenced by foreign keys. I am using followin statement to drop tablespace; drop tablespace QAREF430 including contents and datafiles;

  • How can I install OSX on a new third-party hard drive in my Macbook Pro?

    I'll start off by saying that I bought my MBP (Mid 2009, 13 inch) used two years ago, and the seller never thought to mention that he had installed a third party hard drive not long before selling it to me... First problem. Anyway, the hard drive cra

  • Can we add new condition in old PO with new pricing schema

    We have created new pricing schema for addition of new condition type at header level on 25/11/2010 in client server but the problem is for old purchase order client want new condition on header condition tab.It is obvious that in old po on analysis

  • Table Name of VISA information

    table name which have the information of visa

  • Delivery document creation using vl01n

    Hi, I want to create a delivery document using VL01n.i need to create the doc for a particular selected item if there are many items for the order.i want to delete the remaining documents. how to handle this in BDC.