<?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: Timeseries Chart data points data type in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230409#M675</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/12008"&gt;@gilgi&lt;/a&gt;, what version of Strato are you using? Please update to the latest:&amp;nbsp;&lt;SPAN&gt;0.108.6&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best, Edu.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2023 11:14:29 GMT</pubDate>
    <dc:creator>educampver</dc:creator>
    <dc:date>2023-11-30T11:14:29Z</dc:date>
    <item>
      <title>Timeseries Chart data points data type</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230403#M673</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the documentation I see the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gilgi_0-1701338210570.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15920i568A3B87B7ACFB01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gilgi_0-1701338210570.png" alt="gilgi_0-1701338210570.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the Timeseries&amp;nbsp; data has datapoints of type "&lt;SPAN&gt;TimeseriesDatapoint". However, looking at the timeseries interface I see the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;export interface Timeseries {
    /** The datapoints recordset for this time series */
    datapoints:     [];
    /** The name or names in case of multiple dimensions for the time series */
    name: string | string[];
    /** Unit token for the value represented by the timeseries datapoints. Eg: 'kbit/s'  */
    unit?: TimeseriesUnit;
    /** Custom data to be added to a Timeseries series payload */
    userData?: Record&amp;lt;string, any&amp;gt;;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my code I have the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const timeSeriesData:Timeseries = {
                    name: dimensionName,
                    unit: 'percent',
                    datapoints: sloChartDataPoints
                }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sloChartDataPoints is of type&amp;nbsp;&lt;SPAN&gt;Array&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;TimeseriesDatapoint&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The error I get is:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;Type 'TimeseriesDatapoint[]' is not assignable to type '[]'.&lt;/DIV&gt;&lt;DIV&gt;Target allows only 0 element(s) but source may have more.&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;ts&lt;/SPAN&gt;&lt;SPAN class=""&gt;(2322)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;A title="C:\DtApps\halo\node_modules\@dynatrace\strato-components-preview\charts\timeseries\types\timeseries.d.ts" target="_blank"&gt;timeseries.d.ts(26, 5): &lt;/A&gt;&lt;SPAN&gt;The expected type comes from property 'datapoints' which is declared here on type 'Timeseries'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What am I missing?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Nov 2023 10:15:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230403#M673</guid>
      <dc:creator>gilgi</dc:creator>
      <dc:date>2023-11-30T10:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Timeseries Chart data points data type</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230409#M675</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/12008"&gt;@gilgi&lt;/a&gt;, what version of Strato are you using? Please update to the latest:&amp;nbsp;&lt;SPAN&gt;0.108.6&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best, Edu.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 11:14:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230409#M675</guid>
      <dc:creator>educampver</dc:creator>
      <dc:date>2023-11-30T11:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Timeseries Chart data points data type</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230413#M677</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/47555"&gt;@educampver&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am actually running 0.109.0 ( that was the latest installed yesterday or a day before that...)&lt;/P&gt;&lt;P&gt;Gil.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 11:33:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230413#M677</guid>
      <dc:creator>gilgi</dc:creator>
      <dc:date>2023-11-30T11:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Timeseries Chart data points data type</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230416#M678</link>
      <description>&lt;P&gt;Weird, I see it fine in 0.109.0:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;export interface Timeseries {
    /** The datapoints recordset for this time series */
    datapoints: TimeseriesDatapoint[];
    /** The name or names in case of multiple dimensions for the time series */
    name: string | string[];
    /** Unit token for the value represented by the timeseries datapoints. Eg: 'kbit/s'  */
    unit?: TimeseriesUnit;
    /** Custom data to be added to a Timeseries series payload */
    userData?: Record&amp;lt;string, any&amp;gt;;
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only way I've found to reproduce this issue is by manually removing the TimeseriesDatapoint type in the Timeseries type definition. Is it possible this happened by mistake?&lt;/P&gt;
&lt;P&gt;Try reinstalling it maybe it'll fix it:&amp;nbsp;&lt;CODE&gt;npm install&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/64071"&gt;@dynatrace&lt;/a&gt;/strato-components-preview@latest&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 11:53:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230416#M678</guid>
      <dc:creator>educampver</dc:creator>
      <dc:date>2023-11-30T11:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Timeseries Chart data points data type</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230423#M680</link>
      <description>&lt;P&gt;I've done so and it was the same. Have updated the file manually but not sure this is the right way to go.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 12:40:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230423#M680</guid>
      <dc:creator>gilgi</dc:creator>
      <dc:date>2023-11-30T12:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Timeseries Chart data points data type</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230445#M681</link>
      <description>&lt;P&gt;It's definitely not the way to go, and everything looks fine on our end, so I'm not sure how to proceed. Is this a new app you just created? Can you try creating a new app from scratch and checking the type definition?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 14:00:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230445#M681</guid>
      <dc:creator>educampver</dc:creator>
      <dc:date>2023-11-30T14:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Timeseries Chart data points data type</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230733#M701</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/12008"&gt;@gilgi&lt;/a&gt;&amp;nbsp;Just checking in. Did you find a solution to this problem?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 11:41:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230733#M701</guid>
      <dc:creator>PennyScully</dc:creator>
      <dc:date>2023-12-04T11:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Timeseries Chart data points data type</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230735#M702</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/49766"&gt;@PennyScully&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the emanwhile I kept the manual changes, while I know it's not the way to go, but just didn't have the time to try and create a new app. In my case it wasn't a new app. The upgrade of the version did add the migration comment to my code warning me about the change, so I assume it has something to do wilth the my specific windows environment.&lt;/P&gt;&lt;P&gt;Thanks for following up!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 11:45:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Timeseries-Chart-data-points-data-type/m-p/230735#M702</guid>
      <dc:creator>gilgi</dc:creator>
      <dc:date>2023-12-04T11:45:57Z</dc:date>
    </item>
  </channel>
</rss>

