Skip to content

Strategy Charts#37

Open
RJ0907 wants to merge 26 commits intomasterfrom
strategy-charts
Open

Strategy Charts#37
RJ0907 wants to merge 26 commits intomasterfrom
strategy-charts

Conversation

@RJ0907
Copy link
Contributor

@RJ0907 RJ0907 commented Feb 4, 2026

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

@RJ0907
Copy link
Contributor Author

RJ0907 commented Feb 4, 2026

צילום מסך 2026-02-04 170854

@RJ0907
Copy link
Contributor Author

RJ0907 commented Feb 4, 2026

צילום מסך 2026-02-04 170823

Comment on lines +2 to +6
export interface DataSet<T extends string | number> {
name: string;
points: Record<T, number>;
color?: string; //assign color if not defined
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider renaming this file DataSet or something

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still rename this file

@YoniKiriaty YoniKiriaty added the feature A new Feature! label Feb 4, 2026
Comment on lines +2 to +6
export interface DataSet<T extends string | number> {
name: string;
points: Record<T, number>;
color?: string; //assign color if not defined
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still rename this file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't really see a reason for this to be named a template

Copy link
Contributor

@yoavs8 yoavs8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trust

const defaultColors = ["blue", "red", "violet", "orange"];

const labels = Array.from(
new Set(dataSetsProps.flatMap((ds) => Object.keys(ds.points))),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
new Set(dataSetsProps.flatMap((ds) => Object.keys(ds.points))),
new Set(dataSetsProps.flatMap((dataSet) => Object.keys(ds.points))),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature A new Feature!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants