<?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: Pie chart code error. in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Pie-chart-code-error/m-p/200286#M77</link>
    <description>&lt;P&gt;Hey,&lt;BR /&gt;looks like you instead of passing the whole conversions object into the pie chart, you are only passing in the slices array. Can you share your code?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2022 21:15:44 GMT</pubDate>
    <dc:creator>josef_schiessl</dc:creator>
    <dc:date>2022-12-12T21:15:44Z</dc:date>
    <item>
      <title>Pie chart code error</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Pie-chart-code-error/m-p/200259#M72</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello team, I've been getting an error while trying to create the pie chart, I've even copied the code available in the documentation and I've been getting this error:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;error: TS2322 Type '{ slices: { category: string; value: number; }[]; unit: string; }' is not assignable to type '{ category: string; value: number; }[]'.&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Any ideas on why it might be doing this ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 07:59:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Pie-chart-code-error/m-p/200259#M72</guid>
      <dc:creator>toufic_chamandi</dc:creator>
      <dc:date>2023-04-20T07:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart code error.</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Pie-chart-code-error/m-p/200286#M77</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;looks like you instead of passing the whole conversions object into the pie chart, you are only passing in the slices array. Can you share your code?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 21:15:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Pie-chart-code-error/m-p/200286#M77</guid>
      <dc:creator>josef_schiessl</dc:creator>
      <dc:date>2022-12-12T21:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart code error</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Pie-chart-code-error/m-p/200307#M79</link>
      <description>&lt;P&gt;I've noticed that there has been a working solution proposed on our internal Slack, so I am cross-posting it here as a reference for others encountering the same problem.&lt;/P&gt;
&lt;DIV class=""&gt;The version of the pie-chart component you use differs from the docs.&lt;BR /&gt;The type you provide:
&lt;PRE class="" data-stringify-type="pre"&gt;{
  slices: {
    category: string;
    value: number; }[];
  unit: string;
}&lt;/PRE&gt;
&lt;DIV class=""&gt;The expected type:
&lt;PRE class="" data-stringify-type="pre"&gt;{
  category: string;
  value: number
}[]&lt;/PRE&gt;
&lt;DIV class=""&gt;The slices are now on the root level.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Dec 2022 08:46:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/Pie-chart-code-error/m-p/200307#M79</guid>
      <dc:creator>SarahRiener</dc:creator>
      <dc:date>2022-12-13T08:46:26Z</dc:date>
    </item>
  </channel>
</rss>

