<?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 Charts Not Persisting Selected Records When Added to Layout in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/charts-not-persisting-selected-records-when-added/m-p/1109806#M7261</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;I am not sure if this is how the chart to layout relationship is supposed to behave, but I was expecting a chart added to a layout would maintain the 'selection' look and feel once in the layout and exported to a pdf.&amp;nbsp; Unless I am missing a step, it appears this is not the case.&lt;/P&gt;&lt;P&gt;This is how the chart is being added&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if(layd2.Charts != null)
{
     int i = 0;
     foreach (var item in layd2.Charts)
     {
        if (item.Name == strChartNameToUse)
        {
           CIMChart theUniversalChart = (CIMChart)item;
           cfUniversal = LayoutElementFactory.Instance.CreateChartFrame(Layout, gf_env, mfElm, layd2AsMapMember, theUniversalChart.Name);
        }

        i++;
     }
 }&lt;/LI-CODE&gt;&lt;P&gt;I am skeptical that the chart will maintain this, as when i add a chart to a layout interactively in native Pro, the 'selected' effect on the chart is lost.&amp;nbsp; Not sure how ESRI views this behavior, but it seems to be flawed from my perspective.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this application, for the chart to be more meaningful, the 'selected' dates effect needs to persist.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone is aware of way around this within the current product, please let me know.&lt;/P&gt;&lt;P&gt;If this is the 'correct' behavior, I would like to request the selected effect persists when the chart is added to a layout.&lt;/P&gt;&lt;P&gt;The following screen shot shows this condition in Pro.&amp;nbsp; The top part of the image shows the layout in Pro, the lower part shows the chart as it is displayed in the Pro session. As indicated, the selection effect is lost in the chart within the layout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChartFrameNoSelectionEffect.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25769iE93A829F07FB2633/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChartFrameNoSelectionEffect.jpg" alt="ChartFrameNoSelectionEffect.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ChartFrameNoSelectionEffect.jpg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any insight would be appreciated.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Oct 2021 16:18:30 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-10-21T16:18:30Z</dc:date>
    <item>
      <title>Charts Not Persisting Selected Records When Added to Layout</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/charts-not-persisting-selected-records-when-added/m-p/1109806#M7261</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;I am not sure if this is how the chart to layout relationship is supposed to behave, but I was expecting a chart added to a layout would maintain the 'selection' look and feel once in the layout and exported to a pdf.&amp;nbsp; Unless I am missing a step, it appears this is not the case.&lt;/P&gt;&lt;P&gt;This is how the chart is being added&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if(layd2.Charts != null)
{
     int i = 0;
     foreach (var item in layd2.Charts)
     {
        if (item.Name == strChartNameToUse)
        {
           CIMChart theUniversalChart = (CIMChart)item;
           cfUniversal = LayoutElementFactory.Instance.CreateChartFrame(Layout, gf_env, mfElm, layd2AsMapMember, theUniversalChart.Name);
        }

        i++;
     }
 }&lt;/LI-CODE&gt;&lt;P&gt;I am skeptical that the chart will maintain this, as when i add a chart to a layout interactively in native Pro, the 'selected' effect on the chart is lost.&amp;nbsp; Not sure how ESRI views this behavior, but it seems to be flawed from my perspective.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this application, for the chart to be more meaningful, the 'selected' dates effect needs to persist.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone is aware of way around this within the current product, please let me know.&lt;/P&gt;&lt;P&gt;If this is the 'correct' behavior, I would like to request the selected effect persists when the chart is added to a layout.&lt;/P&gt;&lt;P&gt;The following screen shot shows this condition in Pro.&amp;nbsp; The top part of the image shows the layout in Pro, the lower part shows the chart as it is displayed in the Pro session. As indicated, the selection effect is lost in the chart within the layout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChartFrameNoSelectionEffect.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25769iE93A829F07FB2633/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChartFrameNoSelectionEffect.jpg" alt="ChartFrameNoSelectionEffect.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;ChartFrameNoSelectionEffect.jpg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any insight would be appreciated.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 16:18:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/charts-not-persisting-selected-records-when-added/m-p/1109806#M7261</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-10-21T16:18:30Z</dc:date>
    </item>
  </channel>
</rss>

