Skip to main content
10-Marble
March 10, 2023
Question

plotting graph using json object

  • March 10, 2023
  • 1 reply
  • 772 views

Consider I have a series of json data as follows,

 

[{"f":"450.0","a":"746.0"},{"f":"453.0","a":"1119.0"},{"f":"456.0","a":"746.0"}]

with f denoting frequency and a represents acceleration. 

 

How to plot a graph for acceleration in x axis and frequency in y axis ?

 

How to write a service for the same ?

 

1 reply

17-Peridot
March 10, 2023

Hello,

 

My first thought would be to convert your JSON into an Infotable so that you can use it in your preferred graph widget.

Here is one way you can convert your JSON into an Infotable: PTC support article

 

Hope this helps.

 

Regards,

Jens