title: AnyMaps legend items don't use the correct icon colors
body: <p>I use the AnyChart/AnyMap system to render custom maps for my site, currently version 6.0.11. We're displaying a map of the USA split up into regions, and each region is assigned a color according to a palette. All of that works great, however, we also have a legend at the bottom of the chart that's supposed to use the same colors as the Series data. For some reason the <code>&lt;item&gt;</code> elements seem to ignore any colors I assign manually, nor do they respect the <code>&lt;icon color="%Color"...&gt;</code> tag. The following is a snippet of the XML relevant to the legend in particular, based on the API specified at <a href="http://anychart.com/products/anychart/docs/xmlReference/index.html" rel="nofollow">http://anychart.com/products/anychart/docs/xmlReference/index.html</a>:</p>
  
  <pre><code>&lt;anychart&gt;
      &lt;charts&gt;
          &lt;chart name="United States" plot_type="Map" template="state_template"&gt;
          &lt;data_plot_settings&gt;
              &lt;map_series id_column="REGION_NAME" source="usa/country/states.amap"&gt;
              ...
              &lt;chart_settings&gt;
                  &lt;legend align="Center" align_by="DataPlot" enabled="True" ignore_auto_item="True" inside_dataplot="False" padding="5" position="Bottom"&gt;
                      &lt;rows_padding&gt;&lt;![CDATA[1]]&gt;&lt;/rows_padding&gt;
                  &lt;format&gt;&lt;![CDATA[{%Icon} {%Name} - 420{numDecimals:0,trailingZeros:0,decimalSeparator:,thousandsSeparator:}]]&gt;&lt;/format&gt;
                  &lt;title enabled="False" /&gt;
                  &lt;icon color="%Color" series_type="Marker" type="SeriesIcon" /&gt;
                  &lt;items&gt;
                      &lt;item series="New England" source="Series"&gt;
                          &lt;icon color="#E5E5E5" /&gt;
                      &lt;/item&gt;
                      &lt;item series="Middle Atlantic" source="Series"&gt;
                          &lt;icon color="#E2D4D4" /&gt;
                      &lt;/item&gt;
                      &lt;item series="West South Central" source="Series"&gt;
                          &lt;icon color="#DEE2D4" /&gt;
                      &lt;/item&gt;
                      &lt;item series="Mountain" source="Series"&gt;
                          &lt;icon color="#DED4E2" /&gt;
                      &lt;/item&gt;
                      &lt;item series="Pacific" source="Series"&gt;
                          &lt;icon color="#E2DBD4" /&gt;
                      &lt;/item&gt;
                      &lt;item series="East North Central" source="Series"&gt;
                          &lt;icon color="#F4E0C3" /&gt;
                      &lt;/item&gt;
                      &lt;item series="West North Central" source="Series"&gt;
                          &lt;icon color="#F2F1CE" /&gt;
                      &lt;/item&gt;
                      &lt;item series="South Atlantic" source="Series"&gt;
                          &lt;icon color="#D4DCE2" /&gt;
                      &lt;/item&gt;
                      &lt;item series="East South Central" source="Series"&gt;
                          &lt;icon color="#C6E5E1" /&gt;
                      &lt;/item&gt;
                  &lt;/items&gt;
              &lt;/legend&gt;
              &lt;/chart_settings&gt;
          &lt;/chart&gt;
      &lt;/charts&gt;
  &lt;/anychart&gt;
  </code></pre>
  
  <p>It seems like it doesn't matter what color I put in the icons, or what format (it's supposed to accept strings like "red" and formats like RGB(255, 0 ,0), and #FF0000), it always renders the same set of colors. I can omit the section entirely and it still doesn't work. On a related note, if I change the <code>ignore_auto_item</code> parameter to False, or remove it entirely, the entire application blows up.</p>
  
  <p>This is sort of a last resort as the AnyCharts fools aren't responding to tech support requests, and their sales guy redirected me to a friend of his who wants to charge me $150/hr. They're claiming it's something in my XML that's broken, but based on their API docs, my XML is perfectly fine. Any suggestions would be much appreciated.</p>
  
  <p>I should note that I'm using the AnyChartsFlex SWC that comes with their system, run through a custom Flex app. All this app does is provide a wrapper with additional functionality that users of my site require, and doesn't mess with the actual chart itself in any meaningful way (just adds a couple event listeners), nor does it touch the XML before it gets to their library to be rendered, and works perfectly.</p>