JSON formatting and general trimestrip construction #4301
-
I tried following the procedure on the User Guide to create timestrips. My issue is that the plan, once created, just looks like a singular block on my time strip once dragged over. (see picture) It doesn't make a grant-type chart like in the user guide. To see if it was the JSON formatting, I tried exporting the timeline from the demo website (https://openmct-demo.herokuapp.com/#/browse/demo:root/demo:3?view=layout&tc.mode=local&tc.timeSystem=utc&tc.startDelta=900000&tc.endDelta=0) as a JSON and then importing that same file into the OpenMCT running locally, but it still appears as a block. Additionally, in the demo website mentioned earlier, it is referred to as a "Timeline", but on my local instance of OpenMCT, there is no Timeline option, just Plans, and timestrips. Is this a version difference issue? Any help would be awesome. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
The Timeline on the demo is an older (unsupported) version. To get sample JSON for the newer Plan, please see the JSON linked here: https://github.com/nasa/openmct/blob/master/src/plugins/plan/pluginSpec.js#L118 |
Beta Was this translation helpful? Give feedback.
-
Hi @Cameronseitz , The JSON in your file should look something like below (I've changed the time stamps to a span between
|
Beta Was this translation helpful? Give feedback.
Hi @Cameronseitz ,
The JSON in your file should look something like below (I've changed the time stamps to a span between
2021-10-12 20:00:00.000Z
and2021-10-12 22:00:00.000Z
{ "TEST-GROUP": [ { "name": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua", "start": 1634068800000, "end": 1634072400000, "type": "TEST-GROUP", "color": "fuchsia", "textColor": "black" }, { "name": "Sed ut perspiciatis", "start": 1634070600000, "end": 1634074200000, "type": "TEST-GROUP", "color": "fuchsia", "textColor": "black" } ] }
Resulting in a plan similar to: