evidence-dev / evidence

Business intelligence as code: build fast, interactive data visualizations in pure SQL and markdown
https://evidence.dev
MIT License
3.38k stars 164 forks source link

fix: update deprecated data.query syntax used for stacked charts in example project #1930

Closed AyushAgrawal-A2 closed 1 week ago

AyushAgrawal-A2 commented 2 weeks ago

Description

Changes:

closes #1394

unable to reproduce issue#1394, truncated date string are working when used as x-axis in stacked bar chart

image

query used:

```sql needful_things
select
    substr(order_datetime,1,7) as date,
    category as category,
    sum(sales) as sales_usd0
from needful_things.orders
group by 1, 2
```` ### Checklist - [ ] For UI or styling changes, I have added a screenshot or gif showing before & after - [x] I have added a [changeset](https://github.com/evidence-dev/evidence/blob/main/CONTRIBUTING.md#adding-a-changeset) - [ ] I have added to the docs where applicable - [ ] I have added to the [VS Code extension](https://github.com/evidence-dev/evidence-vscode) where applicable
changeset-bot[bot] commented 2 weeks ago

🦋 Changeset detected

Latest commit: 1efc3f8dd6fc5bd3d9a30a4930b59d88d50182e2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------------------ | ----- | | @evidence-dev/components | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

netlify[bot] commented 2 weeks ago

Deploy Preview for next-docs-evidence ready!

Name Link
Latest commit 1efc3f8dd6fc5bd3d9a30a4930b59d88d50182e2
Latest deploy log https://app.netlify.com/sites/next-docs-evidence/deploys/6626d6988d2cd400081dfd4f
Deploy Preview https://deploy-preview-1930--next-docs-evidence.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.

netlify[bot] commented 2 weeks ago

Deploy Preview for evidence-development-workspace ready!

Name Link
Latest commit 1efc3f8dd6fc5bd3d9a30a4930b59d88d50182e2
Latest deploy log https://app.netlify.com/sites/evidence-development-workspace/deploys/6626d698740bdb00079971a2
Deploy Preview https://deploy-preview-1930--evidence-development-workspace.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.