Radar charts
Radar chart in the dotted line
Hello, Please teach the method of displaying the radar chart in the dotted line. Please look at the appended image. Thank,
Hi, Flash does not support dotted lines natively. However, it is possible to extend RadarLineRenderer to draw dotted line. Here is below a canonical class which draws standard radar lines. You have to replace lineTo() calls by a routine which draws dotted lines. Note that this simple renderer does not support filled and curved series. package { import flash.display.Graphics; import ilog.charts.renderers.RadarLineRenderer; import mx.graphics.IStroke; public class DottedRadarLine extends RadarLineRenderer { override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number): void { graphics.clear(); getStyle( "lineStroke").apply(graphics, null, null); var points:Array = data.items; graphics.moveTo(points[0].x, points[0].y); for (var i: int = 1; i < points.length; i++) { graphics.lineTo(points[i].x, points[i].y); } graphics.lineTo(points[0].x, points[0].y); } } } To use this renderer, set the lineSegmentRenderer style on the series: <ilog:RadarLineSeries lineSegmentRenderer= "DottedRadarLine"/> Hope this helps, Damien
SystemAdmin 110000D4XK 2011-08-04T11:44:51Z Hi, Flash does not support dotted lines natively. However, it is possible to extend RadarLineRenderer to draw dotted line. Here is below a canonical class which draws standard radar lines. You have to replace lineTo() calls by a routine which draws dotted lines. Note that this simple renderer does not support filled and curved series. <pre class="jive-pre"> package { import flash.display.Graphics; import ilog.charts.renderers.RadarLineRenderer; import mx.graphics.IStroke; public class DottedRadarLine extends RadarLineRenderer { override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number): void { graphics.clear(); getStyle( "lineStroke").apply(graphics, null, null); var points:Array = data.items; graphics.moveTo(points[0].x, points[0].y); for (var i: int = 1; i < points.length; i++) { graphics.lineTo(points[i].x, points[i].y); } graphics.lineTo(points[0].x, points[0].y); } } } </pre> To use this renderer, set the lineSegmentRenderer style on the series: <pre class="jive-pre"> <ilog:RadarLineSeries lineSegmentRenderer= "DottedRadarLine"/> </pre> Hope this helps, Damien More... Hi, The dotted line was not displayed. I executed the following operations. 1. I was added the class 「DottedRadarLine」. 2. I was added 「lineSegmentRenderer="DottedRadarLine"」to RadarLineSeries. I append the source. Thanks,
personAAA 270004C6R3 2011-08-05T02:59:23Z Hi, The dotted line was not displayed. I executed the following operations. 1. I was added the class 「DottedRadarLine」. 2. I was added 「lineSegmentRenderer="DottedRadarLine"」to RadarLineSeries. I append the source. Thanks, More... Hi, As I sais previously you must write your own dotted line method. Search the web, you will find lots of implementation for that. Thanks, Damien
SystemAdmin 110000D4XK 2011-08-05T08:29:37Z Hi, As I sais previously you must write your own dotted line method. Search the web, you will find lots of implementation for that. Thanks, Damien More... http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=flex+dotted+line sample and its source code for instance Erwan
Related Links
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
could not find source for resource bundle ilogradarchart
using datafunction for RadarLineSeries
Modifying the Radar Chart
How to change thickness/color of radar chart border
Clickable points on radar line series?
how to work with the radar control
Changing the order of the radial axis
LinearGradient as areaFill