Skip to main content

I am trying to create a library of shapes with pre mapped data links. 

 

What I would like to be able to do is to create a template and accompanying google sheet, that I can create multiple versions of and use this as a way to repeatably used the same shapes, in different diagrams, with each chart having its own unique set of data, without having to manually link each shape each time I produce a new chart. 

I have tried everything I can think of, I have created a library of shapes, data linked but unless you are using copies of the same chart with the shapes already on the page pulling them from the library and then uploading the data DOES NOT work. 

Even though the shapes in the library maintain the data fields, and identifiers and the data source uploaded has the exact same data and identifiers. I would really appreciate any help on this issue, I have been hitting my head against this for a little while now. 

Is this just not possible? I feel it must be and there is something I am missing but I have watched every video, completed all the badges and looked and looked for a fix but cannot find one!

Hi @DannyCJ, thank you for posting in the community! I’m investigating this and will update this thread with more information shortly. Please feel free to let us know if you have any additional questions in the meantime! 


Hi Leianna, 

Thanks I am still struggling with this and would appreciate any help / guidance / support on this issue!

Thanks


Hi @DannyCJ, thank you for following up! I am still checking internally for the best method to create a template that suits your use-case. I will update this thread as soon as I have more details. I appreciate your patience! 


Hi @DannyCJ, thank you for your patience as we looked into your questions. 
 
Our team shared that the best solution would be to create a custom extension that can create the shapes and maintain the data linking between Google Sheets and the shapes without needing the manual intervention. 
 
You could create an extension which:

  1. Uses DataProxy to get a reference to the Google Sheet data that's on the document: https://developer.lucid.co/reference/dataproxy-sdk
  2. Uses setReferenceKey to link a shape on the canvas to a particular row of your spreadsheet: https://developer.lucid.co/docs/editor-extension-data#how-to-associate-a-record-with-a-shape-on-canvas

 If you have any questions about the above, I recommend posting in the Lucid For Developers Community where you can learn from other users and post to get direct help from our API Product team.

Hope this helps. Feel free to let us know if you have any additional questions! 


Reply