Shading a Timer Period

Optuma Forums Optuma Scripting Shading a Timer Period

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #60779
    AvatarThomas
    • Topics: 86
    • Replies: 114
    • Posts: 200

    Hi,

    I want shade a time period with a script. For example the time period between 08/15/2016 to 11/04/2016.

    I have created the following four scripts:

    These four script using the Show View tool and moved into the chart window would do the job, see my screen shot.

    time period

    BUT is there a way to combine the four scripts into one script or creating a new script that shades the time period between 08/15/2016 to 11/04/2016?

    I was not successful in combining the four scripts into one, nothing worked.

    Another question, what if the time period that should be shaded spans over two years, e.g. from 10/13/2017 to 01/18/2018?

    Thanks
    Thomas

    #60789
    DarrenDarren
    • Topics: 62
    • Replies: 503
    • Posts: 565

    Hi Thomas,

    You can use the STRDATE() function to specify the dates from a calendar:

    https://help.optuma.com/kb/faq.php?id=922

    For your example, set  the variables for when the bardate is within those dates:

    Capture

    1 user thanked author for this post.
    #60791
    AvatarThomas
    • Topics: 86
    • Replies: 114
    • Posts: 200

    Hi Darren,

    many many thank. Your script is really smart.

    Thanks
    Thomas

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close