[{"id":"425f2be4-b65d-4cdf-b543-fb4397f51672","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"a1041c29-1f9f-497e-b577-3e673e487c51","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"c1e3b2a0-7159-4980-a5e1-4fbb04c7fcc1","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"128acbbc-5c49-416b-9c1f-91f679362b23","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"3bc7a653-1dd3-4a33-b35c-41b0ddc2f446","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"cecedb46-bf12-401c-a04c-5282e11b8274","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"2f1768df-3e8b-41c2-826e-93f1a82273d1","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"d9528848-3bae-42c1-8f6d-410a78341cef","tags":[{"product":null,"links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e","name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"2683b3de-5c23-429d-9a88-4917616d20ad","tags":[{"product":null,"links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e","name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"b96827a0-6bd4-4184-86a4-6fe503d0e4b4","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"96d2140c-5bb6-49b6-a4c7-4af4b7de2e52","tags":[{"product":null,"links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e","name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"11f27d32-9547-4a8c-9e88-5dd2bffffeda","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"d186bc7e-cbae-4d23-9cd9-a54880be8e4d","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"26754bf1-707e-4815-b6d3-dcdc87a59188","tags":[{"product":null,"links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e","name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"e4c0a89e-cceb-4863-a30a-dff94f1d8d08","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"c4f826a6-5d16-4399-8f1a-7b8449594941","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"ff2b9815-2596-47f7-8793-3585c9ee24a2","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"46851ce2-51a2-4af4-969d-9fe989997135","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"e3e87330-5250-4923-9cdf-e7e8afd353ab","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"a04db983-f77b-4ec6-857c-1c01afaed85a","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"434eed34-9059-46e4-88f9-15e47d09622c","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"30988f2a-ebd5-4a8c-b20e-54a11a528d30","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"a59719c8-0df2-44e1-b89c-9d8fa0312857","tags":[{"product":null,"links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e","name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"4be1ecee-287b-43a2-ba99-cfa89de88187","tags":[{"product":null,"links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e","name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"ea04cced-7866-48e5-a5fe-1e9f11004d59","tags":[{"product":null,"links":null,"id":"fe610228-9cf6-417f-813a-dcbfd25406c3","name":"upd","color":"#7e678a","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]},{"id":"ab17d080-0112-4ba4-8dae-ef367bec7b78","tags":[{"product":null,"links":null,"id":"4d7b6a40-ab32-4c71-a381-58f3ffd2653e","name":"new","color":"#ed7422","productId":"d699a6af-e150-4da3-ab30-25fd97934601"}]}]
        
(Showing Draft Content)

Chart Overlays

Overlays

In addition to geometrical shapes, such as columns, bars, or lines, that represent the data, a plot can contain additional items, called overlays, that represent the meta-information about the data. A typical example is a trendline that shows the linear regression of the data, as in the picture below.


image.png


You can add an overlay by selecting a plot and editing its Overlays collection in the Property Inspector.

All overlays has the following common properties:

  • Name – the name of the overlay

  • Type – the type of the overlay

  • Display – the Front value indicates that the overlay displays on the front side of the plot, the Back value indicates that the overlay displays on the back side of the plot

ActiveReportsJS chart supports several overlays types that we describe in detail below.

Reference lines

You can use Reference lines to display the data value at a given point. For example, the chart below has the reference line at the y-axis at the value that corresponds to the average sales amount for each sales channel.


image.png


A Reference line overlay exposes the following specific properties:

  • The Line Properties set the appearance of the reference line.

  • The Axis property specifies the axis with which the reference line is associated.

  • The Value property specifies the value of the reference line on the selected axis. You can use for static values.

  • The Field property specifies the data value on the selected axis that the reference line is associated with.

  • The Aggregate type property specifies the aggregation type that applies to the Field to calculate the value of the reference line.

  • The Legend Label property specifies the text that appears in the legend and associated with the reference line.

  • The Detail Level property specifies whether the reference line appears once per plot(Total) or once per detail encoding instance(Group).

Reference bands

You can use Reference bands to display a range of data values between given points. A Reference band overlay exposes the following specific properties:

  • The Line Properties and the Background Color set the appearance of the reference band.

  • The Axis property specifies the axis with which the reference band is associated.

  • The Start and End properties specify the start and the end values of the reference band on the selected axis. You can use for static values.

Linear trendlines

You can use Linear trendlines to display the best fit straight line that shows how data values increase or decrease at a steady rate. For example, the chart below has a linear trendline that shows the trend of the sales amount over three consecutive years.


image.png


A Linear trendline overlay exposes the following specific properties:

  • The Line Properties set the appearance of the trendline.

  • The Intercept property specifies the point where the trendline should cross the Y axis. You can use it for static values.

  • The Forward Forecast Period and the Backward Forecast Period properties specifies the number of data points for which the trendline extends forward and backwards relative to the last and the first data values, respectively.

  • The Field property specifies the data value with which the trendline is associated.

  • The Legend Label property specifies the text that appears in the legend and associated with the trendline.

  • The Detail Level property specifies whether the trendline appears once per plot(Total) or once per detail encoding instance(Group).

Exponential trendlines

You can use Exponential trendlines to display the best fit exponential curve that illustrates how data values increase or decrease and then level out. This trendline can only be used with data values that are greater than zero. A Exponential trendline overlay exposes the same properties as the Linear trendline overlay.

Power trendlines

You can use Power trendlines to display the best fit curved line to compare measurements that increase at a specific rate. This trendline can only be used with data values that are greater than zero. A Power trendline overlay exposes the same properties as the Linear trendline overlay, except for the Intercept property.

Logarithmic trendlines

You can use Logarithmic trendlines to display the best fit exponential curve that illustrates how data values increase or decrease and then level out. A Logarithmic trendline overlay exposes the same properties as the Linear trendline overlay, except for the Intercept property.

Polynomial trendlines

You can use Polynomial trendlines to display a best fit a curved line illustrating fluctuations in data values. For example, the chart below has a polynomial trendline that shows the trend of the sales amount over months.


image.png


A Polynomial trendline overlay exposes the same properties as the Linear trendline overlay. The Order property that has valid values from 2 to 6 indicates the complexity of the equation that defines the polynomial trendline.

Fourier series trendlines

You can use Fourier series trendlines to display a best fit Fourier Series line that illustrates fluctuations in data values. A Fourier series trendline overlay exposes the same properties as the Linear trendline overlay. The Order property that has valid values from 2 to 6 indicates the complexity of the equation that defines the Fourier series trendline.

Moving average trendlines

You can use Moving average trendlines to display a line that smooths out fluctuations in data values to show a pattern or trend more clearly.


ActiveReportsJS supports the following moving average trendline types:

A Moving average trendline overlays expose the following properties.

  • The Line Properties set the appearance of the trendline.

  • The Field property specifies the data value with which the trendline is associated.

  • The Legend Label property specifies the text that appears in the legend and associated with the trendline.

  • The Detail Level property specifies whether the trendline appears once per plot(Total) or once per detail encoding instance(Group).

  • The Period property that has valid values from 2 to the amount of data values indicates the number of data points used to calculate the moving average.

For example, the chart below has a simple moving average trendline with Period = 2 that shows the trend of the sales amount over months.


image.png