setFrameRange

sets the data range for the frame

void setFrameRange(object range);
rangeobjectobject with range parameters

Available only in PRO Edition

Example

rangechart.setFrameRange({
    start:30, 
    end:40
});

Details

The parameters of the range object are the following:

  • start - (number, string) id of the item that starts the range, or value of the property that is defined in the frameId parameter
  • sindex - (number) index of the item that starts the range
  • end - (number, string) id of the item that ends the range, or value of the property that is defined in the frameId parameter
  • eindex - (number) index of the item that ends the range

You can specify either ids or indexes for the starting and ending data items in the data range.

What is more, you can set the id of the starting item and the index of the ending one and vice versa. The important thing is that there are always should be one starting value and one ending value of the range. Thus, you can set the range as:

rangechart.setFrameRange({
    start:30, 
    eindex:39
});

Notice that the priority of ids is higher than that of indexes. It means that in case difference between their values is great, the position of data range will be counted using the ids values.

See also
Back to top