-
-
Notifications
You must be signed in to change notification settings - Fork 26
Setting json_data does not render the rectangle in the canvas #46
Comments
I am having the same issues, working fine with pencil but nothing with the square or circle |
I would be willing to try and fix this if anyone can start me off in the right direction |
I did not know that it was working with pencil, let me check on that. Also my javascript, react and canvas knowledge is limited. I might not be able to help in that regard. |
parse_jsonstring_line() looks like these are functions in from dash_canvas.utils i would bet using these would fix the issue |
' Up to now only path objects are processed (created with Pencil tool).' |
I don't know i am understanding this correctly but I am assuming that this cannot be a python issue. Because, rendering the objects in the HTML DOM is taken care of by React. So if we send the correct In that case, i think the JS, React needs to be verified to be working. I do not have a super good grasp on React to actually do it. Edit: I took some time to look at the JS. Could be the case the my
If someone can point out whats going on with |
I do not even get it working with the pencil. Did someone really make this work?
|
This will do it, use a Graph instead of Canvas
|
Hello all!
I am creating an annotation using dash_canvas. I am storing my annotations (the json_data generated by the canvas) in a database, so that later someone could verify them using the dash it self.
So i need to be able to get the data from the database and render the rectangle on the, to this end i have created a callback function with
@board.callback(Output('editable', 'json_data'), [Input('url', 'pathname')])
This somehow does not render the rectangle in the image. Anyone has any pointers where i could go with this?
The text was updated successfully, but these errors were encountered: