Page 1 of 1

b3221

Posted: Tue 10 Jan 2023 5:27 pm
by HansR
Version starts and functions properly but: the dewpoint description is missing in the Settings=>Station Settings=>Graphs=>Data Series Visbility settings as in the screenshot below. Not really a big issue.
    Schermafbeelding 2023-01-10 182209.jpg

    Re: b3221

    Posted: Tue 10 Jan 2023 5:47 pm
    by mcrossley
    I'll update the zip with the JS file, and put the file on the release announcement in a minute...
    :bash:

    Re: b3221

    Posted: Tue 10 Jan 2023 6:20 pm
    by Dador
    For example, I have one of the extra sensors named

    WH31 in Davis7714 - Temp.

    In the tab charts -> recent charts everything works. However, in the charts -> select a chart tab, unfortunately, the name in the legend is cut to

    WH31 in Davis

    and the graph does not draw.

    Extra sensors where I don't have spaces in the name are drawn normally. It looks as if a name that is too long or a name with a space causes an error in drawing the graph.

    Re: b3221

    Posted: Tue 10 Jan 2023 7:13 pm
    by mcrossley
    Dador wrote: Tue 10 Jan 2023 6:20 pm For example, I have one of the extra sensors named

    WH31 in Davis7714 - Temp.

    In the tab charts -> recent charts everything works. However, in the charts -> select a chart tab, unfortunately, the name in the legend is cut to

    WH31 in Davis

    and the graph does not draw.

    Extra sensors where I don't have spaces in the name are drawn normally. It looks as if a name that is too long or a name with a space causes an error in drawing the graph.
    I tested spaces and they worked ok, and indeed you example gets truncated after the first two spaces have displayed. It looks like a length limit somewhere, it isn't in the CMX code, it may be a HTML thing or in the JS. I'll look at this tomorrow.

    Re: b3221

    Posted: Wed 11 Jan 2023 10:08 am
    by mcrossley
    OK, it's the "-" character what done it. :roll:

    Replace your /interface/js/chartscompare.js file with the one attached and it should be fixed.
    chartscompare.zip

    Re: b3221

    Posted: Wed 11 Jan 2023 11:02 am
    by Dador
    It works, thank you.