<?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 Arcade Popup Chart axes labels &amp;amp; styling in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-popup-chart-axes-labels-amp-styling/m-p/1227468#M1165</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;BR /&gt;Trying to compose a popup with a linechart. Using the samples I managed to produce a chart&amp;nbsp; Not really happy with the result...&lt;/P&gt;&lt;P&gt;Below is my code and a screenshot of my popup containing a ArcGis-Pro chart (picture as attachement) and the arcade media chart. I'd like to alter the arcade-chart so it looks more like the Pro-chart.&lt;BR /&gt;Specific questions:&lt;/P&gt;&lt;P&gt;A Can I add x-axes labels?&lt;BR /&gt;B Can I style the grapg line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var relsel = OrderBy(FeatureSetByRelationshipName($feature,"FeatureVerticesToP_v4", ['*']),"POINT_M");
var firstR = First(relsel)                
var chartValues = {}
var chartNames = []
for (var f in relsel) {
        chartValues[Text(f.POINT_M, '#,#')] = f.POINT_Z
        Push(chartNames, Text(f.POINT_M, '#,#'))
    }

return {
    type: 'media',
    title : 'TestChart',
    description : 'Chart showing crossection of the walk that day',
    attributes : chartValues,  // replace this dictionary with your own key-value pairs,
    mediaInfos: [{
        type : 'linechart', //linechart | barchart | piechart | columnchart
        //title : '',
        //caption : '',
        altText : 'profile graph showing crossection of the days walk', //altText will be read by screen readers
        value : {
          fields: chartNames,  // choose what attributes to use in the chart
          //normalizeField : '',  // the name of the attribute to normalize by or value 
        }	  
      }]
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&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-center" image-alt="Knipsel2.PNG" style="width: 348px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54965i29C61FE33D4367AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Knipsel2.PNG" alt="Knipsel2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 14:52:31 GMT</pubDate>
    <dc:creator>BartvanderWolf</dc:creator>
    <dc:date>2022-11-01T14:52:31Z</dc:date>
    <item>
      <title>Arcade Popup Chart axes labels &amp; styling</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-popup-chart-axes-labels-amp-styling/m-p/1227468#M1165</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;BR /&gt;Trying to compose a popup with a linechart. Using the samples I managed to produce a chart&amp;nbsp; Not really happy with the result...&lt;/P&gt;&lt;P&gt;Below is my code and a screenshot of my popup containing a ArcGis-Pro chart (picture as attachement) and the arcade media chart. I'd like to alter the arcade-chart so it looks more like the Pro-chart.&lt;BR /&gt;Specific questions:&lt;/P&gt;&lt;P&gt;A Can I add x-axes labels?&lt;BR /&gt;B Can I style the grapg line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var relsel = OrderBy(FeatureSetByRelationshipName($feature,"FeatureVerticesToP_v4", ['*']),"POINT_M");
var firstR = First(relsel)                
var chartValues = {}
var chartNames = []
for (var f in relsel) {
        chartValues[Text(f.POINT_M, '#,#')] = f.POINT_Z
        Push(chartNames, Text(f.POINT_M, '#,#'))
    }

return {
    type: 'media',
    title : 'TestChart',
    description : 'Chart showing crossection of the walk that day',
    attributes : chartValues,  // replace this dictionary with your own key-value pairs,
    mediaInfos: [{
        type : 'linechart', //linechart | barchart | piechart | columnchart
        //title : '',
        //caption : '',
        altText : 'profile graph showing crossection of the days walk', //altText will be read by screen readers
        value : {
          fields: chartNames,  // choose what attributes to use in the chart
          //normalizeField : '',  // the name of the attribute to normalize by or value 
        }	  
      }]
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&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-center" image-alt="Knipsel2.PNG" style="width: 348px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54965i29C61FE33D4367AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Knipsel2.PNG" alt="Knipsel2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 14:52:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-popup-chart-axes-labels-amp-styling/m-p/1227468#M1165</guid>
      <dc:creator>BartvanderWolf</dc:creator>
      <dc:date>2022-11-01T14:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Popup Chart axes labels &amp; styling</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-popup-chart-axes-labels-amp-styling/m-p/1249717#M1196</link>
      <description>&lt;P&gt;I'm curious to know if you can add x-axis labels myself.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 21:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-popup-chart-axes-labels-amp-styling/m-p/1249717#M1196</guid>
      <dc:creator>N8-CORR</dc:creator>
      <dc:date>2023-01-19T21:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Popup Chart axes labels &amp; styling</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-popup-chart-axes-labels-amp-styling/m-p/1293969#M1235</link>
      <description>&lt;P&gt;&lt;FONT face="helvetica"&gt;I had the same problem with the axes labelling. A quick and dirty workaround was to add css to your application...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;To add a y axis label use:&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;.esri-feature-media__container:before&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;display&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;block&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;font-size&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;10px&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;max-width&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;50px&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;padding&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;20%&lt;/SPAN&gt; &lt;SPAN&gt;0&lt;/SPAN&gt; &lt;SPAN&gt;0&lt;/SPAN&gt; &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;content&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;STRONG&gt;Y axis title here&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;To centre the x axis caption label you can use:&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;.esri-feature-media__item-caption{&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; display:flex; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; font-size: 10px; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; justify-content: center;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&lt;FONT face="helvetica"&gt;To centre the x axis title label you can use:&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;.esri-feature-media__item-title{&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; display:flex; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; font-size: 10px; &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; justify-content: center;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 30 May 2023 07:29:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-popup-chart-axes-labels-amp-styling/m-p/1293969#M1235</guid>
      <dc:creator>Carld_Entremont</dc:creator>
      <dc:date>2023-05-30T07:29:02Z</dc:date>
    </item>
  </channel>
</rss>

