Some ways you can use Bime:

“Consulting: create dashboards for your customers to show them your findings”
Introducing a Flex Charting trend line component

Introducing a Flex Charting trend line component

View Comments

How to draw trend lines on Flex Charts? Actually, you just have to add the trendline drawer component on the annotation section of your charts.

  • Digg
  • del.icio.us
  • StumbleUpon
  • Technorati
  • Twitter

If you're new here, you may want to subscribe to our RSS feed. Prefer to stay in touch via Facebook or Twitter? Become a fan or Follow us. Thanks for visiting!

How to draw trend lines on Flex Charts? Actually, you just have to add the trendline drawer component on the annotation section of your charts.

<chartsExtention:ColoredAndSizedColumnChart id="chart" width="100%" height="100%">
  <chartsExtention:annotationElements>
	<DataCanvas:TrendCartesianDataCanvas id="trendCanvas" includeInRanges="true"/>
   </chartsExtention:annotationElements>
...

Now you can call method like drawLinearTrend() or drawPolynomialTrend(). It’s that easy and should work with all cartesian charts (column / bar / plot etc…) without extra work.

Have a look here for a demo. View source enabled.

Let us know for any trouble. Huge credits to the as3mathlib for the maths.

We don’t stop to add features like this in Bime so if you are interested in, register above to the Beta. It should come very soon: jump on the bandwagon!

Ready to try Bime? Take the free trial

  • Digg
  • del.icio.us
  • StumbleUpon
  • Technorati
  • Twitter

Author:  Nicolas is responsible for IT, data visualization and design at We Are Cloud.


RSS Feed of We Are Cloud

User Comments

  • October 26, 2009

    Thanks for the great example code. This was exactly what I was looking for.

  • October 26, 2009

    Dear, i can not draw the line when i change the TrendLineDrawer.mxml file below . before >>> after >>> i would like you to show the reason . thanks .

  • December 28, 2009

    This is wonderful! I am curious though, is there a way to modify the drawRegressionLine function to refer to a chart’s ColumnSet instead of the chart’s series?

  • March 11, 2010

    Can we draw a trend in dotted and can we draw a line according to the specific value in the y axis of the graph.
    Please reply Urgent!!.
    Thanks in advance

Post a Comment

Your email is never shared. Required fields are marked *

*
*
blog comments powered by Disqus

Blog categories

Tags

bime business intelligence cloud computing corporate dashboard data analysis data visualization design event flex gartner google analytics optimization RIA saas salesforce security SMBs startup video