From a static source file (diagrams.json) the example code for each type of diagram/chart will be made available to user in a view that allows toggling among the different diagrams.
when user selects one of the diagrams the example code should be set into the context and the user taken to the editor view.
the diagrams json can be converted into a js file and exported. this will also allow importing the enumeration of the diagram types so the correct type strings can be used in the example json as well as everywhere else.
From a static source file (diagrams.json) the example code for each type of diagram/chart will be made available to user in a view that allows toggling among the different diagrams.
when user selects one of the diagrams the example code should be set into the context and the user taken to the editor view.
the diagrams json can be converted into a js file and exported. this will also allow importing the enumeration of the diagram types so the correct type strings can be used in the example json as well as everywhere else.