I’ve been using Storybook to develop and test different scenarios, and I’ve found it very useful. However, I’m currently mocking the data by logging it as a JSON string and sending it to Storybook. The issue is that this JSON data is not of type
PanelData, which is imported from
To make Storybook behave more closely to Grafana, I’d like to convert the JSON data into
PanelData and load the component with it. Is there a function within Grafana that can perform this transformation, or what would be the steps to do so?
Thanks in advance for any help.