<?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: Cannot bind the result from a service to a time series chart in ThingWorx Developers</title>
    <link>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525957#M20131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like it is actually your Value field, change that to be a Number.&lt;/P&gt;&lt;P&gt;Time series chart can only plot Numbers over time, if you need a String, you can try it with a Label chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2017 14:19:55 GMT</pubDate>
    <dc:creator>PaiChung</dc:creator>
    <dc:date>2017-09-13T14:19:55Z</dc:date>
    <item>
      <title>Cannot bind the result from a service to a time series chart</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525954#M20128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting data from another cloud through a service and I can bind the data to a grid but I cannot bind the same data to a time chart series. This is what I'm trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list bind to a grid and whenever I select one option from the list, the respective data is displayed on the grid. I would like this very same data to be displayed on the chart as well, but I don't get anything. Besides, in the time chart properties I cannot select anything in the X and Y fields, it is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="7342" class="image-1 jive-image" src="https://community.ptc.com/legacyfs/online/thingworx/7342_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="7343" class="image-2 jive-image" src="https://community.ptc.com/legacyfs/online/thingworx/7343_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;I know how to do this with Kepware but I have no clue about how to do the same thing in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 12:27:26 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525954#M20128</guid>
      <dc:creator>iherreros</dc:creator>
      <dc:date>2017-09-13T12:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot bind the result from a service to a time series chart</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525955#M20129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a datashape assigned to the output and if so, is the timestamp a basetype datetime?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 12:45:41 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525955#M20129</guid>
      <dc:creator>PaiChung</dc:creator>
      <dc:date>2017-09-13T12:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot bind the result from a service to a time series chart</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525956#M20130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the data shape:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.ptc.com/legacyfs/online/thingworx/7345_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;And this is what I get when a call the service in the mashup:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.ptc.com/legacyfs/online/thingworx/7346_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 14:07:09 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525956#M20130</guid>
      <dc:creator>iherreros</dc:creator>
      <dc:date>2017-09-13T14:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot bind the result from a service to a time series chart</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525957#M20131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like it is actually your Value field, change that to be a Number.&lt;/P&gt;&lt;P&gt;Time series chart can only plot Numbers over time, if you need a String, you can try it with a Label chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 14:19:55 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525957#M20131</guid>
      <dc:creator>PaiChung</dc:creator>
      <dc:date>2017-09-13T14:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot bind the result from a service to a time series chart</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525958#M20132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Pai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now at least I can see the axis and the legend "value", but the date seems to be invalid.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" height="412" src="https://community.ptc.com/legacyfs/online/thingworx/7351_pastedImage_2.png" style="width: 419px; height: 412.242px;" width="419" /&gt;&lt;/P&gt;&lt;P&gt;I have formatted the data as this is how it really comes from the API&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.ptc.com/legacyfs/online/thingworx/7349_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.ptc.com/legacyfs/online/thingworx/7350_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is not working either, am I missing something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 15:12:38 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525958#M20132</guid>
      <dc:creator>iherreros</dc:creator>
      <dc:date>2017-09-13T15:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot bind the result from a service to a time series chart</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525959#M20133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try two approaches&lt;/P&gt;&lt;P&gt;1. cast it directly to the datetime field see if it takes&lt;/P&gt;&lt;P&gt;2. you'll need to use the Date() function to convert your data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 15:32:20 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525959#M20133</guid>
      <dc:creator>PaiChung</dc:creator>
      <dc:date>2017-09-13T15:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot bind the result from a service to a time series chart</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525960#M20134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I get when using Date() function:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.ptc.com/legacyfs/online/thingworx/7352_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was my first approach:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.ptc.com/legacyfs/online/thingworx/7354_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Second approach:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.ptc.com/legacyfs/online/thingworx/7353_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Both produce the same result above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 15:49:12 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525960#M20134</guid>
      <dc:creator>iherreros</dc:creator>
      <dc:date>2017-09-13T15:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot bind the result from a service to a time series chart</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525961#M20135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The date looks good, how did you define the X axis in the chart properties?&lt;/P&gt;&lt;P&gt;Actually try the following, using the Date() function formatted service.&lt;/P&gt;&lt;P&gt;Remove your time series chart and put a new one in there, drop the data on it and then just view the mashup&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 15:55:07 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525961#M20135</guid>
      <dc:creator>PaiChung</dc:creator>
      <dc:date>2017-09-13T15:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot bind the result from a service to a time series chart</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525962#M20136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not very sure about how to use that service... It is this service, isn't it?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.ptc.com/legacyfs/online/thingworx/7361_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;I'm getting an error:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.ptc.com/legacyfs/online/thingworx/7362_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;I have also used STRING but same error.. &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_emote jive_macro" src="https://community.ptc.com/7.0.4.3b79b96/images/emoticons/sad.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 16:06:05 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525962#M20136</guid>
      <dc:creator>iherreros</dc:creator>
      <dc:date>2017-09-13T16:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot bind the result from a service to a time series chart</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525963#M20137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use Date() (java script function)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However that first result looks like a good result that I think Thingworx should be able to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 17:18:19 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525963#M20137</guid>
      <dc:creator>PaiChung</dc:creator>
      <dc:date>2017-09-13T17:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot bind the result from a service to a time series chart</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525964#M20138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found finally the problem...a quite silly thing, in the datashape declaration the basetype of timestamp was STRING instead of DATETIME. I just copied and pasted the datashape declaration from other code... lazy girl!!&lt;SPAN __jive_emoticon_name="silly" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_emote jive_macro" src="https://community.ptc.com/7.0.4.3b79b96/images/emoticons/silly.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it is working&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="360" src="https://community.ptc.com/legacyfs/online/thingworx/7380_pastedImage_0.png" style="width: 342px; height: 360.301px;" width="342" /&gt;&lt;/P&gt;&lt;P&gt;Many thanks for all your help!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 08:02:55 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/Cannot-bind-the-result-from-a-service-to-a-time-series-chart/m-p/525964#M20138</guid>
      <dc:creator>iherreros</dc:creator>
      <dc:date>2017-09-14T08:02:55Z</dc:date>
    </item>
  </channel>
</rss>

