mongodb-js / charts-embed-sdk

The easiest way to embed MongoDB Charts visualisations into your web app
https://docs.mongodb.com/charts/master/embedding-charts-sdk/
Apache License 2.0
43 stars 31 forks source link

Timeline charts example #13

Closed kristinamongo closed 4 years ago

kristinamongo commented 4 years ago

This PR is adding the code for the timeline chart example using the Charts Embedding SDK.

I've created the app with create-react-app but tried to remove some of the fluff that doesn't serve.

The readme is trying to explain what this is. If you think it's not clear, please advise.

I've tried to keep the packages dependency low so the example is lightweight and easy to understand. The example is rewritten to use react hooks so that there are no additional renders. All suggestions on how this can be more efficient are highly welcome.