Chart Plot Color change programatically

Hi, 
May i know that for the graph plot in labview web ui design, can i change the plot color programatically ?

Hi Ceties,
There is Corrective Action Request:
CAR#36683
Though this is a bug and yet not solved, I prepared an example for you which show possible workaround - it is based on the fact, that the redrawing works correctly when you resize legend. Because this is not possible to do programmatically at ru-time for staced plots, this example uses SubPanel which display SubVI with only waveform chart. I know this is not convenient, but I guess you could use such a approach in order to improve yours customers' experience.
With kind regards,
Martin Stefik
Application Engineer,
Czech Republic and Slovakia
Attachments:
Example.zip ‏22 KB

Similar Messages

  • Change Chart background color during runtime

    I want to change the background color of my chart during runtime.
    I can set and read-out the color with a property node but the apperance on the frontpanel is not changing.
    After stopping the VI the chart suddenly gets updated.
    Please check my VI attached.
    Do someone knows a workaround?
    Attachments:
    chart.vi ‏9 KB

    Hello Robert,
    another option would be to place (for example) a vertical smooth box behind the chart and change the color of it.
    See my attachment.
    Best regards
    Attachments:
    Change chart background color.vi ‏12 KB

  • Chart series color

    Hi
    I have a simple bar chart and I want all of it's bars to have the same color.
    Is that possible?
    Any ideas on how to achieve that?
    Regards
    Shlomi

    Hi Shlomi,
    Yes, it is possible.
    Design Studio 1.3:
    Option 1 (typical use case: if your dimension doesn't have too much different values and it has the same values - no new values are added dynamically, for example you have applied a background filter to max. 20 fixed dimension values): Chart > Additional Properties > Data Series: here you can define a different color for each dimension value; you would define the same color for each dimension value
    Option 2 (typical use case: if your dimension has a lot of values which are not fixed in your chart - they change if new data gets loaded or different filters are applied to the data source): Chart > Properties > Display > Conditional Formatting > New Rule...: create a rule where either your measure or dimension meets a condition and choose the color that should be used if the condition is true
    Or use CSS in your custom CSS file (should also work in DS 1.2, but I tested it only in DS 1.3):
    for example:
    /* Chart Type: Bar ; change color for bars */
    .v-m-plot .v-bar rect {fill: orange; stroke: white/*brown*/;}
    /* Chart Type: Bar ; change color for dimension values in legend */
    .v-legend-content path {fill: orange;}
    ...you can further customize the css with other styling too.
    Best Regards,
    David

  • Xy graph plot color

    Hi!
    I have a XY Graph with 2 plots. For screen displey I have the Graph with black background color. But for printing I set the BG-color to white and the Plot colors to black.
    Before changing the Plot colors I save the colors with a property node (setting active plot and reading plot color). After printing I try to restore the colors (same way, by setting active plot and writing plot color).
    My problem is that the colors get only restored if I have set them manualy before. Otherwise the value gets saved but not restored and the plots stay black...
    Anyone knows why this happens?
    thanks
    hmann

    There's a number of things that could be going wrong here - could you please post your VI so we can have a closer look?
    Copyright © 2004-2015 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.

  • Problems with .chart-plot-background and event handlers

    Hello. I'm trying to add event handlers to my chart so that the user can be allowed click within the chart itself to perform certain actions like dragging, zooming, etc. To avoid having to deal with handling mouse clicks that lie outside the chart itself (for example on the axes), I've found that:
    .chart-plot-background
    is the Region that gives me the entire chart and nothing else. However, when I attach mouse listeners to this Region, the event is only registered on half of the cells in the chart. If you've seen the default JavaFX Chart background layout, you know that it contains alternating rows of cells with slightly different coloring. I've found that only the rows with the lightest gray coloring actually register a mouse click on them, which makes me believe the dark grey cells are not part of the .chart-plot-background, but something else on top.
    To me, this feels like an oversight in how the regions of the chart are defined. Why can I not get a listener to work on the whole chart and nothing else? Currently the only workaround seems to be to take the Region:
    .chart-content
    instead, and compute the difference between this region and the .chart-plot-background in order to manually suppress mouse clicks that lie outside .chart-plot-background.
    Anyone have suggestions? Is this worth issuing on the JavaFX Jira?

    Hello,
    I'm not an expert on controls, but here is my guess based on your description: when you register an event handler on a "background" node, it is called only when the mouse hovers over the background node - I suppose the light gray is the background with the light gray cells being transparent and dark grey cells being filled. So the behavior seems correct - you can't expect the events to be delivered to background when it is covered by other nodes. I think you really should register the handler on the entire chart and filter out the events you don't want to handle. This however should not require much of computing the difference between the regions, it should be possible to do just something like
    if (!background.contains(event.getX(), event.getY())) {
        return;
    Provided that the background doesn't reach under the axes as well. Note that if there are any different transforms between the background and the node with the handler registered on it, you may need to recompute the coordinates by
    background.sceneToLocal(event.getSceneX(), event.getSceneY());
    And use the contains method on that.

  • Predefine plot color palette

    Has anyone found a way to change the set of colors used by Labview to color plots in a waveform or xy graph?  By default the color sequence is white, red, green, blue, yellow, purple, orange...  I'm working on a waveform graph that plots a sequence of waveforms collected by daqmx.  The user can select which signals to measure and plot - e.g voltage, current, light intensity.  The user also defines a test sequence where they would like to watch the response of the DUT at each segment of the sequence. 
    Based on other posts on this forum, I've figured out how to toggle between two plots in an xy graph to get the colors, but it seems like it should be much easier and more efficient to just change the preset colors that will be used by the waveform graph.   Why not just set the palette to something like red, white, red, white... and let the graph do its thing?
    Any ideas?
    Solved!
    Go to Solution.

    Hi Matthew,
    I've gotten this method to work with an xy plot (I can't use waveforms since my dt is a user variable).   Its much more processor efficient than using property nodes but I'm bothered by the 2x increase in memory.  So far this is the best solution, but I can't help thinking that if I could change the color set that the graph pulls from when plotting, then I could just set the colors I want and let the plot do all the work.  When you create a plot indicator on a vi front panel and look at the plot legend, the color set is always the same - where does it come from?  Maybe an ini file somewhere?
    It just occurred to me - when you modify a plot, like change the axes or plot colors, where are the changes saved?  They are persistent, even when the vi is compiled.  So in theory, it should be possible to do programmatically before I start filling the plot with data.
    Message Edited by gharris on 12-22-2008 09:32 AM

  • Constraining the algorithm for assignment of multiple plot colors

    I would like to know if there is some way to modify the algorithm that
    LabVIEW uses to automatically assign different colors when a graph
    displays multiple plots. In particular, given the default background
    color (black), it appears that black is never used for a plot color.
    However, if I programmatically change the background color to white,
    for example, I would like the plot color assignment to not use white. I
    would also like to know if it is possible to constrain the plot color
    assignment to a single color a priori, without having to go back and
    explicitly assign the colors of each plot via the property node in a
    loop.
    Thanks.
    Lyle

    I think you will have to create your own plot color assignment function to do this.
    You can set the color of each plot by using the active plot property (index of the plot you want to change) and then set the plot color property (just expand one and the same property ndoe to set both at the same time).
    You can then make that function check the background color and choose a color table that fits. If this is in a built application you would run this function when a color change is detected, if it's in the development environment you need this feature make the function ask for a VI and plot name (so that it can get a reference to the plot) and put it in your projects folder. That way whenever you need to set the plot colors differently you just select this function from the Tools menu of LabVIEW. An easier alternative though would be to just create the different graphs you need (with the colors for all plots already defined correctly for that background etc.) and save them as custom indicators...
    MTO

  • Plot.Plot Color Bug?

    I am puzzled about this. Check out the two almost identical VIs attached. Run the first one and try to change the Plot Color. The color property changes based on the color value. Do the same with the second VI (PlotColorWrong.vi). Try to change the color of the plot - it does not change!
    Am I doing something wrong or is this a LV bug?
    LV2009, SP1, Windows XP.
    Solved!
    Go to Solution.
    Attachments:
    PlotColorCorrect.vi ‏36 KB
    PlotColorWrong.vi ‏37 KB

    you would use a FOR loop, e.g. as follows:
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    GetPlotColors.PNG ‏4 KB

  • Problems with color change (Acrobat 8 to Acrobat 9)

    Hi.  We are have an issue with the colors changing from the way they look on the screen to the way it plots out on our plotter.  The PDF had no problems in Acrobat 8.  The same file was then plotted in 9 and now the colors change from the way they appear on screen to the way they appear on paper.  The PDF file originated from ESRI ArcGIS 9.3.1.  We open up the file in Acrobat and send it to our plotter, a HP DesignJet 1050C PS 3.  Any suggestions would greatly be appreciated.  Thanks in advance!

    Hi LuigiAntonio,
    Some more information would be required as to the exact error message if any and screenshots of the issue would be helpful.
    What kind of problems are you referring to?

  • ICal Calendar Colors Changing On Their Own; iCloud Connection

    AGGRAVATING PROBLEM:
    Many in this forum have written recently about a problem ongoing for people with multiple iCal calendars where iCal calendar colors change "automatically" when you haven't selected those colors, or even "change back" before your eyes to some color your DIDN'T select after you select a new one.  If you log into iCloud on the Web and try to change the color of certain calendars, they refuse to change.  Try as you might, the color you want for your calendar won't "stick" and it is forced to be the wrong color on all your devices.  In some cases, even the names of some of the calendars cannot be changed.  On other calendars in your list, the colors and names will change fine. 
    Related symptoms:  Calendars you have deleted "come back."   Or, calendars you did not create yourself show up in your calendars list, such as "Calendar" or "Home" or even "Untitled."  Note that the problem seems to be most prevalent with calendars with names "Home," "Work," OR either of these words in the NAME of the calendar.  For instance, "Bob's Work" might get snagged (it can't be deleted without coming back or its color is stuck and "comes back"). 
    I spent a long time on the phone with a helpful Apple senior advanced specialist on this problem today.  We conducted a very large number of "experiments". Our family has two iPads, 2 iPhones, and 2 iMacs, so it was easy to rule things in or out.  I will present some information that may help.
    SOME OF WHAT APPEARS TO BE GOING ON:
    First, Apple has not resolved this.  But the problem appears to be related to iCloud, and NOT to individual devices.  After de-linking all of my individual devices from iCloud, I could change any of the colors or names at will on any given device, create new calendars and then change their colors to whatever I wish, delete calendars, change names...no problem.  However, after re-linking calendars to iCloud, all the problems mentioned above returned.  The chances that my iMacs, iPhones, and iPads are all causing the problem independently is very low. They also have slightly different OS versions on them, so it is not likely an a particular device OS, though that could be indirectly related.  Also, the colors "change back" within about the same time (usually a few seconds to up to 30 seconds) that it takes to do a "refresh" (i.e. an update) to the iCloud servers.  This when iCloud is turned on, and the absence of it when iCloud is turned off (for calendars), strongly suggests that it is the iCloud server and its interaction with your devices that the fundamental cause of the problem.
    Apple has said that they are aware of this problem and their engineers are working on a fix.  Historically, this can mean just a few days, or it could be a few months, years, or "whenever."  They don't give estimates of when it will be fixed.  Exactly WHY this is happening is unclear, but my guess is that it is a modification to the iCloud server code that Apple implemented without testing it thoroughly enough to discover this problem.  Apple does not admit to that, of course and I don't know if I am correct.
    A WORKAROUND SOLUTION THAT WORKED FOR ME:
    Please note this is a workaround and not a full fix.  Apple needs to run a patch on their iCloud server code.  Until then, I did the following which seems to have worked for me for now.  Read the whole list before deciding whether to proceed.  I don't guarantee it will work in all situations.
    Note...I found I was stuck for now with the color of ONE of my calendars.  If you are like me, you want to keep that one and work around it....
    Backup first... Make sure that your iCloud copy of your calendar data has the calendar event information you want to save - even if the color is wrong.  Log in at www.icloud.com and do a refresh to sync to the Cloud.  Check over your calendars online to make sure the event data appears to be there for all of your calendars (even if their color or name is not what you want).
    Steps:
    1.     Go to every device that you have linked to iCloud separately. Go into Settings, iCloud, and then uncheck the "Calendars" option.  This delinks your calendars for that device to iCloud.  As you do this on each device, when prompted, select "Keep On My" ..iPAD...iPhone...iMac... etc.  This will preserve the calendar information on the device so it won't be deleted.  I think this is safer, but you can click on "Delete" if you want, too.  Note - if one of your devices is an iMac, with OSX Lion and before, you may be forced (I was) to delete the iCloud calendars from the iMac.  So again, make sure they are backed up to the Cloud first (or somewhere else).
    3.     With the iCloud Calendars Option on all your devices still turned off, go to the WEB and log into iCloud.com.  You need to figure our which calendar iCloud won't let you change the color for.  You probably already know.  On iCloud.com, click on "Calendars," then click open your calendar list and select "EDIT" at the bottom of the dialog box.  One at a time, click on the color dots next to each calendar name and try to change the color (you can put any back after the test if you want). You will probably see a certain one that just goes right back to what you don't want.  This is the one for which the color is stuck, but you may be able to change the name of it now that your devices are unlinked from iCloud.
    4.     Still in iCloud.com, change the names and colors of any of the other calendars you wish to change.  Delete any empty calendars that mysteriously appeared without your wanting them.  Take note of all the calendars, names, and colors that are on the final list of calendars.
    5.     On EVERY device, BEFORE turning iCloud back on on ANY of them: Change the colors and/or names of calendars, delete calendars, etc. so that the calendar names and colors on the device are exactly the same as what you left in iCloud.com in the last step.
    6.   One at a time on each device, go back to Settings and then "iCloud" and check again the box for "Calendars."  You will be asked whether you want to "MERGE" your data with iCloud.  I selected MERGE to ensure I didn't lose anything.  Link each device again into iCloud one at a time.
    7.  When each device is back, go back to iCloud on the Web, or go into iCAL on one of your devices.  Set to view ALL calendars.  Look for duplicates of some of your events.  I found quite several as an artifact of "merging", but in my case it only took me about 5 minutes to go through quickly and delete the duplicates.  It deleted the duplicates on all of the devices at once, so I only needed to delete dups on one device.  I did not find that I lost any events as long as I kept one valid copy.
    Again, no guarantees...hope this works for others.  Good luck.

    I'm getting the same thing and it's really bugging me! Keeps changing colour to one I do not want and I have tried everything to get it to stay the colour I have chosen!!

  • Report row color change based on condition

    I have follow this forum steps Re: Color Row In Report
    Column Template 1
    <td #ALIGNMENT# class="t1data" style="background-color:#ADD8E6;">#COLUMN_VALUE#</td>
    PL/SQL expression condition
    '#2#' = 'BOOKED'
    Column Template 2
    <td #ALIGNMENT# class="t2data" style="background-color:#FFE87C;">#COLUMN_VALUE#</td>
    PL/SQL expression condition
    '#2#' = 'ENTERED'
    http://img29.imageshack.us/img29/2792/apexcolor.png
    This does color change but for some rows the colors are highlighted wrong and when i mouse over the rows , it changes to wrong color.

    Hi,
    t1Data and t2Data sound like standard theme css class names.
    In my example, the colouring is done by the style attribute on the TD tag. For "normal" rows:
    &lt;td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data"&gt;#COLUMN_VALUE#&lt;/td&gt;for highlighted rows:
    &lt;td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data" style="background-color:red;"&gt;#COLUMN_VALUE#&lt;/td&gt;Have you defined "t1Data" and "t2Data" in STYLE tags on your page?
    Andy

  • HT202667 I switched from att to charter internet and change e-mail address. I keep getting messages telling me my at&t iCloud account is not connected. How do I get rid of the at&t iCloud message?

    I switched from att to charter internet and change e-mail address. I keep getting messages telling me my at&t iCloud account is not connected. How do I get rid of the at&t iCloud message?

    Hi adamsfly,
    Thanks for using Apple Support Communities. Based on what you stated, it sounds like you changed your email address and iCloud is looking to sign in with the old Apple ID email. I would recommend that you read this article, it may be able to help the issue.
    What to do after you change your Apple ID email address or password - Apple Support
    Cheers,
    Mario

  • Why have colors change in new update?  And won't allow me to permanently change back - as they revert on their own?

    My iCal calendar colors changed by themself.  I have gone to "edit" and "get info" and have changed the colors back.  Within minutes, they change back to the wrong color.  It has now made these same changes on my iPhone 5 and iPad mini.  What's going on?  How do I permanently change these colors?

    Here are two screen shots to show you what I am seeing.  The first screen shot shows it allowing me to select (highlighted in blue) my admin user (which is what I am locced in as).  The second screen shot shows it allowing me to select the "Guest" user (highlighted in blue).  However when I click on the user "Orion" nothing happens.  It will not change to highlight that user.

  • Colors changing on my calendar

    What is Apple doing about supporting its clients with information on fixing the problem of colors changing on iCal?
    Is this even on their radar?

    This is actually not about the colors changing.  The colors change but it's because the appointments are being assigned randomly (it seems) to another calender like, Home, Work, Birthday.  If you uncheck the calender it will cause the events to disappear.  Check the calender again and the events reappear.
    I don't know how the other calenders got turned on and how they linked to only some events.  If you click on Calender in the upper right you'll see what is checked.  try unchecking and see if your appointments disappear.  So for Apple, please correct this issue.

  • Ical calendar colors changing birthday calendar color

    Okay, I've been using iCal for well perhaps ever ever since it started shipping in the OS. I'd like to be able to change the colors codes of calendars on an iPad 2 running the app. So far haven't found a place to do that. Suspecting it might be a mobileme thing. I've even tried that, nope no good.  Seems like the iCal app on the iPad pulls colors from somewhere as some match others don't. I looking for a consistent look for all calendars across different devices, i.e. Ipad/iPhone/Laptop desktop version of iCal.  Going to repost this same question on the iCal discussion group. Should I get a response I'll repost it here.
    Thanks,

    Mikael,
    I also used to sync to my Palm handheld. I used The Missing Sync. I still had the problem of colors changing. But, they just changed. The colors on my iPod touch calendar don't relate at all to the colors in iCal.
    Since it occasionally happened with my Palm, I don't mind having to adjust the calendars. What I don't like is that there is no way, on the iPod, to change the colors. And a few of the frequently-used calendars have ended up with the same color on my touch.
    -fred
    I expect that will come with time.

Maybe you are looking for

  • Delete app from iPod Touch, but still shows up in iTunes

    I've deleted a couple of apps from my iPod Touch, but after a sync they are still showing up in the iTunes apps tab with my iPod plugged in. They are both unchecked, so that they will not sync, but I can't seem to delete the app itself from my comput

  • Missing wiki templates?

    I've been trying to implement custom CSS templates for the Mac OS X server. And I've read around the forum. 1) I've tried removing the comment from the wireframe template, yet it still doesn't show up on the list. 2) Many users talk about templates i

  • Crm xif creating rfc destination

    Hi All, I am going through the documentation of FM CRMXIF_PARTNER_SAVE. I am stuck at the following point: 1. Create a suitable RFC destination in the SAP IMG Define Target Systems for RFC Calls (for example,a TCP/IP connection to the Business Connec

  • RMI firewall issue - opening port 1099 is not enough

    Hello, We have a distributed java desktop app that uses RMI with callbacks to communicate amongst the clients. It all works really well at our dev site and at 2 trial sites. We are about to deploy out to more customer sites - so I have been doing mor

  • Facetime HD camera blurry? (early 2011 iMac)

    Using Photobooth and iChat, I'm comparing the camera in my new early-2011 iMac (27" i7) with the camera on my older, late-2007 model iMac. The newer camera simply looks ... blurry to me. Both if I'm up-close or sitting far back from the camera. Hard