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
    Thomas
    • Topics: 98
    • Replies: 124
    • Posts: 222

    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
    Darren
    • Topics: 66
    • Replies: 633
    • Posts: 699

    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
    Thomas
    • Topics: 98
    • Replies: 124
    • Posts: 222

    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