Radar charts


Cannot get legend to work


[joe666666 said:]
Hi, have the below basic radar chart. Copied CustomLegendItem.as from the 1.0 Samples Explorer so that the legend items can be clicked on.
However the following two methods from CustomLegendItem.as receive a syntax error due to radar being an undefined method.
What is the solution to this? Thanks in advance.
[color=red] private function showSeries():void {
radar(document).showSeries((element as RadarSeries).displayName, true);
}
private function hideSeries():void {
radar(document).showSeries((element as RadarSeries).displayName, false);
}
[/color]
[color=blue]<mx:SolidColor color="0" alpha="0" id="emptyColor"/>
<ilog:RadarChart id="radar" width="100%" height="100%" dataProvider="{dataSeries}" showDataTips="true" >
<ilog:angularAxis>
<ilog:AngularAxis categoryField="Name" displayName="Name" />
</ilog:angularAxis>
<ilog:radialAxis>
<mx:LinearAxis baseAtZero="true" displayName="Value" />
</ilog:radialAxis>
<ilog:series>
<ilog:RadarLineSeries areaFill="{emptyColor}" dataField="d1" displayName="Item 1" />
<ilog:RadarLineSeries areaFill="{emptyColor}" dataField="d2" displayName="Item 2" />
<ilog:RadarLineSeries areaFill="{emptyColor}" dataField="d3" displayName="Item 3" />
</ilog:series>
</ilog:RadarChart>
<mx:Panel id="legendPanel" title="Legend" width="100%" horizontalAlign="center" borderThicknessTop="0">
<mx:Legend markerHeight="10" legendItemClass="CustomLegendItem" dataProvider="{dataSeries}"<br /> width="100%" id="legend" direction="horizontal" />
</mx:Panel>
[/color]
[dmandrioli said:]
Hi,
You probably get a syntax error because the name of your main MXML application is not "radar.mxml".
Suppose your application is in app.mxml, you can try to write
private function showSeries():void {
[color=red]app[/color](document).showSeries((element as RadarSeries).displayName, true);
}
private function hideSeries():void {
[color=red]app[/color](document).showSeries((element as RadarSeries).displayName, false);
}
Hope this helps,
SystemAdmin
110000D4XK
‏2008-03-13T16:30:39Z
[dmandrioli said:]
Hi,
You probably get a syntax error because the name of your main MXML application is not "radar.mxml".
Suppose your application is in app.mxml, you can try to write
private function showSeries():void {
[color=red]app[/color](document).showSeries((element as RadarSeries).displayName, true);
}
private function hideSeries():void {
[color=red]app[/color](document).showSeries((element as RadarSeries).displayName, false);
}
Hope this helps,
More...
[dmandrioli said:]
Hi,
In the following code fragment, [color=red]showSeries[/color] is not the function defined in RadarLine3DLegend but a function which should be defined in the main application (i.e. RadarLine3D).
In the product sample, [color=red]showSeries[/color] is defined in radar.mxml (which explains the cast in [color=blue]blue[/color]).
-------------------------------------------------
private function showSeries():void {
[color=blue]radar(document)[/color].[color=red]showSeries[/color]((element as RadarSeries).displayName, true);
}
private function hideSeries():void {
[color=blue]radar(document)[/color].[color=red]showSeries[/color]((element as RadarSeries).displayName, false);
}
-------------------------------------------------
showSeries is not very easy to move to your code so if you want to reuse the interactive legend of the radar sample, your should start from the original sample code and modify it step by step.
Hope this helps,

Related Links

Custom labelFunction for radarchart
Linear Gradient as fill for RadarColumnSerie
Dragging Radar Line Series
How to change angular axis minimum and maximum?
RadarColumnSeries Remove Column Tapering on Large Values
Need to create radar chart without writing code
Radar Labels don\'t update
Radarchart gradient background
Run Time Radar Data
Rotating the angular axis
Set the chart.type="Cloumn" default
pls help me
How could I change RadarLinesSeries using Action Script?
Radar Chart - Custom Labels
Trouble with AngularAxisRenderer.labelRenderer on RadarChart
Multiple Stroke Colors for Radial Lines

Categories

DW
PureApplication System
Tivoli Netcool/Impact
Worklight
IBM TRIRIGA
AIX and Linux
Weblogs
Communities category
Linux on Power Community
IBM Connections Docs C...
IBM ECM System Monitor
IBM OmniFind Enterpris...
Optimize
Cloud security
Cloud resilience
IBM TRIRIGA (SaaS)
Jazz for Service Manag...
Fixlet Authoring
Collaboration Network
Managed File Transfer
Multi-Channel Selling
IBM SPSS Statistics Sy...
IBM SPSS Collaboration...
Rational Developer for...
IBM ILOG Elixir
Regional
Cognos Controller
Cognos SDK and Diagnos...
Cognos Series 7
IBM developerWorks Россия
Rational DOORS DXL
Functional and GUI Tes...
Enterprise Change Mana...
Rational DOORS integra...
Системы хранения данны...
Education and Learning
aW
HeapAnalyzer
aW
Autonomic computing
dW Questions and Answers
InfoSphere QualityStage
Informix developer and...
InfoSphere Metadata Se...
IBM InfoSphere BigInsi...
Objrepos - AIX ユーザー・コミ...
IBM Toolbox for Java a...
Công ty thiết kế website
Migrating to WebSphere...
Digital Advertising
WebSphere eXtreme Scale
General
zSecure suite
Events & DSM's
Administration
News & Announcements
iPhone Mobile Apps
Collaboration Network
Web Services
General Discussions
General Discussion
E-Commerce/EDI/XML Cou...
Reports and Prints
Gentran Director
Connect:Direct Mainframe
Connect:Enterprise Mai...
C3 Product Manager/C3 ...
C3 Configurator
C3 Analyzer Installation
ROI Issues
Error Messages
Comergent Courses
Back End Integation
Release 5.5
Internationalization a...
DB2
Console Framework (HTM...
WebSphere
RPG Cafe
IBM ILOG Elixir General
Questions and Best Pra...
ILOG Customer Experts
Map displays
Gantt charts
OLAP & Pivot Charts
JRules BPM/SOA Integra...
Business Rules Best Pr...
Форум по AIX и UNIX
Анонсы
Information Server - J...
aW Services
IBM Image Construction...
Replication Monitoring...
IBM Tivoli Network Man...
IBM i: Firmware
IBM SCORE
Cluster Systems Manage...
System i Hardware Mana...
IBM Customer Experienc...
Thinking XML forum
Working XML forum
Client-side Java progr...
Multithreaded Java pro...
Java filter
IBM DataPower Gateways
IBM WebSphere SDK for ...
Linux tech support forum
IBM PowerVM Lx86 for x...

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile