<?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: Anybody use D3 with their map? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/anybody-use-d3-with-their-map/m-p/279221#M25773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solved our problem; the chart code was written a couple of months before the map tab was added. We had a statement to remove all svg elements from the page in order to refresh the chart: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;d3.selectAll("svg").remove();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That statement was affecting all the map's graphics layers. When we made the selection tag more specific, we were able to refresh the chart without trashing the graphics layers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;d3.selectAll("#chart-area svg").remove();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just documenting the resolution so that someone else doesn't waste an entire day figuring out what's wrong with their code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Dec 2013 14:15:57 GMT</pubDate>
    <dc:creator>TyroneLigon</dc:creator>
    <dc:date>2013-12-24T14:15:57Z</dc:date>
    <item>
      <title>Anybody use D3 with their map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/anybody-use-d3-with-their-map/m-p/279220#M25772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Apologizing up front for the lack of code snippets; our app is on an intranet. We have a page with 3 tabs: chart, table, and map. The chart is a parallel coordinate chart and we use D3's rectangle drag to allow the user to select data points. Those points are used to populate the chart and put graphics in a graphics layer on the map. The problem is that the graphics don't draw on the graphics layer; in fact, the zoom rectangle on the map doesn't draw either. No Firebug errors, and the graphics are being added to the graphics layer. Has anybody used D3 successfully with a map?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 13:39:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/anybody-use-d3-with-their-map/m-p/279220#M25772</guid>
      <dc:creator>TyroneLigon</dc:creator>
      <dc:date>2013-12-23T13:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Anybody use D3 with their map?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/anybody-use-d3-with-their-map/m-p/279221#M25773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solved our problem; the chart code was written a couple of months before the map tab was added. We had a statement to remove all svg elements from the page in order to refresh the chart: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;d3.selectAll("svg").remove();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That statement was affecting all the map's graphics layers. When we made the selection tag more specific, we were able to refresh the chart without trashing the graphics layers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;d3.selectAll("#chart-area svg").remove();&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just documenting the resolution so that someone else doesn't waste an entire day figuring out what's wrong with their code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 14:15:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/anybody-use-d3-with-their-map/m-p/279221#M25773</guid>
      <dc:creator>TyroneLigon</dc:creator>
      <dc:date>2013-12-24T14:15:57Z</dc:date>
    </item>
  </channel>
</rss>

