-
Notifications
You must be signed in to change notification settings - Fork 0
Strategy Charts #37
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
Strategy Charts #37
Conversation
apps/scouting/frontend/src/strategy/datasets.ts/test-dataset.ts
Outdated
Show resolved
Hide resolved
apps/scouting/frontend/src/strategy/data-templates-for-charts.ts
Outdated
Show resolved
Hide resolved
yoavs8
left a comment
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.
trust
| ); | ||
|
|
||
| export interface LineChartProps { | ||
| dataSetsProps: DataSet<any>[]; |
Check warning
Code scanning / ESLint
Disallow the `any` type Warning
| }; | ||
| }; | ||
|
|
||
| export const LineGraph = ({ dataSetsProps, min, max }: LineChartProps) => { |
Check warning
Code scanning / ESLint
Require explicit return and argument types on exported functions' and classes' public class methods Warning
| }; | ||
| }; | ||
|
|
||
| export const PieGraph = ({ name, points, color }: DataSet<string | number>) => { |
Check warning
Code scanning / ESLint
Require explicit return and argument types on exported functions' and classes' public class methods Warning


Generating either a line chart or a pie chart according to a convinient dataset template