Select to view content in your preferred language

Customizing Chart Widget in Sample Flex Viewer...

2904
0
05-14-2010 12:04 PM
TomLavery
Deactivated User
Hello everyone,

I have been relatively successful in customizing the Sample Flex Viewer with various add-on widgets, added colours/symbology, and custom data. Considering I learned how to program using Flex about 1 week ago, things are going smoothly with the help of all the resources and forums. I am, however stuck on how to customize the chart widget.

I was successful in implementing the enhanced chart widget (http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=codeGalleryDetails&scriptID=16822) with my own demographic data set. I can't find a way to customize the labeling, widget template, fonts etc. within the chart itself. I would like the chart widget to be much larger using a larger widget template I made, I would like the labelPosition to = "callout." The text is going to be changed, so will the colours of the "pie slices."

When I customize the widget properties in the <mx:> tags then compile the application, none of my changes are represented in the widget.

I have even attempted to modify the ChartWidget to be a Bar Chart series without success using http://forums.esri.com/Thread.asp?c=158&f=2421&t=289432#900710. The process I went through was to:

1. copy the working ChartWidget.mxml and .xml then pasting them in the widget directory as BarChartWidget.mxml and .xml.

2. I then modify with .mxml with the code posted by Robert Scheitlin (http://forums.esri.com/Attachments/37439.txt) with a straight copy and paste.

3. The .xml was changed to reflect only one series of data.

4. Again the BarChartWidget was added to the Flex Modules area of Project>Properties.

5. Compiling the application resulted in the same spinning clock.

6. The ChartWidget.swf was copied and renamed to BarChartWidget.swf. The widget compiles but has all the default ChartWidget settings including the fact that the chart is a Pie Chart.

I'm not sure where to go from here in terms of customizing the widget. I would like to avoid creating my own widget from scratch.

Thanks for all the help!

Tom Lavery
GIS Analyst

Trent University
Peterborough, ON.
Tags (2)
0 Kudos
0 Replies