Skip to content

included Chart.js to create visualizations#17

Open
roshankraveendrababu wants to merge 2 commits intoarshadpatel:mainfrom
roshankraveendrababu:main
Open

included Chart.js to create visualizations#17
roshankraveendrababu wants to merge 2 commits intoarshadpatel:mainfrom
roshankraveendrababu:main

Conversation

@roshankraveendrababu
Copy link

#9
in App.js:
Data: The data object contains sample data for revenue and items sold over a week.
Chart: A Bar chart is created using the Bar component from react-chartjs-2.
Options: Chart options can be configured to customize the appearance.

in App.css:
Width and Max-width: Ensures the chart takes up a significant portion of the screen while preventing it from being too wide.
Margin: Centers the chart horizontally within the header.
Padding: Adds space around the chart for a better visual layout.
Background-color: Gives the chart a slightly transparent background to distinguish it from the header.

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