Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I'm working on an application where I need to show up the data on Daily and Weekly and Yearly basis in graphical mode for this I'm using Bar chart control. Everything is working fine but whenever I goes with the Yearly data selection then all bars of bar charts are not visible. So I wanted to add scroll bar on to the chart control by which I can scroll it to the extent.

Please help me out on this...


Thank In advance for any help!!!

What I have tried:

I tried to search about the same on google as well but not have anything to solve my purpose.
Posted
Updated 31-Jul-16 17:29pm

1 solution

Not sure if my suggestion will help you or not but check this for a try-

You can embed the chart control in a div with fixed height (and width, if needed) and set the style as following as per your need
CSS
overflow: scroll; /* always shows both the scroll bars */

CSS
overflow: auto; /* shows the respecive scroll bar if content grows beyond the div visible area */

CSS
overflow-x: scroll; /* always shows the horizontal scroll bar */

CSS
overflow-x: auto; /* shows the horizontal scroll bar if content grows beyond div width */

CSS
overflow-y: scroll; /* always shows the vertical scroll bar */

CSS
overflow-y: auto; /* shows the vertical scroll bar if content grows beyond div height */


Hope, it helps :)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900