-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/extend supported datasets #1855
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@noahonyejese dataset selection generally doesn't depend on environment, except we limit data sources to INT and PROD on INT, and to PROD on PROD – every other environment (local, Vercel, TEST) has access to every cube. The one from the issue can be checked with this PR via https://visualization-tool-git-feat-extend-supported-datasets-ixt1.vercel.app/en/browse?previous=%7B%22order%22%3A%22SCORE%22%2C%22search%22%3A%22moderhinke%22%2C%22includeDrafts%22%3Atrue%7D&dataset=https%3A%2F%2Fhealth.ld.admin.ch%2Ffsvo%2Fmoderhinke_entwicklung%2F1&dataSource=Int (you need to enable draft datasets and change data source to INT to find it) :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @noahonyejese, good catch with the formatDate
thing! 📆
There is one thing I think we need to fix before merging (column charts tooltip, see my comment).
I also wonder if we needed to extend the dates formats, was there a problem with them? If not, maybe we don't need to extend them just for the sake of doing so, I believe they come in a standard format from the Cube Creator 🤔
Ah okay thanks @bprusinowski didn't know that! |
The primary reasons I added multiple while I was at it are:
😅 |
@noahonyejese are you sure it was expecting MM.DD.YY? I think the issue was that we mapped |
@bprusinowski I mean I logged everything and I saw it there. Pick Combo-line Chart here and you'll see some dates are working and some are It works now (view the picture above) |
@noahonyejese just a small FYI, you can't share /create links, you'd need to publish the chart so I can access it (you can try to go to this link in a private browser) 👀 I hope I'm not too picky, but it looks like it's correct in the data, see a SPARQL query with the full dataset: https://s.zazuko.com/22nfxhH, that's why I doubt that the US-date format can appear here. Did you PS. It seems to work correctly with the current logic in other places (see the image below), that's why I doubt it's a new formatting issue 🤔 |
I think I'd try to see why column chart X axis works correctly (without new date formats), and then see what's different in combo charts, to narrow down the issue 👀 |
@bprusinowski Thanks for your insights, maybe that's true I will try to compare it. Maybe it's another issue, but that's still quite a weird because I etc Then I console.logged const x = getX(d);
const xScaled =
(xScale(formatDate(x)) as number) + xScale.bandwidth() * 0.5; also xScaled was only undefined for values above |
Thanks @noahonyejese, yeah, but 10.10.2024 and 10.11.2024 are still valid dates with our current formatting, right? I think it would be super weird if this bug was related to US-date formatting, but only for combo charts, that's why I was a bit pushing against adding a new date format options 😅 I think with the comment to add more formats, I was thinking about more formats like "decade", "microsecond", etc, but not about introducing MM.DD.YYYY ones, unless we really see that the data has it defined in such way. |
I see, I will investigate this |
This PR
Description
Our functions only allowed for DD.MM.YY supported dates on datasets causing issue's w/ the dataset mentioned in #1799 . This PR introduces 10 new supported Time formats increasing supported time formats from 5 to 15. Additionally a lot of components where not
formatDate
resulting everything to be stacked on top of each other or not visible.How to test
ssl
development to Int you can only test this PR once deployedNaN.NaN.NaN
dates