The point value of graphic display WPF overview

Hello

Y at - it an easy way to display the value of a point (with formatting similar to a slider) flying over when the mouse point? I use the chart control WPF (MStudio 2013) with several plots represented graphic on an AxisDouble. (y-axis) and AxisPrecisionDateTime (x axis). Let me know if you need more information and thanks in advance.

When a Cursor is set to align the data, it uses the FindNearestValue method to find the value of land near. When it is not set to align the data, he reports the value of the current screen with the ScreenToData method. The following code example shows how to use both to display the current value of the mouse on a chart using a ToolTip:

private static readonly GraphQueryArgs query = new GraphQueryArgs(

        PlotsToSearch.Any, SearchDimensions.HorizontalAndVertical,

        SearchDirections.ForwardAndReverse, isInclusive: true );

public MainWindow( ) {

        InitializeComponent( );

graph.PlotAreaMouseMove += this.OnPlotAreaMouseMove;

        graph.PlotAreaMouseLeave += delegate { graph.ToolTip = null; };

        ToolTipService.SetInitialShowDelay( graph, 0 );

        ToolTipService.SetShowDuration( graph, int.MaxValue );

    }

private void OnPlotAreaMouseMove( object sender, MouseEventArgs e ) {

        IPlot plot = graph.AllPlots[0];

        Point screenPosition = graph.GetPlotAreaPosition( e );

        IList pixelValue = graph.ScreenToData( plot, screenPosition );

        string tip = string.Format(

            "Absolute value at point {0} is {1}.",

            screenPosition, FormatValue( pixelValue ) );

        Point relativePosition = graph.ScreenToRelative( screenPosition );

PlotValue nearestValue = graph.FindNearestValue( plot, relativePosition, query );

        if( nearestValue != null )

            tip += Environment.NewLine + string.Format(

                "Nearest value on {0} is {1}.",

                nearestValue.PlotObserver.Label,

                FormatValue( nearestValue.Value ) );

graph.ToolTip = tip;

    }

private static string FormatValue( IList values ) {

        return string.Join( ", ", values.Cast( ) );

    }

Tags: NI Software

Similar Questions

  • Windows Update broke the card drivers and graphic display; Impossible to reinstall either.

    On 5 October, I installed two optional Windows updates:

    1 - display - nVidia NVIDIA GeForce 6600GT

    nVidia Display software update released in July 2010

    2 Samsung - display - SyncMaster 2494SW (digital)

    Updated software Samsung screen released in August 2009

    After installation and reboot, my screen resolution is now set to 1280 x 1024 (max resolution) and the monitor is not recognized in front of a default monitor. -http://www.verityhw.com/uploader/files/1/display_settings.png

    I tried to install the latest nVidia on their site (258.96) drivers, and they say that they installed, but on reboot, there is no change.

    I tried to install the drivers for the monitor Samsung 2494SW, but he does not see a device to install the drivers on. -
    http://www.verityhw.com/Uploader/files/1/2494sw_driver.PNG

    I looked in the Device Manager and saw that there was an error with my nVidia 6600GT. -http://www.verityhw.com/uploader/files/1/device_manager.png

    By clicking on properties, I see that the error is Windows has stopped this device because it has reported problems. (Code 43) . -http://www.verityhw.com/uploader/files/1/6600gt_properties.png

    Of course Windows has not completely stopped the device because I still have the graphics, although terrible ones.

    I looked at the drivers installed for the 6600GT and they seem to be the most recent of those (8.17.12.5896).

    At this point, I'm all out of ideas. Everything worked fine before the Windows Update and there is apparently no way to uninstall updates. (I tried to uninstall the drivers of the 6600GT, but it just keeps back to 8.17.12.5896's).

    Any help is appreciated!

    This Forum of WU is for Win Vista, XP & Win 7 if posted same in Win7 forum.

    Perhaps an SR is your next option.

    Harold Horne / TaurArian [MVP] 2005-2011. The information has been provided * being * with no guarantee or warranty.

  • How to display the max value of channel report repel?

    Hi all

    I have 2 text boxes start and ready target on my report. I need my minimum value of the layer and the other value to automatically display in the start menu and to target channels max case respectively.

    How can I go about it?

    Rsh

    Hello, RSH,.

    Now, how can I limit the decimal points to 2 digits, say, for example, we use d.dd. How can I use it here?

    You can simply convert the string variables and the format of this string using the str function in DIAdem.

    Here is an example for your specific application:

    Maximum: @@str (CMax("[1]/Speed"), "d.dd").

    I hope this helps.

    Otmar

  • How can I get a graphic display in real time of a task daqmx

    Hello

    I have set up a task DAQmx using the DAQ assistant and the task is to work and produce a graph/data, but not before the task is complete. How can I get a display in real-time of the numberical values or graphics?

    Any help would be really appreciated

    Thanks, Paul

    paultryan wrote:

    I could get set the frequency of sampling and to give a regular change of output, but im looking to get this long-term data acquisition. For example, the graph changes everything but 1 - 5 get 30 minutes of data.

    I used the DAQ assistant and labview is completely new to me, if im not sure where it take it from here.

    concerning

    Then you should use a chart - not a graphic. A graph has a story. You must set this. Right click and select "Chart History Length".

  • Convert the column values into buckets

    Hello

    Please help me to convert the column values into buckets.
    I have the values of the columns in the following way.


    Age of Orderdate * 9 10 12 14 15 18 19 20 21 22 26 27 28 29 33 34 40 45 * and so on



    But the requirement is the column values should be displayed in form

    Age by order date * 15 1 2 3 4 5 6 7 8 9 10 11 - 16-20 21-25, 26-30 30 + *.


    Please someone give me the solution.

    Thanks in advance.

    Hervé Rama

    Hi Richard,

    Just to double check, you have Setup buckets for 1, 2, 3, 4, 5, 6, 7 and 8 individually (each with a fair value). The problem is that you simply do not have all data fall into buckets above, correct?

    If this is the case, it looks like has been answered your original question. If so, the label would assign 'Proper' points by clicking on the button label correct next to the appropriate response and open a new thread with your new question. The reason why I say this is it will help other people who have a similar bucket question to your solution, without complicating the issue with subsequent questions.

    If you can post a separate thread, I'd be more than happy to help you with your secondary problem.

    Best regards

    -Joe

  • Tecra A9 XP-Pro/Graphics display problem - 11 M

    You just bought a Tecra A9 - 11 M running XP Pro. I can't go to Vista I use various industrial software packages that are not yet compatible. I have the following problems with graphic display:

    1. a lot of Web sites are not displayed correctly. Colored backgrounds etc often lack altiogether.
    2. when I compose an email in Outlook Express, the color of the text remains black no matter what color choose.
    3. when I type messages in Windows Live Messenger, the text appears in the color I chose that I type in, but then goes black after clicking the Enter key.
    4. when I use the graph editor in one of my industrial packages (Siemens Win - CC), if I try to change the color of an element to display the color palette appears empty as if it cannot display the colors.

    Paint and Wordpad, both work correctly in terms of colors.

    I use the default screen (1680 x 1050) and 32-bit color resolution. I tried different combinations of lower resolution and also change to 16-bit color, all to nothing will do. I tried to update the downloads of Toshiba display driver, but he sent the message that my pc does not have the minimum requirements for installation. Yet, everything works perfectly and there are tons of disk space and free ram. I also checked that mmy BIOS is the latest version. I am pleased with the machine in general, but at my wits end to know what to try next.

    > I tried to update the downloads of Toshiba display driver, but he sent the message that my pc does not have the minimum requirements for installation.

    Are you sure you used the right graphics driver?
    Have you used the download Toshiba pilot European page graphic driver FRO?

    It seems it s an Intel graphics card and you must use an Intel graphics driver.

    One question; the screen works properly without any installation of 3rd party applications?

    If Yes, then it s a software problem caused by 3rd party programs.
    The software is perhaps not fully compatible with the GPU from Intel or Intel shared graphics is not strong enough to manage the graphic editior

  • WPF graphics, display plot marker (with contact information tooltip) on the mouse event

    Hello

    I need display the coordinates of the point of the field when the mouse pointer is positioned top/close to him.

    I already display a ToolTip with coordinates using the code in this LINK (works equally well for graph).

    However, it is not easy to see where the field is selected, especially when you have more than one land close to eachother.  Is there a way to display some sort of a 'marker '?  A bit of as Signal Analyzer?

    Thank you.

    If you want to display a target and the label next to the value as a user moves the mouse over a graphic, a possibility would be to use SetRelativePosition on a slider.

    If you want to just use a marker in the chart and keep the label in the ToolTip, you can set the relative position of a Visual in the Children collection:

    XAML

        

            

                

                ni:Cursor x:Name="cursor" />

                

                Ellipse x:Name="marker" Width="10" Height="10"

                         Stroke="Black" StrokeThickness="2"

                         niPrimitives:RelativePanel.RelativeHorizontalAlignment="Center"

                         niPrimitives:RelativePanel.RelativeVerticalAlignment="Center"

                         />

            

        

    Code

        private void OnPlotAreaMouseMove( object sender, MouseEventArgs e ) {

            IPlot plot = graph.AllPlots[0];

            Point screenPosition = graph.GetPlotAreaPosition( e );

            Point relativePosition = graph.ScreenToRelative( screenPosition );

    // Option 1

            cursor.SetRelativePosition( relativePosition );

    // Option 2

            PlotValue nearestValue = graph.FindNearestValue( plot, relativePosition, query );

            if( nearestValue != null ) {

                graph.ToolTip = string.Format(

                    "Nearest value is at ({0},{1}).",

                    nearestValue.Value.Cast( ).ToArray( ) );

    Point nearestValuePosition = nearestValue.GetRelativePosition( );

                RelativePanel.SetRelativeHorizontalPosition( marker, nearestValuePosition.X );

                RelativePanel.SetRelativeVerticalPosition( marker, nearestValuePosition.Y );

            }

        }

  • Add the value of point two apex and display the result in another part of the apex

    Hello

    I need to make the addition of the two item values using apex.item.text and find the result in another apex.item.text.

    For example:
    SELECT
    apex_item. Text(1,null) ONE
    apex_item. Text(2,null) TWO
    apex_item. Text(3,null) RESULT
    FROM EMP
    please suggest me

    Thank you
    Sudhir

    >
    No it does not add the two values in the column, user key to enter the value, it must add the value of the item and displays the result in a dynamic way. Need a suggestion for using javascript
    >
    This requirement was not not clear in the op.

    See the demo of Denes Kubicek.

    This topic is discussed far too often. Have you tried to Oracle Application Express (APEX) and adapting one of the many examples of LoV cascading to your situation?

    See you soon,.

    PS: Tip:
    Look for the p_item_id and p_attributes of the APEX_ITEM API parameters.
    You can call JS functions for example using p_attribute

    APEX_ITEM.TEXT(...
    p_attributes => 'onchange="doTotal(this);"', /* doTotal being your JS Function */
    ...
    

    Published by: Dominic August 16, 2012 11:52

  • How do the box values ring to have figures after the decimal point

    How do the box values ring to have figures after the decimal point

    Thanks in advance

    Control properties editor:

    Change the representation in the floating point data Type tab type, DBL will do.

    Then go to the Page of display Format and increment 'Numbers' to something greater than 1

    That toggles the column of values on the tab change the items to % .6f, or 6 digits of precision. Uncheck sequential following, values and you're there.

    If you think that's too restrictive, go back the display Format, then select if rating and you can type anything (but, the editor has a hissing fit, so you must load chains and property [] with a property node values programmatically)

    I've been struggling to get OR improve this editor of properties of the years!

  • Application of interactive report of apEx using the last value of the point

    My interactive report is based on a field, but the value of the field is not applied when executing the query

    SELECT *.

    MyTable FROM A

    where A.registration_year =: REGISTRATION_YEAR_ITEM

    I created an item in the page REGISTRATION_YEAR_ITEM

    When I run the query, I want the user to type in a year, and then run the query and display the corresponding results.

    The query always seems to use the default value of points instead of the current value

    How can I do use the value of the current field?

    I also tried the V method, but produce the same results

    where A.registration_year = v('REGISTRATION_YEAR_ITEM')


    The environment is ApEx 312, 10.2.0.4 database

    Unfortunately, the upgrade is not an option


    Thanks for any help you can offer

    S.Bovin wrote:

    My interactive report is based on a field, but the value of the field is not applied when executing the query

    SELECT *.

    MyTable FROM A

    where A.registration_year =: REGISTRATION_YEAR_ITEM

    I created an item in the page REGISTRATION_YEAR_ITEM

    When I run the query, I want the user to type in a year, and then run the query and display the corresponding results.

    The query always seems to use the default value of points instead of the current value

    How can I do use the value of the current field?

    Add the REGISTRATION_YEAR_ITEM to the IR Page elements to submit property. He will submit the current value in session state.

    Why bother with the page element at all? Why users can't create just an IR filter?

    I also tried the V method, but produce the same results

    where A.registration_year = v('REGISTRATION_YEAR_ITEM')

    For performance reasons, use bind variable notation when you reference values from session state in SQL queries.

    The environment is ApEx 312, 10.2.0.4 database

    Unfortunately, the upgrade is not an option

    Why not? That it will provide you with a safe and supported environment and your users with a much better life.

  • Inside af AF:selectOneChoice: table sometimes does not display the appropriate values, based on the results of the query of the view object

    Hello

    I use jdev 12.1.2.

    I have a few components of af: selectOneChoice that is contained in an af:table element.  The table is extracting lines from database and display data.  Now here's the weird part: sometimes the component of selectOneChoice will have the correct value selected, and other times it will be just left unchecked.  I can verify that the data in the object view lines are indeed correct after I request them.  The LOV for soc components are properly set up (some are configured as static list display objects and some are set up as model driven lists based on display objects).  I have just completely puzzled me as to why they work sometimes and then not work at times even though I am following the exact same steps to reach that point in my application.  Someone at - he never meets this problem before?

    Thanks for reading.

    Problem solved!

    For anyone having this problem in the future: do not try to do a partial trigger on a table that is not in the visible panelTab.  The problem is that when my view criteria applying, I was refreshing the TWO tables.  This caused that was not visible to lose the selectOneChoice selection, while the other table was very good.  Remove the partial relaxation for the table that was not visible caused the data to be maintained properly during the exchange between the tabs and change the view criteria.  Thanks for the help again Ashish, stumbled on the real root of the problem, after following some of your suggestions.

  • Dynamic action to set the value of the point of Application

    Hello
    I want to display a form button that sets a value of the point of Application. Can someone please help and guide how to proceed?

    The requirement is, the user will receive a report, they can change a record and a button will allow him to SET the record for the session. When it accesses a different page within the application, they will see that the data relevant to the record that is DEFINED.

    Thanks in advance
    Aali

    Hi, Estelle,.

    You can use the dynamic action 'Code from PL/SQL Execute' to fix your application. For example, your code might look like

    begin
        :G_DISPLAY_MODE := :P1_DISPLAY_MODE;
    end;
    

    Page items to submit: P1_DISPLAY_MODE

    P1_DISPLAY_MODE would be the element on your current page where you select the desired value.

    Hope that you give something to play with.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • using the value of the point of application in javascript

    Hi all

    Apex 3.1

    I have a javascript that calls an application process, please see below. In the application process, I have create/modify the value of an element of the application logic. Later in the javascript, I need to define a page element to the value of the application element that has been created in the application process. All of the alerts that I post for the javascript display this value as empty, even though a similar HTP.prn in the process of the application displays the value! Once the completed script the correct value of the issue of enforcement is in session state. Can someone explain this problem of sync for me? Why can't I get the value of an element of application in javascript code when the application process is called by the javascript code?

    Is there a simple solution for me to get this value?
    <script>
    function f_ValidateLinkLine(pThis) {
        
       // The row in the table
       var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
       
       // is Link Line really a number?  
       if ( isNaN(html_GetElement('f20_'+vRow).value)) {
            if (html_GetElement('f20_'+vRow).value.length > 0) {
            alert('Link Line is an invalid number - '+html_GetElement('f20_'+vRow).value);
            html_GetElement('f20_'+vRow).value = '';
            }
       } else {  
           if ( ! isNaN( parseFloat(html_GetElement('f20_'+vRow).value) ) ) {
    
       var link_line = parseInt(html_GetElement('f20_'+vRow).value);
    
       if (html_GetElement('f20_'+vRow).value.length > 0) {
    
          var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=ValidateLinkLine',0);
          get.add('F101_LINK_LINE',html_GetElement('f20_'+vRow).value);
          get.add('F101_INVENTORY_ITEM_ID',html_GetElement('inventory_item_id_'+Number(link_line)).value);
          get.add('F101_QUOTE_LINE_LINK_ID',html_GetElement('f01_'+spacer+link_line).value);
          get.add('F101_QUOTE_LINE_ID',html_GetElement('f01_'+vRow).value);
          get.add('F101_QUOTE_NUMBER',html_GetElement('f19_'+vRow).value);
    
          gReturn = get.get();
    
    
       // The application process can sometimes change the value of F101_QUOTE_LINE_ID
      //  and I need to set f37 to this value when this happens
    
        html_GetElement('f37_'+vRow).value =('&F101_QUOTE_LINE_ID.');  //< -- This does not work, the applicaiton item is blank!
     
          if (gReturn) { 
           alert(gReturn);
          }
     
          if(gReturn) { 
           html_GetElement('f20_'+vRow).value = '';
           html_GetElement('f37_'+vRow).value = '';
          }
    
       }  //End Check Length
    
      } else {
    
      html_GetElement('f37_'+vRow).value = '';
    
      } // is Link Line a number?    
     
     } // End If   
    
    } // End ValidateLinkLine
    
    </script>
    Published by: blue72TA on August 16, 2011 11:39

    Published by: blue72TA on August 16, 2011 11:41

    Published by: blue72TA on August 16, 2011 11:41

    Hello

    When you use the point of application in JavaScript, as you do, string &. F101_QUOTE_LINE_ID is replaced by the value of the session state.
    Changes to this value of the item when you call process On Demand do not affect the page.

    Lets take for example,
    You app element value of F101_QUOTE_LINE_ID is for example XX in session state.
    You run the page and view the source of the page that looks like this

    html_GetElement('f37_'+vRow).value =('XX');
    

    Like you have a value hard to JavaScript code.

    Nothing can change this, unless you refresh the page.

    You need return the value of the process On Demand.
    To set the value of code might look like so

    html_GetElement('f37_'+vRow).value = gReturn;
    

    Kind regards
    Jari

  • How to insert the value of table display

    Hi all

    I have a page element named that email and set this as view only, now I need to insert this value in the table I use insert statement like this: P255_EMAIL, but it gives an error.


    Can someone tell me how to insert this

    Thanks and greetings
    srikkanth. M

    Srikkanth,
    A single display element is not rendered at the point of entry to the difference of the other editable on the page elements, if you look at the html code of any view one item and compare it with a textfield should be clear.

    You can have another element hidden with the value that can be returned in the process
    OR

    Here's a little something that does not need any additional items to make the item view alone and still available in the world as a normal part

    Do not say P100_MY_ITEM like a textfield
    But in the text of element Pre_ give you

    <span class="display_only" >&P100_MY_ITEM.</span><span style="display:none">
    

    And in the text of item Post_ put

    </span>
    

    Hide the textfield object, it shows the value of the item as a single text to display.

  • Toggle the point according to the old/new value

    Hi all

    Here is the Version information.

    JheadStart: 11.1.1.2.29
    Operating system: Windows 7 64-bit.
    JDeveloper Studio Edition: 11.1.1.3.0 build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660
    ADF business components: 11.1.1.56.60
    Platform Java (TM): 1.6.0_18
    Oracle IDE: 11.1.1.3.37.56.60
    Oracle Developer Suite - Forms Builder 10g

    I'm trying to convert existing .fmb files for oracle forms web ADF merger Application. In order to get the same functionality in application forms, I have to toggle a text input box based on the value of the checkbox.

    To explain in detail, in the region of the table, I box with promple "Enabled" and text box entry with guest "reason for change. If the box is checked I store 'Y' in the database table that will be stored in other "n". When the user saves changes, new record is created in the audit table and the text box should be disabled. If the user changes the value of the check box, the value of the box is not the same as the value in the database table, I have to activate the input text box.

    I think that $DEPENDS_ON_ITEM_VALUE$ may not be an option here that I need to compare the old value that is in the database with the new value. Could you please suggest the best approach to manage this requirement? Can I create and copy the initial value, compare later if necessary? If so, how to apply it?

    Appreciate very much all your entries.

    Thank you
    Nathalie.

    Nathalie,

    Not sure why $DEPENDS_ON_ITEM_VALUE$ would not work.

    Anyway, you can create a transitional attribute in the object of the entity that returns the value of db displayed, add the attribute of the view object and as part of the jheadstart group, then package the element of reason for change on this point.

    To return the value in the Get your transitional attribute accessor method, you can use the getPostedAttribute method.

    Steven Davelaar,
    Jheadstart team.

Maybe you are looking for