Articles in this section
Category / Section

How to Create a Trendline Chart in Bold Reports

Published:
Updated:

A trendline chart is a graphical representation that displays trends and patterns in data over a continuous period, often involving time-based intervals. It involves plotting data points on a graph and connecting them with a line that highlights the overall direction of the data’s movement.

In the report viewer, support is provided for rendering Trendline charts, allowing users to generate chart reports with customized user-defined attributes.

Setting Custom Attributes - Prototype:
To set custom attributes for the Trendline chart, use the following prototype:

AttributeName1 = AttributeValue1, AttributeName2 = AttributeValue2

Follow these steps to create a trendline chart using custom attributes in the Bold Reports:

  1. Drag and drop the line chart from the chart panel.

    image.png

  2. Add the values to the chart from the dataset.

    image.png

  3. Select the chart series for which you want to change the trendline.

    image.png

  4. To set the custom properties, click on the icon mentioned below.

    image.png

  5. Configure the custom properties as shown in the image below.

    image.png

  6. Use the below mentioned custom attributes.

    AttributeName AttributeValue
    TrendlineLegendText TrendLegend
    Visibility Visible
    ShowTrendlineLegend true
    EnableTrendLine true
    TrendlinePeriod 1
    TrendlineType MovingAverage
    TrendlineBackwardCast 10
    TrendlineColor Red
    TrendlinePolynomialOrder 1
    TrendlineForwardCast 1
    TrendlineWidth 3
    TrendlineOpacity 2
    TrendlineTooltip true
    TrendlineStrokeDashArray 1

    image.png

  7. Click the Preview button to see the output.

    image.png

  8. Click here to download the report.

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment