Strip lines
18 Nov 20182 minutes to read
EJ2 chart supports horizontal and vertical strip lines and customization of stripline in both orientation.
Horizontal Strip lines
You can create Horizontal stripline by adding the stripline in the vertical axis and set visible option to true. Striplines are rendered in the specified start to end range and you can add more than one stripline for an axis.
Vertical Striplines
You can create vertical stripline by adding thestripline in the horizontal axis and set visible option to true. Striplines are rendered in the specified start to end range and you can add more than one stripline for an axis.
Customize the strip line
Starting value in specific strip line can be customized by start property in strip line. Similarly, ending value is customized by end. It can be also set for starting from the corresponding origin of the axis by startFromOrigin. Size of the strip line is customized by size. Border for the stripline is customized by border. Order of the strip line such that whether it should be rendered in behind or over the series elements is customized by zIndex.
Customize the stripline text
You can customize the text rendered in stripline by textStyle property. Rotation of the strip line text can be changed by rotation property. Horizontal and Vertical alignment of stripline text can be changed by horizontalAlignment and verticalAlignment property.
Dash Array
You can create dash array stripline by using dashArray property. The Striplines are rendered with specified dash array values.
Recurrence Stripline
The strip lines to be drawn repeatedly at the regular intervals – this will be useful when you want to mark an event that occurs recursively along the timeline of the chart. The following properties are used to configure this feature.
-
isRepeat- It is used to enable or disable the recurrence strip line. -
repeatEvery- It is used to mention the stripline interval. -
repeatUntil- It specifies the end value at which point strip line has to stop repeating.
Size Type
The sizeType property refers the size of the stripline. They are,
AutoPixelYearsMonthsDaysHoursMinutesSeconds
Segment Stripline
You can create stripline in a particular region with respect to segment. You can enable the segment stripline using isSegmented property. The start and end value of this type of stripline can be defined using segmentStart and segmentEnd properties.
-
isSegmented- Used to enable the segment stripline. -
segmentStart- Used to change the segment start value. Value correspond to associated axis. -
segmentEnd- Used to change the segment end value. Value correspond to associated axis. -
segmentAxisName- Used to specify the name of the associated axis.