Tuesday, December 6, 2011

DataTip with Unit

Hello,

i have a LineChart with 7 Lines and i have a Problem with the
DataTips.

The Problem is that the DataTips are shown without units. All
of the 7 Lines must be shown with different units.

I don't know how to do this. Can anyone help me?



thanksDataTip with Unit
I don't do much charting, but see if there is not a
dataTipFunction() available.

TracyDataTip with Unit
Yes, there is a dataTipFunction.

But my Problem is that i don't exact know how to work with it
and how the function works.

Which data use the function to do something? Is it using the
data from the DataProvider? What kind of data do i have to put in
the function?

And the other thing is that i have 7 lines with different
data. When i read the description of the function it looks like the
function cant work with all 7 different lines.

Perhaps you can tell me more or what im doing wrong?
Can you post some simplified code for the 7 line
chart?
Yes, here is my LineChart Code:




quote:





%26lt;mx:LineChart y=''71'' id=''chartWEATHER'' width=''90%''
horizontalCenter=''0'' dataProvider=''{dpStat}''
showDataTips=''true''%26gt;

%26lt;mx:horizontalAxis%26gt;

%26lt;mx:CategoryAxis categoryField=''time'' /%26gt;

%26lt;/mx:horizontalAxis%26gt;



%26lt;mx:verticalAxis%26gt;

%26lt;mx:LinearAxis minimum=''-40'' /%26gt;

%26lt;/mx:verticalAxis%26gt;



%26lt;mx:secondVerticalAxis%26gt;

%26lt;mx:LinearAxis minimum=''900'' maximum=''1100'' /%26gt;

%26lt;/mx:secondVerticalAxis%26gt;



%26lt;mx:series%26gt;

%26lt;mx:LineSeries dataProvider=''{dpStat}'' yField=''temp_a''
displayName=''Temperatur'' /%26gt;

%26lt;mx:LineSeries dataProvider=''{dpStat}'' yField=''feuchte_a''
displayName=''Feuchte'' /%26gt;

%26lt;mx:LineSeries dataProvider=''{dpStat}'' yField=''windboeen''
displayName=''Windb枚en'' /%26gt;

%26lt;mx:LineSeries dataProvider=''{dpStat}'' yField=''wind''
displayName=''Wind'' /%26gt;

%26lt;mx:LineSeries dataProvider=''{dpStat}'' yField=''regen''
displayName=''Regen'' /%26gt;

%26lt;/mx:series%26gt;



%26lt;mx:secondSeries%26gt;

%26lt;mx:LineSeries dataProvider=''{dpStat}'' yField=''luftdruck''
displayName=''Luftdruck''/%26gt;

%26lt;/mx:secondSeries%26gt;



%26lt;/mx:LineChart%26gt;



No comments:

Post a Comment