algenty / grafana-flowcharting

Flowcharting, plugin for Grafana to create complexe visio's draws style like technical architectures, floorplan, diagrams, hierarchical schema based on draw.io
Apache License 2.0
980 stars 149 forks source link

After edit draw,panel no longer display #413

Open YinMiaa opened 1 year ago

YinMiaa commented 1 year ago

Copy the XML file to the Source content, click Edit Draw, and the drawio page will pop up. After closing, Grafana's panel dashboard will no longer display the drawio image.

PedroHPSilva commented 1 year ago

When editing the drawing, two tags are included at the beginning of the XML:

Remove the two tags that the drawing appears in the panel
YinMiaa commented 1 year ago

I think it has something to do with whether xml is compressed or not.

When importing xml, only the compressed xml can be displayed in the panel.

Plain xml cannot be displayed

If I re-edit the drawing, the xml will become the Plain xml , so the drawing doesn’t appears again.

PedroHPSilva @.***> 于2023年11月14日周二 00:54写道:

When editing the drawing, two tags are included at the beginning of the XML:

Remove the two tags that the drawing appears in the panel

— Reply to this email directly, view it on GitHub https://github.com/algenty/grafana-flowcharting/issues/413#issuecomment-1808574407, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4DXI5LM5RSAWVPW6R5MSD3YEJGELAVCNFSM6AAAAAA7I45VT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBYGU3TINBQG4 . You are receiving this because you authored the thread.Message ID: @.***>

yanisbinks commented 1 year ago

Hello mate,

You need your xml code to begin and end with the " mxGraphModel " Delete everything else and click on minify then it will work. It's been this way for a few months now.

xkilian commented 11 months ago

Here is the link to the fix: flowcharting fork It includes a zoom fix, the embed url fix and the compatibility fix with Grafana 10.2.x

ShreedarshM commented 6 months ago

Hello mate,

You need your xml code to begin and end with the " mxGraphModel " Delete everything else and click on minify then it will work. It's been this way for a few months now.

Thanks Alot, it worked, you're a saviour!!!!