Tim,
It works!!! Hooray!!! You Rock!!!
Thank you so much for all your help.
Monette
--- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote:
Three time's a charm:
var series:LineSeries = LineSeries( o.element );
var seriesIndex:int;
for ( seriesIndex = 0; seriesIndex
My pleasure Monette.
-TH
--- In flexcoders@yahoogroups.com, Monette monett...@... wrote:
Tim,
It works!!! Hooray!!! You Rock!!!
Thank you so much for all your help.
Monette
--- In flexcoders@yahoogroups.com, turbo_vb TimHoff@ wrote:
Three time's a charm:
var series:LineSeries =
Almost there! I assigned an id to each series - s1, s2, s3 etc. Below I
am trying to loop for the total amount of series. The values show up
for bookrate and status but they are the incorrect values for some of
the datapoints. If I define a as 0, 1 or 3 without the loop the values
are correct
Ok, good. Not sure exactly what you're trying to do, but it's basically the
same type of thing as the data function. It's all about getting to right data
for the series. Here's some code for getting individual values and for
calculating totals for the week
private function dtFunction(
This will work. However, the series count is not limited to just 3 series,
it's count is dynamic depending on the amount of data collected. So the code
needs to check how many series exists and then generate the datatip for the
different series data points. It is easy for me to accomplish
Easy enough, create a dictionary (id or name) when the series's are created;
with the index. And/Or you can get the count from myChart.series.length.
-TH
--- In flexcoders@yahoogroups.com, Monette monett...@... wrote:
This will work. However, the series count is not limited to just 3
So, maybe something like this:
private function dtFunction( o:HitData ):String
{
var series:LineSeries = LineSeries( o.element ) as LineSeries;
var seriesIndex:int;
for ( var a:int = 0; a myChart.series.length; a++ )
{
var lineSeries:LineSeries =
Cleaner:
private function dtFunction( o:HitData ):String
{
var series:LineSeries = LineSeries( o.element ) as LineSeries;
var seriesIndex:int;
for ( seriesIndex = 0; seriesIndex myChart.series.length;
seriesIndex++ )
{
var lineSeries:LineSeries =
Three time's a charm:
var series:LineSeries = LineSeries( o.element );
var seriesIndex:int;
for ( seriesIndex = 0; seriesIndex myChart.series.length; seriesIndex++ )
{
var lineSeries:LineSeries = myChart.series[ seriesIndex ] as LineSeries;
if ( lineSeries == series )
{
Below is my DataTipFunction. The commented part on top works fine.
However, there is additional information that I need to include from the
XML file into the data tip.
When I mouse over the datapoint I would like to retrieve from the XML
file the additional child nodes that correspond with that
Yeah, you're very close. Now it's just a matter of xml. I'd start by tracing
o. If the children are still in o, then drill down. Otherwise, you'll have to
go and find the nodes; like you're trying below. Some things that you can
start with:
trace( o.toXMLString() );
Tim,
Your recommendation sounds so simple and logical but I am not getting it
to work. My problem is parsing the XML and returning the correct info
for the datapoints. Following, is a sample of my XML file:
items
week name=1
session
sessionnameBaseline/sessionname
Assuming that you have assigned an id to each series
(baseline,2009-8), you could use something like this:
private function dtFunction( o:HitData ):String
{
var index:int = ( LineSeries( o.element ).id == baseline ) ? 0 :
1;
var s:String = bBook rate:/b + o.item.session[ index
If the dataTipFunction doesn't give you enough flexibility, you could try a
dataTipRenderer. In either case, you can drill down to the child nodes there.
-TH
--- In flexcoders@yahoogroups.com, Monette monett...@... wrote:
The line chart displays multiple series created with the
14 matches
Mail list logo