<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Google Charts Plugin</title><link>https://community.appian.com/discussions/f/plug-ins/39256/google-charts-plugin</link><description>Hi, 
 I am doing some research in to the Google Chart Plugin ... 
 https://community.appian.com/b/appmarket/posts/google-charts-component-plug-in?CommentId=209280fe-6dcb-45e6-9bf7-81336dc6e24d 
 Would anyone know if an item on a chart could be stored</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Google Charts Plugin</title><link>https://community.appian.com/thread/148811?ContentTypeID=1</link><pubDate>Mon, 09 Jun 2025 15:43:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c2babae1-12ba-418d-a6f7-5a8ecaa5388c</guid><dc:creator>Dai Williams</dc:creator><description>&lt;p&gt;Great bit of collaboration here Harsha :) ... thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Google Charts Plugin</title><link>https://community.appian.com/thread/148810?ContentTypeID=1</link><pubDate>Mon, 09 Jun 2025 15:40:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b96e9c4-1b75-4733-ae7a-bed46e88099e</guid><dc:creator>Harsha Sharma</dc:creator><description>[quote userid="52140" url="~/discussions/f/plug-ins/39256/google-charts-plugin/148808"]You would need to +1 the array to get the actual row.[/quote]
&lt;p&gt;thats correct! I also noticed the index mismatch&amp;nbsp;just after sending the code here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Meanwhile I tried a candlestick chart&amp;nbsp;as well and looks like similar code as above can help get the selected row and thus we can retrieve id of the data selected. Adding the code here for reference&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data: {
    {
      Col0: &amp;quot;Mon&amp;quot;,
      Col1: 20,
      Col2: 28,
      Col3: 38,
      Col4: 45
    },
    {
      Col0: &amp;quot;Tue&amp;quot;,
      Col1: 31,
      Col2: 38,
      Col3: 55,
      Col4: 66
    },
    {
      Col0: &amp;quot;Wed&amp;quot;,
      Col1: 50,
      Col2: 55,
      Col3: 77,
      Col4: 80
    },
    {
      Col0: &amp;quot;Thu&amp;quot;,
      Col1: 77,
      Col2: 77,
      Col3: 66,
      Col4: 50
    },
    {
      Col0: &amp;quot;Fri&amp;quot;,
      Col1: 68,
      Col2: 66,
      Col3: 22,
      Col4: 15
    }
  },
  googleCandlestickChartField(
    label: &amp;quot;Test&amp;quot;,
    chartColumnData: {
      {
        type: &amp;quot;string&amp;quot;,
        id: &amp;quot;Col0&amp;quot;,
        rowDataKey: &amp;quot;Col0&amp;quot;
      },
      {
        type: &amp;quot;number&amp;quot;,
        id: &amp;quot;Col1&amp;quot;,
        rowDataKey: &amp;quot;Col1&amp;quot;
      },
      {
        type: &amp;quot;number&amp;quot;,
        id: &amp;quot;Col2&amp;quot;,
        rowDataKey: &amp;quot;Col2&amp;quot;
      },
      {
        type: &amp;quot;number&amp;quot;,
        id: &amp;quot;Col3&amp;quot;,
        rowDataKey: &amp;quot;Col3&amp;quot;
      },
      {
        type: &amp;quot;number&amp;quot;,
        id: &amp;quot;Col4&amp;quot;,
        rowDataKey: &amp;quot;Col4&amp;quot;
      }
    },
    chartRowData: { local!data },
    onSelection: {
      a!save(
        ri!var,
        index(
          local!data,
          tointeger(save!value.row) + 1,
          tointeger(save!value.column) + 1,
          {}
        )
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Google Charts Plugin</title><link>https://community.appian.com/thread/148808?ContentTypeID=1</link><pubDate>Mon, 09 Jun 2025 15:35:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4e821dd-f190-407a-89d7-3927dc155287</guid><dc:creator>Dai Williams</dc:creator><description>&lt;p&gt;Just one slight change, the row setup on the plugin is a zero based array, Appian starts the row count at one so is out of step. You would need to +1 the array to get the actual row.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Google Charts Plugin</title><link>https://community.appian.com/thread/148806?ContentTypeID=1</link><pubDate>Mon, 09 Jun 2025 15:33:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b34f2c0a-c37b-4f3d-8d5c-97796d9d9d55</guid><dc:creator>Dai Williams</dc:creator><description>&lt;p&gt;Thank you Harsha! I managed to get the taskId stored in a local varaible through indexing and saving directly in the selection variable without a!save, but as a secondary local variable. But with your code you get the full row data ... thank you so much for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Google Charts Plugin</title><link>https://community.appian.com/thread/148805?ContentTypeID=1</link><pubDate>Mon, 09 Jun 2025 15:28:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c20e35e8-1fb8-491d-aec9-f7741714a080</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;The onSelection parameter is storing the row and column id of the selected dataset in chart. You can try the below code to understand the behaviour of the attribute. Since its a pie chart thus column is always null. Hope it helps!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data: {
    { Tasks: &amp;quot;Work&amp;quot;, Hours: 11 },
    { Tasks: &amp;quot;Eat&amp;quot;, Hours: 2 },
    { Tasks: &amp;quot;Commute&amp;quot;, Hours: 2 },
    { Tasks: &amp;quot;Sleep&amp;quot;, Hours: 7 },
    { Tasks: &amp;quot;Hobbies&amp;quot;, Hours: 2 }
  },
  googlePieChartField(
    label: &amp;quot;Test&amp;quot;,
    chartColumnData: {
      {
        type: &amp;quot;string&amp;quot;,
        id: &amp;quot;Tasks&amp;quot;,
        rowDataKey: &amp;quot;Tasks&amp;quot;
      },
      {
        type: &amp;quot;number&amp;quot;,
        id: &amp;quot;Hours&amp;quot;,
        rowDataKey: &amp;quot;Hours&amp;quot;
      }
    },
    chartRowData: { local!data },
    onSelection: {
      a!save(
        ri!var,
        index(local!data, save!value.row, {})/*save!value*/
        
      ),
      
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>