I want a graph of activities shown on the chart only the 10 activities with more records and not all activities . As I can do this if anyone knows you appreciate your help.
That depends on the queries you make. If you can make a graph from all queries then you should be able to add a limit by 10 or something (depending on the database type) in your statement.
Remember if you want the top 10 you also need to use an order by of course. Just get your statement done first.