Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 QCSPCChart for Javascript
 QCSPCChart for Javascript
 Setting the scrollbar to a specified index value
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

martintijmes

Netherlands
18 Posts

Posted - 24 Jul 2018 :  05:32:56  Show Profile  Reply with Quote
Hi, I am trying to set the scrollbar at a specific index value when loading the chart, but can't get it to work.

I am using QCSPCChart+ 3.6.

For example, I have updated the chartdefExampleScripts.js like this for the TimeXBarR chart:
"Scrollbar": {
"EnableScrollBar": true,
"ScrollbarValue": 5
}

But the scrollbar keeps index 0 at load. Please help.

I assume that the index refers to the BatchCount in the SampleData.SampleIntervalRecords. Is that correct?

Edited by - martintijmes on 24 Jul 2018 06:02:40

quinncurtis

1563 Posts

Posted - 24 Jul 2018 :  09:42:06  Show Profile  Reply with Quote
The following script should work,

	    "Scrollbar": {
	      "EnableScrollBar": true,
	      "ScrollbarPosition": "SCROLLBAR_POSITION_UNCHANGED",
	       "ScrollbarValue": 5				
   }


but doesn't. Looks like a bug introduced in the transition from 3.5 to 3.6. We will have to investigate and provide a fix.
Yes, the ScrollbarValue is the batch index.
Go to Top of Page

martintijmes

Netherlands
18 Posts

Posted - 24 Jul 2018 :  10:11:10  Show Profile  Reply with Quote
Ok, thank you. Please keep me updated.
Go to Top of Page

quinncurtis

1563 Posts

Posted - 25 Jul 2018 :  09:05:19  Show Profile  Reply with Quote
We updated the library with the fix for the ScrollbarValue property, and you should be able to download it using your original download link. Make sure the old qcspcchartgwt folder (Quinn-Curtis\GWTJavascript\QCSPCChartGWTWar\qcspcchartgwt) is deleted before you unzip and overwrite or copy over the new one. The contents of that folder are what that you need to change to bring in the new library.

Set the value using the following script:

	    "Scrollbar": {
	      "EnableScrollBar": true,
	      "ScrollbarPosition": "SCROLLBAR_POSITION_UNCHANGED",
	       "ScrollbarValue": 5				
   }


Let us know the results. Thank you for reporting this bug.
Go to Top of Page

martintijmes

Netherlands
18 Posts

Posted - 31 Jul 2018 :  11:55:56  Show Profile  Reply with Quote
Works fine now. Thank you.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07