ThematicWidget

2575
4
Jump to solution
04-26-2013 01:02 PM
brahimmaylal
New Contributor
I have a problem with thematicwidget when I configure my xml file and I specifie my layer with fields and aliases, nameand index of layer. it works correctly for some fields, and for other it generates classes null.

here is a picture that illustrates the problem and the script of my;

[ATTACH=CONFIG]23795[/ATTACH]


My XML file:

<configuration>
<layers>
<layer>
<url>http://localhost:6080/arcgis/rest/services/SIGMALOGITEC/BaseTest/MapServer</url>
<classificationLayerName>Communes</classificationLayerName>
<classificationLayerID>2</classificationLayerID>
<!-- classification methods: Descs are labels -->
<classificationMethodTypeDescs>Natural Breaks,Quantile,Equal Interval</classificationMethodTypeDescs>
<!-- esriClassifyEqualInterval,esriClassifyGeometricalInterval,esriClassifyNaturalBreaks,esriClassifyQuantile -->
<classificationMethodTypes>esriClassifyNaturalBreaks,esriClassifyQuantile,esriClassifyEqualInterval</classificationMethodTypes>
<!-- classification fields: Descs are labels -->
<classificationFieldTypeDescs>Population_2004,Densite_2000,Surface</classificationFieldTypeDescs>
<!-- classification fields: Types are fields -->
<classificationFieldTypes>Population_2004,Densite_2000,Surface</classificationFieldTypes>
<classificationBreaksMin>4</classificationBreaksMin>
<classificationBreaksMax>12</classificationBreaksMax>
<classificationBreaksDefault>6</classificationBreaksDefault>
<dynamicLabelingPlacement>esriServerPolygonPlacementAlwaysHorizontal</dynamicLabelingPlacement>
<!-- don't show labels when zoomed out beyond this scale -->
<dynamicLabelingMinScale>18489298</dynamicLabelingMinScale>
<dynamicLabelingFontColor>0x191919</dynamicLabelingFontColor>
<dynamicLabelingFontFamily>Verdana</dynamicLabelingFontFamily>
<dynamicLabelingFontWeight>bold</dynamicLabelingFontWeight>
<useproxy>false</useproxy>
</layer>
</layers>
<ui>
<widget_dimensions>
<width>300</width>
<height>350</height>
</widget_dimensions>
<icons>
<!-- Path to programmatically find the assets for Application Builder -->
<base_url>widgets/Thematic/assets/images/</base_url>
<!-- Title/label for mainState icon across the top widget panel -->
<main_icon>i_thematic_icon.png</main_icon>
<main_label>Main Panel</main_label>
<!-- Title/label for settingsState icon across the top widget panel -->
<settings_icon>i_options.png</settings_icon>
<settings_label>Settings Panel</settings_label>
</icons>
<transparency>
<comp_label>Transparency</comp_label>
<defaulttransparency>0.9</defaulttransparency>
</transparency>
<color_ramp>
<classificationFromColorRampDisplay>Lower values</classificationFromColorRampDisplay>
<classificationFromColorRamp>0xCECECE</classificationFromColorRamp>
<classificationToColorRampDisplay>Higher values</classificationToColorRampDisplay>
<classificationToColorRamp>0x0D538A</classificationToColorRamp>
</color_ramp>
<classification>
<methodsLabel>Classification</methodsLabel>
<fieldsLabel>based on</fieldsLabel>
<breaksLabel>Number of classes</breaksLabel>
</classification>
<dynamicLabels>
<dynamicLabelsEnabledLabel>Labels</dynamicLabelsEnabledLabel>
<dynamicLabelsOnLabel>Hide / Remove</dynamicLabelsOnLabel>
<dynamicLabelsOffLabel>Show / Display</dynamicLabelsOffLabel>
</dynamicLabels>
</ui>
</configuration>

Need a help please 🙂
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
lifeEsri
New Contributor III
the problem that the integer fields works correctly but the double fields no.

the solution you must not use this skinClass="widgets.Thematic.skins.GRLegendSkin"
<esri:Legend id="legend"
     left="5" right="5" top="5" bottom="5"
     layers="{[thematicLayer]}"
     map="{map}"
     skinClass="widgets.Thematic.skins.GRLegendSkin"/>

View solution in original post

0 Kudos
4 Replies
lifeEsri
New Contributor III
the problem that the integer fields works correctly but the double fields no.

the solution you must not use this skinClass="widgets.Thematic.skins.GRLegendSkin"
<esri:Legend id="legend"
     left="5" right="5" top="5" bottom="5"
     layers="{[thematicLayer]}"
     map="{map}"
     skinClass="widgets.Thematic.skins.GRLegendSkin"/>
0 Kudos
brahimmaylal
New Contributor
Thank you EsriLife, Now It works very goood. 🙂
0 Kudos
RayCrew
Occasional Contributor II
It appears not being able to use double fields is either inconsistent or has been addressed in a later release. I am using version 3.6 and am able to display double data as sown below.

Does anyone know if I am taking a risk it will fail or has it been fixed? It is not mentioned on the change log.
https://github.com/Esri/thematic-widget-flex/blob/develop/CHANGELOG.md

[ATTACH=CONFIG]30369[/ATTACH]

n.b.: I added this question to the "main" thread on this widget. The GitHub pages says all questions for it should be posted there.
http://forums.arcgis.com/threads/76036-thematic-widget-flex
0 Kudos
LloydHeberlie
Occasional Contributor
I have a problem with thematicwidget when I configure my xml file and I specifie my layer with fields and aliases, nameand index of layer. it works correctly for some fields, and for other it generates classes null. 

here is a picture that illustrates the problem and the script of my; 

[ATTACH=CONFIG]23795[/ATTACH] 


My XML file: 

<configuration> 
<layers> 
<layer> 
<url>  http://localhost:6080/arcgis/rest/services/SIGMALOGITEC/BaseTest/MapServer</url> 
<classificationLayerName>  Communes</classificationLayerName> 
<classificationLayerID>  2</classificationLayerID> 
<!-- classification methods: Descs are labels --> 
<classificationMethodTypeDescs>Natural Breaks,Quantile,Equal Interval</classificationMethodTypeDescs> 
<!-- esriClassifyEqualInterval,esriClassifyGeometricalInterval,esriClassifyNaturalBreaks,esriClassifyQuantile --> 
<classificationMethodTypes>esriClassifyNaturalBreaks,esriClassifyQuantile,esriClassifyEqualInterval</classificationMethodTypes> 
<!-- classification fields: Descs are labels --> 
<classificationFieldTypeDescs>  Population_2004,Densite_2000,Surface</classificationFieldTypeDescs> 
<!-- classification fields: Types are fields --> 
<classificationFieldTypes>  Population_2004,Densite_2000,Surface</classificationFieldTypes> 
<classificationBreaksMin>4</classificationBreaksMin> 
<classificationBreaksMax>12</classificationBreaksMax> 
<classificationBreaksDefault>6</classificationBreaksDefault> 
<dynamicLabelingPlacement>esriServerPolygonPlacementAlwaysHorizontal</dynamicLabelingPlacement> 
<!-- don't show labels when zoomed out beyond this scale --> 
<dynamicLabelingMinScale>18489298</dynamicLabelingMinScale> 
<dynamicLabelingFontColor>0x191919</dynamicLabelingFontColor> 
<dynamicLabelingFontFamily>Verdana</dynamicLabelingFontFamily> 
<dynamicLabelingFontWeight>bold</dynamicLabelingFontWeight> 
<useproxy>false</useproxy> 
</layer> 
</layers> 
<ui> 
<widget_dimensions> 
<width>300</width> 
<height>350</height> 
</widget_dimensions> 
<icons> 
<!-- Path to programmatically find the assets for Application Builder --> 
<base_url>widgets/Thematic/assets/images/</base_url> 
<!-- Title/label for mainState icon across the top widget panel --> 
<main_icon>i_thematic_icon.png</main_icon> 
<main_label>Main Panel</main_label> 
<!-- Title/label for settingsState icon across the top widget panel --> 
<settings_icon>i_options.png</settings_icon> 
<settings_label>Settings Panel</settings_label> 
</icons> 
<transparency> 
<comp_label>Transparency</comp_label> 
<defaulttransparency>0.9</defaulttransparency> 
</transparency> 
<color_ramp> 
<classificationFromColorRampDisplay>Lower values</classificationFromColorRampDisplay> 
<classificationFromColorRamp>0xCECECE</classificationFromColorRamp> 
<classificationToColorRampDisplay>Higher values</classificationToColorRampDisplay> 
<classificationToColorRamp>0x0D538A</classificationToColorRamp> 
</color_ramp> 
<classification> 
<methodsLabel>Classification</methodsLabel> 
<fieldsLabel>based on</fieldsLabel> 
<breaksLabel>Number of classes</breaksLabel> 
</classification> 
<dynamicLabels> 
<dynamicLabelsEnabledLabel>Labels</dynamicLabelsEnabledLabel> 
<dynamicLabelsOnLabel>Hide / Remove</dynamicLabelsOnLabel> 
<dynamicLabelsOffLabel>Show / Display</dynamicLabelsOffLabel> 
</dynamicLabels> 
</ui> 
</configuration> 

Need a help please 🙂


There is an issue on the GitHub repo related to this, please help identify the issue. I need more information to know if it is an issue with the Legend skin or the version of ArcGIS Server you are using. I am currently not seeing this issue when using the service from sampleserver6.
0 Kudos