With Zing Data, you can now integrate your questions and dashboards into your own frontend application. Here’s a primer on how to get started with embedded analytics. We’ll first connect to a Clickhouse database on Github Event data, then use Zing’s natural language query feature to ask a question in plain text. We can then embed this question on a frontend app.
Let’s add a ClickHouse playground datasource with the following credentials
Host: https://play.clickhouse.com
Port: 443
Database: default
Username: play
Let’s select the github_events
table for us to analyze.
Now click on Zing App
on the navigation bar where you can now run queries and view questions.
If you have a few datasources, Zing Data will prompt you to select a datasource to run this natural language query against. Select the clickhouse data source.
Show me the top 5 events grouped by event_type in the year 2018
Zing Data will infer your query using our AI inference engine assisted by openAI to get you to a data visualization.
That was fast and easy!
Let’s save this question and give it a title - Top 5 Github events in 2018
This will give you an embed ID that will be used to reference this question.
Organizations
in the console.
Now, on your frontend app, you can use the Zing Data SDK available on NPM as
npm install @zingdata/zingdata-react
After this, you can add embed code using the steps detailed here.
And that’s it! You have now created an embeddable data visualization using Zing Data’s natural language feature with openAI.
Available on iOS, Android, and the web
Learn how Zing can help you and your organization collaborate with data
Schedule Demo