Monthly Archives: October 2010

Display Labels/Datapoints for Line series in flex

1. Create class in Actionscript:ImpactMktLineLabelRenderer.as package { import flash.display.Graphics; import flash.geom.Rectangle; import mx.charts.ChartItem; import mx.charts.chartClasses.GraphicsUtilities; import mx.core.IDataRenderer; import mx.graphics.IFill; import mx.graphics.IStroke; import mx.skins.ProgrammaticSkin; import mx.controls.Label; import mx.controls.Alert; import mx.core.UIComponent; import mx.charts.LineChart; import mx.charts.series.LineSeries; import mx.charts.series.items.LineSeriesItem; import mx.graphics.SolidColor; import mx.formatters.NumberFormatter; public … Continue reading

Rate this:

| 4 Comments

Find Dynamicaly set min and max values for chart Axis

Set Dynamicaly min and max values in flex using loops [Bindable] private var firstAxisMin:int=0; [Bindable] private var firstAxisMax:int=0; [Bindable] private var firstTmp:int=0; [Bindable] private var firstTmp1:int=0; [Bindable] private var secondAxisMin:int=0; [Bindable] private var secondAxisMax:int=0; [Bindable] private var secondTmp:int=0; [Bindable] private … Continue reading

Rate this:

| Leave a comment

Quadrant Chart creation in flex

Create mxml file <![CDATA[ import mx.collections.ArrayCollection; import mx.controls.Button; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.controls.Label; import qs.charts.dataShapes.*; import mx.collections.ArrayCollection; import mx.graphics.*; import mx.charts.PlotChart; import mx.charts.Legend; import mx.charts.LinearAxis; import mx.charts.HitData; import mx.charts.series.PlotSeries; import mx.core.IFlexDisplayObject; import mx.collections.*; import mx.controls.Alert; import mx.utils.ObjectUtil; [Bindable] public … Continue reading

Rate this:

| Leave a comment