Results 1 to 8 of 8

Thread: Scroll bar chart axis

  1. #1
    Sencha Premium User
    Join Date
    Sep 2017
    Posts
    4

    Default Scroll bar chart axis

    https://fiddle.sencha.com/#view/editor&fiddle/2l21

    Can anybody help me in enabling vertical scrollbar for the chart in the above fiddle so that maximum of 10 items can be displayed and can be scrolled along the vertical axis of the chart with displaying all the axes on the screen.

    Thanks in advance.

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,006

    Default

    Sorry for the delay, I am working with someone to get you an answer! Thanks!

  3. #3
    Sencha Premium User
    Join Date
    Sep 2017
    Posts
    4

    Default

    Hi,

    Are you able to get anything on this.

  4. #4
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,425

    Default

    @gsaivinay

    I think the way to implement the chart "scrolling" is to listen to the scroll event and then filter the chart's store accordingly.

  5. #5
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    569

    Default

    Hello Sai,

    We can give a scroll in chart not directly through the canvas, we can apply scroll in the panel where chart is used.
    You can use the scroller API to read or manipulate the scroll position.

    Please find the fiddle below for your understanding:

    https://fiddle.sencha.com/#view/editor&fiddle/2o6l

    Regards,
    Kumar
    Sencha Support.

  6. #6
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,425

    Default

    Kumar, if the x-axis is not visible as a result of scrolling, then this is not a good solution. My understanding is that the x-axis should stay in place.


    @gsaivinay wrote that he wants to see all axes on the screen.

  7. #7
    Sencha User martin17's Avatar
    Join Date
    May 2008
    Location
    Argentina
    Posts
    21

    Default

    This is an approach, but you should calculate the visible range according to the data
    https://fiddle.sencha.com/#view/editor&fiddle/2o7m

  8. #8
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    569

    Default

    Quote Originally Posted by gsaivinay View Post
    https://fiddle.sencha.com/#view/editor&fiddle/2l21

    Can anybody help me in enabling vertical scrollbar for the chart in the above fiddle so that maximum of 10 items can be displayed and can be scrolled along the vertical axis of the chart with displaying all the axes on the screen.

    Thanks in advance.
    This vertical scroll will come when chart panel contained by an overflowable container and set the width of the chart beyond the width of the parent container.

    there is two thread on this same topic
    https://www.sencha.com/forum/showthr...rt-in-extjs4-1
    https://www.sencha.com/forum/showthr...-6-0-on-Chrome

    Thanks
    Kumar

Similar Threads

  1. Replies: 1
    Last Post: 15 Sep 2014, 5:07 PM
  2. Replies: 1
    Last Post: 19 Sep 2013, 12:59 PM
  3. Replies: 4
    Last Post: 11 Sep 2013, 4:18 PM
  4. Replies: 0
    Last Post: 7 May 2011, 9:36 AM
  5. Replies: 1
    Last Post: 12 Mar 2011, 8:54 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •