Forum Replies Created

  • Johannes Jonasson

    July 6, 2020 at 1:24 pm in reply to: Expression for json-file

    Totally understand. But I’m trying to learn more about expressions during the summer, and thought this would be an interesting animation to put on like YouTube (as a hobby).

  • Johannes Jonasson

    July 6, 2020 at 12:51 pm in reply to: Expression for json-file

    Wow! This works perfectly!

    Now I have two new questions;
    Is there some way to change this data each second with an expression? So like first second shows 1st of january, and second 15 shows 15th of january? I’ve been trying this with multiple “if” statements, but it is alot of work to do it by hand.

    And if so, is it then possible to make the countries change place smoothly? Whit this expression they just pop up at a different place, but I want the change of position to be visible. So that when one country gets a higher value you can see it move up along the list.

  • Johannes Jonasson

    July 6, 2020 at 9:09 am in reply to: Expression for json-file

    Ah, a problem occured. I have to change the data set to WHO:s data set.
    https://covid19.who.int/?gclid=Cj0KCQjwl4v4BRDaARIsAFjATPkGlMd_GDm_2iQ96kJ5GqR-L6eO5VrTurcCH-vE5C5HUNaq_fw9lgwaAgkXEALw_wcB

    (Deaths > “Download map data”).

    But then i get an error message.
    “TypeError: Cannot convert undefined or null to object
    countries = Object.keys(data);“.

    And I guess I have to change pretty much more in the expression later on? But I have no clue tbh

  • Johannes Jonasson

    July 3, 2020 at 2:28 pm in reply to: Expression for json-file

    Update! Now it seems to be working perfectly, I just had to reload the footage file.

    Thank you very much for your help! Was worth alot!

  • Johannes Jonasson

    July 3, 2020 at 2:15 pm in reply to: Expression for json-file

    Tried it again and now I got a list of text.
    But on every row it says “undefined–0″….

  • Johannes Jonasson

    July 3, 2020 at 2:12 pm in reply to: Expression for json-file

    Yes, tried the second post, and the footage-file name is the same as yours. Also checked the Javascript engine at it was set to “Javascript”.

    I get an empty layer and no error.

    Really appreciate your help by the way!

  • Johannes Jonasson

    July 3, 2020 at 2:01 pm in reply to: Expression for json-file

    Tried it now, but I dont’t seem to get it correct (Sorry, I’m a total newbie when it comes to this).

    I copied your expression into Expression: Source Text in an empty text layer. But I do not get any text out of it. So what am I doing wrong here?

  • Johannes Jonasson

    July 3, 2020 at 12:38 pm in reply to: Expression for json-file

    Yes, that is what I am trying to do. But I also want the countries to change order depending on the date.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy