Skip to content

19064: Explicit Type Import#1

Open
Kaustubh1204 wants to merge 1 commit intoyay:mainfrom
Kaustubh1204:kaustubh/19064
Open

19064: Explicit Type Import#1
Kaustubh1204 wants to merge 1 commit intoyay:mainfrom
Kaustubh1204:kaustubh/19064

Conversation

@Kaustubh1204
Copy link

I imported the correct TypeScript type (CallbackDataParams) from ECharts to fix the typing error in the tooltip formatter.
I added a name: "Weekly Data" to the series so the tooltip has something to display for seriesName.
I also added trigger: "axis" to the tooltip config and used type casting (as CallbackDataParams) to tell TypeScript the exact shape of the params object.

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.

1 participant