<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Scripted Pie Chart Example]]></title><description><![CDATA[<p dir="auto">In dashboard elements, there is the option of adding a scripted pie chart, I have tried to search the docs for an example but could not find any. Are there any guides on making a scripted pie chart?</p>
<p dir="auto">Thanks,<br />
ahasbini</p>
]]></description><link>https://forum.netxms.org/topic/8076/scripted-pie-chart-example</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:49:04 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8076.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 08 Dec 2024 12:08:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Scripted Pie Chart Example on Fri, 13 Dec 2024 10:59:43 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">If you need to specify colors for each item, the hashmap can be used for this:</p>
<pre><code>values.append(%{"name":"Item X", "value":10, "color": "#f5f5f5"});
return values;
</code></pre>
]]></description><link>https://forum.netxms.org/post/34039</link><guid isPermaLink="true">https://forum.netxms.org/post/34039</guid><dc:creator><![CDATA[lhpaladin]]></dc:creator><pubDate>Fri, 13 Dec 2024 10:59:43 GMT</pubDate></item><item><title><![CDATA[Reply to Scripted Pie Chart Example on Sun, 08 Dec 2024 14:42:18 GMT]]></title><description><![CDATA[<p dir="auto">Thanks a million, I just couldn't figure out the map or array part out from the docs so I had to ask. I'm familiar with the DCI part, so I will give it a try. Thanks again.</p>
]]></description><link>https://forum.netxms.org/post/34028</link><guid isPermaLink="true">https://forum.netxms.org/post/34028</guid><dc:creator><![CDATA[ahasbini]]></dc:creator><pubDate>Sun, 08 Dec 2024 14:42:18 GMT</pubDate></item><item><title><![CDATA[Reply to Scripted Pie Chart Example on Sun, 08 Dec 2024 12:28:13 GMT]]></title><description><![CDATA[<p dir="auto">Scripted bar or pie charts either accept array with values:<br />
return [1,2,3];</p>
<p dir="auto">or hashmap, which allows to provide names in additions to values:<br />
v = %{};<br />
v["name1"] = 1;<br />
v["name2"] = 2;<br />
v["name3"] = 3;<br />
return v;</p>
<p dir="auto">Functions to get DCI values are described here <a href="https://www.netxms.org/documentation/nxsl-latest/#func-getdcivaluebyname" rel="nofollow ugc">https://www.netxms.org/documentation/nxsl-latest/#func-getdcivaluebyname</a><br />
I can provide a detailed example of how to use them in the coming days (you can give some details on what data do you need)</p>
]]></description><link>https://forum.netxms.org/post/34027</link><guid isPermaLink="true">https://forum.netxms.org/post/34027</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Sun, 08 Dec 2024 12:28:13 GMT</pubDate></item><item><title><![CDATA[Reply to Scripted Pie Chart Example on Sun, 08 Dec 2024 12:09:33 GMT]]></title><description><![CDATA[<p dir="auto">Specifically, an example on the script used in the Scripted Pie Chart to display in the dashboard based on some logic that retrieves data from DCIs.</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.netxms.org/post/34026</link><guid isPermaLink="true">https://forum.netxms.org/post/34026</guid><dc:creator><![CDATA[ahasbini]]></dc:creator><pubDate>Sun, 08 Dec 2024 12:09:33 GMT</pubDate></item></channel></rss>