jsxgraph/json2D_JSXGraph

Implement graphicscomplex type

axkr opened this issue · 1 comments

axkr commented

For this input:

data = Table[15 {Cos[t], Sin[t]}, {t, 0, 4*Pi, 4*Pi/5}];

Graphics[GraphicsComplex[data, {Line[{1, 2, 3, 4, 5, 6}], Point[{1, 2, 3, 4, 5}]}]]

the following JavaScript/JSON is created (see #1):

Another variant with different colors set:

GraphicsComplex should be implemented as "type", "coords", "data" JSON array, similar to the existing types.

Thanks for the suggestion, it should be implemented now!