Change line styles in an Excel graph

I am using the report generation toolkit in LabVIEW 2009 and need to change the line styles of three lines on a graph in Excel.  I found the property node that allows me to change the line style but I am not sure what to pass into the varient.  I have tried the name (ie xlDash) and the integer value (ie -4115) but neither seem to work.  Has anyone tried this and can offer some advice.
Thank you,
AJL
Solved!
Go to Solution.

I should have posted this sooner but I found my own solution.  I decided to read the properties from an excel graph and found that LV uses an integer thats value corresponds to where in the list in Excel the line style is.  IE continuous has a value of 1 since it is first in the drop down in Excel, Dash has a value of 2 since it is second in the list, etc.  One problem with this is that your code is  not very robust since the result can change if Microsoft changes the order of their drop down list in newer verisons of Excel. 

Similar Messages

  • Flash line chart change line style.

    Hi guys,
    I am migrating charts in my application from SVG to Flash.
    For line charts in Flash, is there a way to change line style from solid to dashed or dotted?
    Thanks in advance.

    Hi,
    If you're using the new AnyChart then you can using bevel...not sure how its done with the old but it must be possible. Example here: http://anychart.com/products/anychart/docs/users-guide/Samples/Sample-Line-chart-Application-of-different-styles-to-chart-elements.xml
    <effects>
    <bevel enabled="true" highlight_opacity="0.4" shadow_opacity="0.4" distance="2"/>
    <drop_shadow enabled="true" opacity="0.3"/>
    </effects>Mike

  • Changing line style

    Hi,
    I'm using Draw Line function in Labview 10 to draw some lines in the front panel programmatically (the start point is given and I change the end point using a for loop). However, I don't want to use the default line styles and want to show the line with some arrows (like replacing the small dashes in dash style with some small arrows, or replacing the solid line style with a solid arrow). 
    Is there any way to do this?
    Thanks in advance for your help. 

    The "pen" input to teh Draw Line.vi gives the option to select Line Style.
    See attached
    Dan
    Attachments:
    Line Selection.png ‏3 KB

  • Is there a line style descrepancy with xy graph property nodes?

    Hello.
    I am attempting to display mutliple bar graphs in a single XY graph control. To color-code and label each one, I set up a for-loop and call each active plot to set the color, plot name, etc. The problematic thing is that when I define the vertical bar graph type by-hand, at the control on the front panel, I have 5 vertical plot style options. The fifth one produces the best results. When I try to set this property node in the block diagram, I have only three vertical plot style options. Is there a way around this?
    Appreciate any fedback.
    Best,
    Mike

    Hi Mike,
    I read the property node for the bar plots (after having setting it by hand to the one you like) and it appears that the value of that bar plot is 8. I also set it to a different bar plot by and hand then wrote "8" to the property node and that does seem to change it to the last  (left to right) vertical bar graph. I am running LV 7.1. If you look at the context help it does seem to indicate that the only values for vertical bar graphs are 1-3 but try writing "8" and see what happens.
    Cheers,
    --Russ

  • Can't change plot line style for chart

    I am using LabVIEW 8.6. In my program, the user has the ability to enable or disable autoscaling for the x axis by right clicking the chart. I use a proprty node to turn the plot to a dashed line during an alarm condition. The issue I have is - if x autoscaling is disabled, the plot style is always solid for new data entering the chart regardless of the property node setting. If autoscaling is enabled, the line style changes as I expect.
    Attached is a simple program that illustrates the problem. I don't know if I am doing something wrong.
    Any comments will be appreciated.
    Thank you,
    Dave F
    Attachments:
    chart line test LV8.zip ‏10 KB

    Hi Dave, 
    I looked at your VI and I definitely see the behavior you mentioned.  However I believe this is expected.  The plot is actually still writing in the dashed line, however very compactly.  You can see this if you make your x range smaller(perhaps 0 to 10).  This shows the dashed line.  With autoscaling turned on, the graph is redrawn every loop iteration.  so the dashed line is easy to see when zoomed out.  
    I think a better solution for what you are trying to use plot color, line width, etc. Or if you definitely want it to do Line style, you can have it change line style to 0 and then back to 1 every loop iteration.  This will force it to redraw, but will add overhead to your code and slow it down slightly.  
    David_L | Certified LabVIEW Architect
    LabVIEW Tools Network | LabVIEW Tools Network Developer Center

  • How to set line style to be underline for links using PDLinkAnnotSetBorder

    Hello,
    I want to set link line style to be underline. am not finding any difference for solid and underline except cosname of S  (BS) is U or S
    Please anyone tells me how to change the link line style to be underline.
    Thanks,
    Sow

    Thanks for reply.
    I am using code as show below to change line style to solid and dashed.
    PDLinkAnnotBorder pdLinkBorder;
    PDLinkAnnotGetBorder( rpdAnnot, &pdLinkBorder);
    //For solid
      pdLinkBorder.dashArrayLen = 0;
    PDLinkAnnotSetBorder( rpdAnnot, &pdLinkBorder);
    //For dashed
    pdLinkBorder.dashArrayLen = 1;
    for( int iIndex = 0; iIndex < PDAnnotMaxDashes; iIndex++)
    {     ASInt32 iThickness = 3;
        pdLinkBorder.dashArray[iIndex] = Int32ToFixed( iThickness );
    PDLinkAnnotSetBorder( rpdAnnot, &pdLinkBorder);
    how should I do for underline. If am using cosobject how to change line style to underline using cosobject
    Please let me know.
    Thanks,
    Sow

  • XY Graph Cursor - Changing its style

    Hi,
    Is there a way to change the style of the cursor at the xy graph to an icon that I made?
    Regards.

    Hi,
    Here follows a link with informations abou XControl and how o create it.
    http://www.ni.com/white-paper/3198/en/
    Thiago Matos
    Engenharia de Aplicações
    National Instruments Brasil

  • [svn:bz-trunk] 20754: My latest EndpointPushNotifier change changed the style of the code quite a bit  (sorry for that, it was my IDE settings getting in the loop here) I only changed one char line 389.

    Revision: 20754
    Revision: 20754
    Author:   [email protected]
    Date:     2011-03-10 03:36:05 -0800 (Thu, 10 Mar 2011)
    Log Message:
    My latest EndpointPushNotifier change changed the style of the code quite a bit (sorry for that, it was my IDE settings getting in the loop here) I only changed one char line 389.
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/client/EndpointPushNotifier.java

    I seem to have fixed it by putting <div  class="clearfloat"></div> after the navigation bar?

  • Is there a property to set the "Line Style" of the "X" & "Y" Grids of a Waveform Graph?

    I found the properties to change the colors, but not the "Line Styles". (I want to change them from solid to dashed lines).

    Sorry wd8ivl, I misread the query.
    You cannot change the xy gridlines to dash, only change the colour.
    Have a look at this post for some ideas.
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000097A90000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_TIER_0=0&USEARCHCONTEXT_TIER_S=0&USEARCHCONTEXT_QUESTION_0=grid+dashed&USEARCHCONTEXT_QUESTION_S=0

  • Bug: Changing line does not change legend

    Hello,
    I am almost certain this is a bug but hopefully I've done something wrong. Basically, I am printing a chart in black and white and I want one line to be dashed and the other solid. When I do this in numbers, the key/legend is not updated. Both appear as solid black lines.
    Please help

    Jerrold Green1 wrote:
    rjonna,
    At some point, when your needs depart far enough from the ordinary, or the popular, you must relax, regroup and take matters into your own hands.
    Sorry, Jerry, to give the impression that I was flummoxed. Regardless, I am not sure how you got the idea that I am not "relaxed," unable to "regroup" or capable of using my brain, so please spare me the supercilious remarks. The odd, off putting defensiveness I sometimes encounter in these forums puzzles me. It is as if Numbers is this "revolutionary," "fantastic" program that must constantly be defended from disgruntled excel users that "don't have a clue".
    Anyway, you unfortunately miss the point. This is a legitimate design query/criticism that might hopefully result in a future change; and it is meaningful to heavy users (like myself) who don't want to have to make custom legends all the time. There should be automatic synchronization between the line styles in the graph and the legend—simple as that. I queried the forums to make sure that I didn't miss anything, as I sometimes do. Thus, a simple, "Your only option is to customize the legend in that case" would have sufficed. I have Badunit to thank for doing just this.
    That said, one more thing, Badunit: I am still unable to change the color of the symbols. I am using Numbers '09 and the graphic inspector does not seem to have that option when I select the line or chart.
    I'll mark this as answered, and the answer is: *No, paradoxically Numbers does not update the legend when strokes are changed; only when "data symbols" are used.*
    Many thanks for the replies.
    Message was edited by: rjonna

  • How to create a report in Form line Style and can display Image field?

    Hi,
    In Report builder 10g, I would like to create a Report with Form Line Style and this report included a Image field.
    I can choose this Style only when Select Report type is Paper Layout. Because, If I choose Create both Web & Paper Layout or Create Web Layout only then in the next Style tab 03 option Form, Form letter and Mailing Label be Disabled.
    But in Paper Layout, my report can not display Image field.
    I tried with Web layout and all the other Styles (Except 03 mentioned be Disabled) then all Styles are displayed Imager field OK.
    How to create a report in Form line Style and can display Image field?
    I was change File Format property of my Image field from text to Image already in Property Inspector. But report only showed MM for my Image field.
    Thanks & regards,
    BACH
    Message was edited by:
    bachnp

    Here you go..Just follow these steps blindly and you are done.
    1) Create a year prompt with presentation variable as pv_year
    2) Create a report say Mid report with year column selected 3 times
    - Put a filter of pv_year presentation variable on first year column with a default value say @{pv_year}{2008}
    - Rename the second time column say YEAR+1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)+1
    - Rename the second time column say YEAR-1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)-1
    Now when you will run Mid Report, this will give you a records with value as 2008 2009 2007
    3) Create your main report with criteria as Year and Measure col
    - Change the fx for year column as CAST(TIME_DIM."YEAR" AS INT)
    - Now put a filter on year column with Filter based on results of another request and select these:
    Relationship = greater than or equal to any
    Saved Request = Browse Mid Report
    Use values in Column = YEAR-1
    - Again,put a filter on year column with Filter based on results of another request and select these:
    Relationship = less than or equal to any
    Saved Request = Browse Mid Report (incase it doesn't allow you to select then select any other request first and then select Mid Report)
    Use values in Column = YEAR+1
    This will select Year > = 2007 AND Year < = 2009. Hence the results will be for year 2007,2008,2009
    This will 100% work...
    http://i56.tinypic.com/wqosgw.jpg
    Cheers

  • Excel Graph Legend Formatting - Report Generation Tool

    Hi all,
    I'm currently using the Report Generation Tool for Labview '11 and cannot seem to figure out how to edit the font properties for a graph's legend. Attached is a screenshot of an example output.
    The Excel Graph Font.vi's Help file says that it should be able to modify the legend, yet I can't seem to figure out how to configure it to do so. If anyone can walk me through the steps or tell me what I am missing, I'd greatly appreciate it.
    Solved!
    Go to Solution.
    Attachments:
    excelLegend.png ‏33 KB

    ChaoyD wrote:
    Hello again,
    It seems my team has decided to change direction and use Word instead of Excel. As such, I've been attempting to convert the VI ben64 provided, but I'm stuck on the ActiveX references... I've attached what I've done so far, but could someone help me (or instruct me) on making this VI work with Word?
    Thanks.
    The Word object model is probably the most complicated of the Office suite and you are loosing the calculation ability of Excel.
     Attached is a vi to format the chart legend in a Word document.
    Ben64
    Attachments:
    Word Format Graph Legend.vi ‏26 KB

  • How can I change the style of a row in tableview?

    Hi,
    How can I change the style of a row in tableview, for example ,I have 10 items in table view, and I'd like to change row 1,4,10 background-color:red; font-family:Arial ,Font-Weight:BOLD.
    Any suggestion?

    Yes, I knew how can I change the style using cell factory. there is a lot of work to do if it has so many columns in table view. we need to implement every cell factory, Do we have a simple way to change the whole row style , just like fabsav said, I 'd like to set the special row like this line:
    tableview.getItems().get(i).setStyle("myRowstyle"); And I found a bug if I implement my functionality with cell factory way, I can't change the cell style after rendering cell.
    protected void updateItem(Object object, boolean empty) {
          super.updateItem(object, empty);
    }updateItem() was only triggered while cell is being rendering, there is no way if I'd like to change the cell style after rendering event.
    Hi fabsav, How can I apply a CSS class to a specific row? Can you please provide a short example?
    Edited by: imtoocute on Aug 28, 2012 10:31 AM

  • GREP for changing paragraph style?

    Okay folks, I have another one for all you smart people out there. I think GREP can be used to change formatting in the following instance, but I have no idea how to set it up.
    I have a very long document, essentially a phone book-type listing of names, phone numbers, addresses, well over 150 pages' worth. The paragraph styles are fairly simple, only two per listing. The name/phone number is bold with a right hand tab with leader dots to a phone number that is flush to the right side of the column. The following lines are flush left, not bold, but indented 6pts. I've placed the text file and assigned the entire thing the NameListing paragraph style. I'd like to use GREP to find the address lines and change them to the NameListingAddress paragraph style.
    Here's a screen shot to give you an idea. The left column is formatted correctly with both styles, the right column is "raw", all paragraphs formatted with the NameListing paragraph style.
    Is this an appropriate application for GREP? If so, how do I set it up to only change the paragraphs that "don't have tabs"? It would save me a crapload of time.
    THANKS again! --Dina

    If your intent here is to use the character style to trigger a variable, as I belive it is based on your other thread, you MUST apply the character style up to the first tab to pick up the text at the start of the paragraph. There are two approaches to automating the formatting after that, but it may be too late for you to be much help.
    In cases where every listing has the same number of lines it makes sense to use a unique paragraph style name (not necessarily format -- base on on another) for each lline and make it its own paragraph. Set up "next styles" to rotate through the list so each line is assigned the correct style based on the style of its predecessor. You get the rotation to sart over by making the first line style the next style for the last line. This works for manual entry and can be applied to an entire block of placed text in a single operation by selecting the text, then right-clicking the name of the first style to be applied and choose Apply <stylename>, Then Next Style.This ONLY works if you have exactly the same number of paragraphs in each listing.
    The other option is to use forced line breaks instread of paragraphs and use one style for the entire listing. Set a left indent and negative first line indent, create a character style for the part of the first line that you want to appear in your header and apply it Up To ^t^n (that's a little-known trick -- if you enter more than one character in the trigger for a nested style it will activate on the first instance of any of the characters listed that occurs, so for example if you enter the word cat, your style will end on the first, c, a or t that appears inthe paragraph. ^t is the metacharacter for tab, and ^n is for forced line break) so that the style will end at either the tab, if present, or the forced line break if there is no tab (if you use a right-indent tab instead of a regualr right aligned tab [tricky to do a leader, but that's another discussion] substitute ^y for the ^t), then add a nested Line Style for one line. That line style should use a second character style that is based on the first character style you created for the name text and has no other attributes if you want the line to be the same from end to end. Sounds more complex than it is, and will work for listings with variable lenghths. The trick is to repalce your paragraph returns with forced line breaks, and will require a little thinking.
    If using separate paragraph styles for each line, you'd use the same technique of a nested style up to a tab for the first line, but there is no need to get fancier since it will apply to the whole line if there is no tab. The paragraph style, in this case, would carry all of the bold and size formatting (and no need for any indents), and the character style would be nothing more than a name that will allow you to use it in the variable.

  • How do you change different styles to some texts in a paragraph. Please help! Pics included!

    I am trying to code the text "About Us Learn more about us!" which I surrounded it with a paragraph and then tried to change the styles of it but it doesn't work. I'm also trying to figure out how to shorten the distance between the paragraph from top to bottom. Any help or suggestion?
    I'm trying to make it like this with the red text font size 15 and the black text font size 12, The red text will be hyperlinked to the page it belong to. The black is more like a description about the link.
    Example:
    (link)About Us(/link) Learn more about us!
    Picture of design I'm copying of what I made in photoshop.
    http://gyazo.com/fc3fd682669eb83b1474eb5adbf33064
    My website.
    http://visualizecontrollers.webege.com/

    The first thing I would recommend is that you move all of your CSS styles to a separate document that you then link to your HTML.Once you've done this, add text styling classes to the CSS file to cover all of the "looks" that you envision. For example, you might code all text within a <p> tag to be a uniform:
    p {
         font-family: Times New Roman, serif;
         color: #000;
         font-size: 1em;
    and code alternatives:
    .textStyle1 {
         font-family: Verdana, Ariel, Helvetica, sans serif;
         color: #56d2ac;
         font-size: 2em;
    .textStyle2 {
         font-family: Verdana, Ariel, Helvetica, sans serif;
         color: #313131;
         font-size: 1.5em;
    .textStyle3 {
         font-size: 0.75em;
    etc. Of course, you are using the font of your choice and size units (whethers ems or pixels), and adding in any other styles you want such as color, weight, line height, letter spacing. You'll end up with some THML code that looks like this, if you're putting it all into one paragraph):
    <p><span class="text1>These words begin my paragraph with emphasis</span> while these words get general emphasis. <span class="text2">These words will get some emphasis</span>, but not as much as the text 1 class. <span class="text3>These words would receive lesser emphasis</span> than the default text identified with the "p" tag styling.</p>
    Chris

Maybe you are looking for

  • Satellite L500 - Web Cam is not working

    Hi. My notebook have a built in camera, and this camera thos not inicialize, I ave done a HDD recovery, and after that the web camera software was not installed. I downloaded de this software an the camera drivers and instaled it in the laptop, but t

  • How to implement drop down list in WDP Abap....very urgent...please help me

    Hi Gurus, I wanted to implement the drop down list button in the WDP Abap interactive form. Once the users clicks on the drop down button, an RFC should be called and display the details under the drop down button. Please give me the logic with code.

  • How do I get sufficient permissions to upgrade to iPhoto 6

    I have just installed iLife 6 as an upgrade from version 5. On launching iPhoto I get the following Message: 'The photo library needs to be upgraded to work with this version of iPhoto.' On clicking "upgrade" I get a further message: 'There is proble

  • Posting My iTunes Podcast URL On My Website

    Earlier today Wrongway Peachfuzz taught me how to locate the url needed to ping iTunes that I had a new photo, description and info update, and now I'm hoping one of you can teach me... How to locate my iTunes podcast URL so I can post it on my websi

  • ISE and NAC Agent

    Hello, we currently run NAC for our wired (OOB), wireless (IB) and VPN (IB) enviroments. We are looking at migrating over to ISE for our wireless enviroment as a first step, with follow-up projects to move the VPN and wired clients over. I have been