<?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 How to add color styles to histogram? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-color-styles-to-histogram/m-p/1357665#M83043</link>
    <description>&lt;P&gt;I have created a simple histogram that is not connected to a feature. How do I add colours to each bin?&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2023 20:36:25 GMT</pubDate>
    <dc:creator>dwismer</dc:creator>
    <dc:date>2023-12-06T20:36:25Z</dc:date>
    <item>
      <title>How to add color styles to histogram?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-color-styles-to-histogram/m-p/1357665#M83043</link>
      <description>&lt;P&gt;I have created a simple histogram that is not connected to a feature. How do I add colours to each bin?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 20:36:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-color-styles-to-histogram/m-p/1357665#M83043</guid>
      <dc:creator>dwismer</dc:creator>
      <dc:date>2023-12-06T20:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to add color styles to histogram?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-color-styles-to-histogram/m-p/1357758#M83045</link>
      <description>&lt;P&gt;I wrote a blog article about how to do this a few years ago. The live samples are using older versions of the API, but the pattern for coloring the bins should be the same.&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/make-your-histogram-legendary/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/js-api-arcgis/mapping/make-your-histogram-legendary/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 22:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-color-styles-to-histogram/m-p/1357758#M83045</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2023-12-06T22:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to add color styles to histogram?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-color-styles-to-histogram/m-p/1358737#M83071</link>
      <description>&lt;P&gt;This blog is awesome! And I have be referencing it a lot. The only difference with my use case is that my histogram is not linked to a raster layer. Rather I build it "by hand". I found that I can make the entire histrogram a color, but not each bin.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hist&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;barCreatedFunction&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;index&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;element&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;element&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setAttribute&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"fill"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"#33862B"&lt;/SPAN&gt;&lt;SPAN&gt;)}&lt;/SPAN&gt;&lt;FONT face="inherit"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="inherit"&gt;Also, this is out of scope for this question, but do you know if it is possible to add a Y &lt;/FONT&gt;axis&lt;FONT face="inherit"&gt;&amp;nbsp;that labels the frequency of the histogram?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 20:15:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-add-color-styles-to-histogram/m-p/1358737#M83071</guid>
      <dc:creator>dwismer</dc:creator>
      <dc:date>2023-12-08T20:15:52Z</dc:date>
    </item>
  </channel>
</rss>

