Graph Generation in flex
Posted
by Roshan
on Stack Overflow
See other posts from Stack Overflow
or by Roshan
Published on 2010-05-24T06:55:56Z
Indexed on
2010/05/24
7:01 UTC
Read the original article
Hit count: 322
I need to generate a graph using the following XML in FLEX.
[Bindable] public var stockDataAC:ArrayCollection = new ArrayCollection( [ {date: "2010, 4, 27", close: 41.71}, {date: "2010, 4, 28", close: 42.21}, {date: "2010, 5, 2", close: 42.71}, {date: "2010, 5, 3", close: 42.99}, {date: "2010, 5, 4", close: 44} ]);
.............. < mx:horizontalAxis > < mx:DateTimeAxis dataUnits="days" displayLocalTime="true" parseFunction="myParseFunction" / > < /mx:horizontalAxis>
But this displays the graph from 2010/4/27 till 2010/5/4 including 2010/4/29, 2010/4/30 and 2010/5/1. I require the graph to display only the points in XML and exclude remaining thought it lies in between since it contains no data. How this can be done?
© Stack Overflow or respective owner