Skip to content
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

fix(types): bar chart data #1087

Merged
merged 2 commits into from Apr 8, 2024
Merged

Conversation

Oleksii14
Copy link
Contributor

@Oleksii14 Oleksii14 commented Apr 5, 2024

Related issue

#1058

Motivation of change

As you can see in the original issue, there is a problem with Bar chart typing (other charts maybe also have it). The Data type is not fully correct since Bar chart can accept other data types apart from the described ones in the typedCharts.d.ts.

Previously

image

Now

image

Notes about ExtendedDataPoint

There's a new type named ExtendedDataPoint which represents objects like { x: 1, y: 2 }, { id: 'Sales', nested: {value: 1500} and so on. Based on https://www.chartjs.org/docs/latest/general/data-structures.html

@apertureless apertureless merged commit f5ffcab into apertureless:main Apr 8, 2024
3 checks passed
@apertureless
Copy link
Owner

Thanks! 🙏

@Oleksii14 Oleksii14 deleted the type-issue-1058 branch April 9, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants