<?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 Re: Limiting number of x labels on chart when the x axis is string type in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Limiting-number-of-x-labels-on-chart-when-the-x-axis-is-string/m-p/1051064#M71126</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/447493"&gt;@JustinOberle1&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In ThingWorx 10.0, limiting the number of x-axis labels in a line chart widget is straightforward for numeric or date types, as the property numberOfXAxisLabels is available. &amp;nbsp; But as you found, when using a string type for the x-axis, this property is not visible, and there is no direct option to limit the number of labels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To manage the display of x-axis labels when using string types, 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;: Before binding your data to the chart, preprocess the data to limit the number of string labels. You can create a new data set that only includes the desired labels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Custom Widget&lt;/STRONG&gt;: If you have development capabilities, you could create a custom widget that allows for more control over the x-axis label rendering, including limiting the number of labels displayed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Styling Adjustments&lt;/STRONG&gt;: Adjust the styling or layout of the chart to accommodate more labels without overcrowding, such as rotating labels or using a smaller font size.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need assistance to develop a solution, such as in the case of a custom widget, please contact your Sales rep or reach out to the &lt;A href="https://www.ptc.com/en/contact-us" target="_blank"&gt;Sales team&lt;/A&gt;.&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:34:02 GMT</pubDate>
    <dc:creator>slangley</dc:creator>
    <dc:date>2026-01-15T16:34:02Z</dc:date>
    <item>
      <title>Limiting number of x labels on chart when the x axis is string type</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Limiting-number-of-x-labels-on-chart-when-the-x-axis-is-string/m-p/1050674#M71117</link>
      <description>&lt;P&gt;For Thingworx 10.0.0 in the line chart widget...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to limit the number of x axis labels. I see this is possible if the x axis type is numeric or date type. However, with string type, the property numberOfXAxisLabels is not visible. Is there a way to limit this somewhere when the x axis is a string type?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 15:17:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Limiting-number-of-x-labels-on-chart-when-the-x-axis-is-string/m-p/1050674#M71117</guid>
      <dc:creator>JustinOberle1</dc:creator>
      <dc:date>2026-01-13T15:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting number of x labels on chart when the x axis is string type</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Limiting-number-of-x-labels-on-chart-when-the-x-axis-is-string/m-p/1051064#M71126</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/447493"&gt;@JustinOberle1&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In ThingWorx 10.0, limiting the number of x-axis labels in a line chart widget is straightforward for numeric or date types, as the property numberOfXAxisLabels is available. &amp;nbsp; But as you found, when using a string type for the x-axis, this property is not visible, and there is no direct option to limit the number of labels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To manage the display of x-axis labels when using string types, 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;: Before binding your data to the chart, preprocess the data to limit the number of string labels. You can create a new data set that only includes the desired labels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Custom Widget&lt;/STRONG&gt;: If you have development capabilities, you could create a custom widget that allows for more control over the x-axis label rendering, including limiting the number of labels displayed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Styling Adjustments&lt;/STRONG&gt;: Adjust the styling or layout of the chart to accommodate more labels without overcrowding, such as rotating labels or using a smaller font size.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need assistance to develop a solution, such as in the case of a custom widget, please contact your Sales rep or reach out to the &lt;A href="https://www.ptc.com/en/contact-us" target="_blank"&gt;Sales team&lt;/A&gt;.&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:34:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Limiting-number-of-x-labels-on-chart-when-the-x-axis-is-string/m-p/1051064#M71126</guid>
      <dc:creator>slangley</dc:creator>
      <dc:date>2026-01-15T16:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting number of x labels on chart when the x axis is string type</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Limiting-number-of-x-labels-on-chart-when-the-x-axis-is-string/m-p/1051234#M71131</link>
      <description>&lt;P&gt;Thanks for the reply. This is what my initial research found as well. Option one wont work in our case and option 2 is undesirable for a few reasons. Option 3 might be the only option for now, although it is not going to look great. Thanks for confirming this!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2026 15:30:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Limiting-number-of-x-labels-on-chart-when-the-x-axis-is-string/m-p/1051234#M71131</guid>
      <dc:creator>JustinOberle1</dc:creator>
      <dc:date>2026-01-16T15:30:23Z</dc:date>
    </item>
  </channel>
</rss>

