AwGraphBuild.SetValue Method 

Sets the value data of the graph.

[Visual Basic]
Public Sub SetValue( _
   ByVal itemIndex As Integer, _
   ByVal seriesIndex As Integer, _
   ByVal value As Single, _
   ByVal update As Boolean _
)
[C#]
public void SetValue(
   int itemIndex,
   int seriesIndex,
   float value,
   bool update
);

Parameters

itemIndex
Item index.
seriesIndex
Series index.
value
Value data.
update
Value that indicates whether the display panel is updated.

Example

How to set the value data and the item string data of each series and update the display panel finally.

graphBuild.SetValue(itemIndex, 0, 50F, False)
graphBuild.SetValue(itemIndex, 1, 0F, False)
graphBuild.SetValue(itemIndex, 2, -50F, False)
graphBuild.SetItemText(itemIndex, "XXXXX", False)
graphBuild.UpdateDisplayPanel()
graphBuild.SetValue(itemIndex, 0, 50F, false);
graphBuild.SetValue(itemIndex, 1, 0F, false);
graphBuild.SetValue(itemIndex, 2, -50F, false);
graphBuild.SetItemText(itemIndex, "XXXXX", false);
graphBuild.UpdateDisplayPanel();

See Also

AwGraphBuild Class | Asterworld.Graph Namespace

Home | Software & Source Code Library | About Us | Information Based on Law | Terms of Service
Software List | Product Price List | How to Buy | Order Form | FAQ | Site Map
Copyright (C) 2001-2012 Asterworld. All Rights Reserved.