<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to add a Trend Line to a Line Chart in ThingWorx? in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-add-a-Trend-Line-to-a-Line-Chart-in-ThingWorx/m-p/1048649#M71070</link>
    <description>&lt;P&gt;I am using a Line Chart widget in ThingWorx Mashup to display time-series data. I would like to add a trend line (for example: linear trend / moving average) on top of the existing line chart to show the overall trend of the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any built-in option in ThingWorx Line Chart to enable a trend line?&lt;/P&gt;&lt;P&gt;If not, what is the recommended approach to implement a trend line?&lt;/P&gt;</description>
    <pubDate>Mon, 22 Dec 2025 06:14:48 GMT</pubDate>
    <dc:creator>SG_14220535</dc:creator>
    <dc:date>2025-12-22T06:14:48Z</dc:date>
    <item>
      <title>How to add a Trend Line to a Line Chart in ThingWorx?</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-add-a-Trend-Line-to-a-Line-Chart-in-ThingWorx/m-p/1048649#M71070</link>
      <description>&lt;P&gt;I am using a Line Chart widget in ThingWorx Mashup to display time-series data. I would like to add a trend line (for example: linear trend / moving average) on top of the existing line chart to show the overall trend of the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any built-in option in ThingWorx Line Chart to enable a trend line?&lt;/P&gt;&lt;P&gt;If not, what is the recommended approach to implement a trend line?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2025 06:14:48 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-add-a-Trend-Line-to-a-Line-Chart-in-ThingWorx/m-p/1048649#M71070</guid>
      <dc:creator>SG_14220535</dc:creator>
      <dc:date>2025-12-22T06:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Trend Line to a Line Chart in ThingWorx?</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-add-a-Trend-Line-to-a-Line-Chart-in-ThingWorx/m-p/1049879#M71094</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/1004906"&gt;@SG_14220535&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ThingWorx does not have a built-in option to add trend lines directly to the Line Chart widget. To implement a trend line, you can consider the following approaches:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Data Preprocessing&lt;/STRONG&gt;: Calculate the trend line data (e.g., linear regression or moving average) in your data source or service before sending it to the Line Chart. This way, you can plot the trend line as a separate series on the same chart.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Custom JavaScript&lt;/STRONG&gt;: If you are comfortable with coding, you can use custom JavaScript to manipulate the chart data and draw a trend line using a library like Chart.js or D3.js, which can be integrated into ThingWorx.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Use of Additional Widgets&lt;/STRONG&gt;: You can create a separate widget for the trend line and overlay it on the existing Line Chart, ensuring that both datasets are synchronized in terms of time intervals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Sharon&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2026 21:38:16 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-add-a-Trend-Line-to-a-Line-Chart-in-ThingWorx/m-p/1049879#M71094</guid>
      <dc:creator>slangley</dc:creator>
      <dc:date>2026-01-05T21:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Trend Line to a Line Chart in ThingWorx?</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-add-a-Trend-Line-to-a-Line-Chart-in-ThingWorx/m-p/1051065#M71127</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/1004906"&gt;@SG_14220535&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If my previous response was helpful, please mark it as the Accepted Solution for the benefit of others in the community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you still have questions, please let us know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Sharon&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jan 2026 16:35:29 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-add-a-Trend-Line-to-a-Line-Chart-in-ThingWorx/m-p/1051065#M71127</guid>
      <dc:creator>slangley</dc:creator>
      <dc:date>2026-01-15T16:35:29Z</dc:date>
    </item>
  </channel>
</rss>

