Display Thing-Speak's charts in my MATLAB app.

2 views (last 30 days)
Hello,
I am bulding an app using MATLAB's App designer, But I am facing a problem. In my app I am trying to embed charts of thing speak fields. For
example I want to show exactly this plot in my App and to be dynamic which means as the data changes in thing speak, it also changes in my app. (if the method change in embeding the plot between public and private channel please give me the method for both)

Accepted Answer

Christopher Stapels
Christopher Stapels on 6 Sep 2023
Click the cloud icon on your ThingSpeak play. Copy the html starting with '<iframe width=...'
Open app designer. Type 'html' in the Component library and select HTML.
Drag it into your form. Paste the iframe html into the field in the HTML Source in the Component browser for the HTML element.
To do it with a private chart you will need to embed a read API key., see the charts API.
Can you share a screen shot of your app when done? Or even better, share it on File exchange!
  2 Comments
Mecdettin
Mecdettin on 6 Sep 2023
Thank you for your response it helped me a lot. I have searched for days to embed this plot in my app but with no solution. Below is a screen shot of the plot in my app. Thank you again.
Christopher Stapels
Christopher Stapels on 6 Sep 2023
Awesome, thanks. I tried it out after I saw your question, so I appreciate that chance to learn a new trick. When the app is done, please consider sharing it on File Exchange so others could use it.

Sign in to comment.

More Answers (0)

Communities

More Answers in the  ThingSpeak Community

Categories

Find more on Visualize Data in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!