Property | Type | Default | Description |
---|
balloonText | String | | When set, enables displaying a roll-over balloon. |
dashLength | Number | 0 | Dash length. |
finalCategory | String | | String, equal to category value to which trend line should be drawn. It should be used if chart doesn't parse dates. |
finalDate | Date | | Date to which trend line should be drawn. It can be date string (using the same date format as chart.dataDateFormat) or date object. |
finalImage | Image | | Allows to add an image to the end of a trend line. |
finalValue | Number | | Value at which trend line should end. |
finalXValue | Number | | Used by XY chart only. X value at which trend line should end. |
id | String | | Unique id of a Trend line. You don't need to set it, unless you want to. |
initialCategory | String | | String, equal to category value from which trend line should start. It should be used if chart doesn't parse dates. |
initialDate | Date | | Date from which trend line should start. It can be date string (using the same date format as chart.dataDateFormat) or date object. |
initialImage | Image | | Allows to add an image to the beginning of a trend line. |
initialValue | Number | | Value from which trend line should start. |
initialXValue | Number | | Used by XY chart only. X value from which trend line should start. |
isProtected | Boolean | false | Used by Stock chart. If this property is set to true, this trend line won't be removed when clicked on eraser tool. |
lineAlpha | Number | 1 | Line opacity. |
lineColor | Color | #00CC00 | Line color. |
lineThickness | Number | 1 | Line thickness. |
valueAxis | ValueAxis | ValueAxis | Value axis of the trend line. Will use first value axis of the chart if not set any. You can use a reference to the value axis object or id of value axis. |
valueAxisX | ValueAxis | ValueAxis | Used by XY chart only. X axis of trend line. Will use first X axis of the chart if not set any. You can use a reference to the value axis object or id of value axis. |