hatemhosny / racing-bars

Bar chart race made easy 🎉
https://racing-bars.hatemhosny.dev/
MIT License
75 stars 4 forks source link

auto detect dataShape and dataType #180

Closed hatemhosny closed 2 months ago

hatemhosny commented 2 months ago

What kind of change does this PR introduce?

feature & docs update

What is the current behavior?

dataShape and dataType have to be explicitly provided.

What is the new behavior (if this is a feature change)?

This PR introduces the default value: "auto" for both dataShape and dataType.

dataShape is detected by the data structure (after any transformation, by finding the columns date, name and value).

dataType is detected by file extension.

Both options can be overriden by explicitly providing another value.

Issue related to this PR

closes #178

netlify[bot] commented 2 months ago

Deploy Preview for racingbars ready!

Name Link
Latest commit cbfdb428965ac011cb9dfc913c200235c5a8885c
Latest deploy log https://app.netlify.com/sites/racingbars/deploys/66d48cf47a0c2600086ccb00
Deploy Preview https://deploy-preview-180--racingbars.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

cloudflare-workers-and-pages[bot] commented 2 months ago

Deploying racing-bars with  Cloudflare Pages  Cloudflare Pages

Latest commit: cbfdb42
Status: ✅  Deploy successful!
Preview URL: https://ba68f946.racing-bars.pages.dev
Branch Preview URL: https://datashape-auto.racing-bars.pages.dev

View logs