i want to build the money control one section name call sector analysis. I want all the…
- User
i want to build the money control one section name call sector analysis. I want all the feature of it. I am providing the URL from where you can see all data data https://www.moneycontrol.com/markets/sector-analysis this is the link
- Assistant
Implemented the Sector Analysis section as a complete React/Vite/Tailwind web app in
src/App.tsx.What is included:
- Moneycontrol-style Sector Analysis dashboard
- NSE/BSE switch
- Time filters: 1D, 1W, 1M, 3M, 6M, 1Y
- Sectoral indices table
- Sortable columns
- Sector search
- Advance/decline breadth
- Selected sector detail panel
- Constituent stocks
- Major gainers and losers
- Tabs for Overview, Sector Performance, Classification, Earnings, and Growth
- CSV export
- Motion/animation using Framer Motion
- Responsive layout for desktop and mobile
Also updated
src/index.cssfor base styling.Verification:
- Installed
framer-motion - Ran production build successfully with
npm run build
Note: the Moneycontrol page could not be fetched directly from the tool environment, so the app uses realistic sample market data and mirrors the features/structure of the provided Sector Analysis section. The code is ready to connect to a live API or backend scraper if you want real-time Moneycontrol data later.
- User
whenever i cli on any sector it all the company belong to that sector this example url https://www.moneycontrol.com/markets/sector-analysis/metals-mining/ after sector analysis you can see the metals-mining mention like this
- Assistant
Implemented sector slug behavior like your example URL.
What changed:
- Clicking any sector now updates the browser URL like:
/markets/sector-analysis/metals-mining/ - The selected sector panel now shows all companies belonging to that sector.
- Added Moneycontrol-style slugs:
metals-mining,banks,information-technology,automobile-auto-ancillaries,pharmaceuticals,real-estate,oil-gas, etc. - Direct URL loading works for supported sector slugs, for example:
/markets/sector-analysis/metals-mining/ - Added more company data for each sector, especially Metals & Mining.
Verified:
- Production build completed successfully with
npm run build.
Files updated:
src/App.tsx
- Clicking any sector now updates the browser URL like: