# Create Graph Open Edx

**URL:** <https://discuss.openedx.org/t/create-graph-open-edx/1587>\
**Category:** Educators\
**Created:** [March 13, 2020, 2:55am UTC](https://discuss.openedx.org/t/create-graph-open-edx/1587 "2020-03-13T02:55:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![taufanbudiman](https://avatars.discourse-cdn.com/v4/letter/t/71c47a/32.png) [@taufanbudiman](https://discuss.openedx.org/u/taufanbudiman)\
**Post date:** [March 13, 2020, 2:55am UTC](https://discuss.openedx.org/t/create-graph-open-edx/1587/1 "2020-03-13T02:55:50Z")

</div>

how to “openedx” can draw graphics, and can auto grading / auto marking, correct or not the answer

---

<div class="post-metadata">

**Author:** ![antoviaque](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/antoviaque/32/32_2.png) [@antoviaque](https://discuss.openedx.org/u/antoviaque)\
**Post date:** [March 30, 2020, 2:30pm UTC](https://discuss.openedx.org/t/create-graph-open-edx/1587/2 "2020-03-30T14:30:49Z")

</div>

@taufanbudiman Can you explain a bit more what you would like to do, exactly? It’s hard to tell if you only post with such brief sentences. Consider writing 1-2 paragraphs for each of your needs, describing the use case and context for these? You will be much more likely to get answers this way.

Edit: Also, please don’t repost the same message in new threads several times. If your initial post doesn’t get an answer, try to improve your initial post instead. I have merged your two identical threads.

---

<div class="post-metadata">

**Author:** ![taufanbudiman](https://avatars.discourse-cdn.com/v4/letter/t/71c47a/32.png) [@taufanbudiman](https://discuss.openedx.org/u/taufanbudiman)\
**Post date:** [March 18, 2020, 1:40pm UTC](https://discuss.openedx.org/t/create-graph-open-edx/1587/3 "2020-03-18T13:40:34Z")

</div>

how to “openedx” can draw graphics, and can auto grading / auto marking, correct or not the answer?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/1X/f66170149fad4340e98cbf772730ce25f59ddabd.png)

---

<div class="post-metadata">

**Author:** ![taufanbudiman](https://avatars.discourse-cdn.com/v4/letter/t/71c47a/32.png) [@taufanbudiman](https://discuss.openedx.org/u/taufanbudiman)\
**Post date:** [March 31, 2020, 8:32am UTC](https://discuss.openedx.org/t/create-graph-open-edx/1587/4 "2020-03-31T08:32:49Z")

</div>

Thank you for your feedback.  
so, I want to make a quiz using graphics. Example problems are below

 ![image](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/1X/fc7cc8ae8b1258c23fea6593c0076147283c3c9d.png)  
then students will answer it by drawing a graph. and EDX will check whether the sketch is correct or not.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/1X/fcf00c0f2479946ee37ee10e4d5ad0d8b272a93f.png)  
as in the following link [https://isaacphysics.org/questions/graph\_sketcher\_trial](https://isaacphysics.org/questions/graph_sketcher_trial).  
can EDX solve this problem? or there are alternatives that I can use to make a quiz like the one above. I hope you understand my problem. Thank you

---

<div class="post-metadata">

**Author:** ![xitij2000](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/xitij2000/32/141_2.png) [@xitij2000](https://discuss.openedx.org/u/xitij2000)\
**Post date:** [April 3, 2020, 9:31am UTC](https://discuss.openedx.org/t/create-graph-open-edx/1587/5 "2020-04-03T09:31:11Z")

</div>

I’m not sure there is any such in-built tool in Open edX. Depending on the exact situation you might be able to get away with the drag and drop component.

That said, Open edX supports adding new types of content via XBlock plugins. You can see a list of such plugins [here](https://openedx.atlassian.net/wiki/spaces/COMM/pages/43385346/XBlocks+Directory). Depending on your exact use case you might be able to use the [xblock-vectordraw](https://github.com/open-craft/xblock-vectordraw/) XBlock to accomplish something similar.

---

<div class="post-metadata">

**Author:** ![taufanbudiman](https://avatars.discourse-cdn.com/v4/letter/t/71c47a/32.png) [@taufanbudiman](https://discuss.openedx.org/u/taufanbudiman)\
**Post date:** [April 4, 2020, 12:05pm UTC](https://discuss.openedx.org/t/create-graph-open-edx/1587/6 "2020-04-04T12:05:57Z")

</div>

Thank you for your response. @xitij2000  
I will try installing xbock-vectordraw

---

<div class="post-metadata">

**Author:** ![taufanbudiman](https://avatars.discourse-cdn.com/v4/letter/t/71c47a/32.png) [@taufanbudiman](https://discuss.openedx.org/u/taufanbudiman)\
**Post date:** [April 7, 2020, 3:44pm UTC](https://discuss.openedx.org/t/create-graph-open-edx/1587/7 "2020-04-07T15:44:26Z")

</div>

when I make a vector and check I get an error like this

 ![image](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/1X/294a6a400beac9a66019811b50b69dc4a591bc24.png)  
what is wrong with my JSON?  
my expected result value is  
{  
“Line3”:{  
“length”: 21.52465369616217,  
“length\_errmsg”: “Panjang Line3 tidak sesuai.”,  
“angle”: -68.21006531137387,  
“angle\_errmsg”:“kemiringan Line3 tidak sesuai”,  
“coords”: [  
[22,20],  
[29.99005305039788, 0.013260171015003128]  
],  
“coords\_errmsg”:“Koordinat Line3 tidak sesuai”  
}  
}  
and my vector for line3 is  
“angle”: -68.21006531137387,  
“name”: “Line3”,  
“render”: false,  
“type”: “segment”,  
“tip”: [  
29.99005305039788,  
0.013260171015003128  
],  
“tail”: [  
22,  
20  
],  
“length”: 21.52465369616217,  
“coords”: [  
[  
22,  
20  
],  
[  
29.99005305039788,  
0.013260171015003128  
]  
],  
“length\_factor”: 1,  
“length\_units”: “”,  
“base\_angle”: 0,  
“description”: “Vector 3”

but, when I eliminate “angle” I don’t get that error
