# DataNeededEventArgs

Namespace: **Wisej.Web.Ext.SmoothieChart**

Assembly: **Wisej.Web.Ext.SmoothieChart** (3.2.0.0)

Provides data for the [DataNeeded](https://docs.wisej.com/extensions/extensions/smoothiechart/wisej.web.ext.smoothiechart.smoothiechart#dataneeded) event of the [SmoothieChart](https://docs.wisej.com/extensions/extensions/smoothiechart/api/wisej.web.ext.smoothiechart.smoothiechart) control.

{% tabs %}
{% tab title="C#" %}

```csharp
public class DataNeededEventArgs : EventArgs
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class DataNeededEventArgs
    Inherits EventArgs
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)DataNeededEventArgs(index, time)

Constructs a new instance of [DataNeededEventArgs](https://docs.wisej.com/extensions/extensions/smoothiechart/api/wisej.web.ext.smoothiechart.dataneededeventargs).

| Name      | Type                                                                    | Description                                                                                                                                                                |
| --------- | ----------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **index** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)       | The index of the [TimeSeries](https://docs.wisej.com/extensions/extensions/smoothiechart/api/wisej.web.ext.smoothiechart.timeseries) line that is requesting a data point. |
| **time**  | [DateTime](https://docs.microsoft.com/en-us/dotnet/api/system.datetime) | The time of the data point being requested.                                                                                                                                |

## Properties

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)LineIndex

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns the index of the [TimeSeries](https://docs.wisej.com/extensions/extensions/smoothiechart/api/wisej.web.ext.smoothiechart.timeseries) line that is requesting the data point.

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)TimeStamp

[DateTime](https://docs.microsoft.com/en-us/dotnet/api/system.datetime): Returns or sets the time of the data point.

### ![](https://2248866391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFp7MR1wemvcC5891_r%2F-MirBc8UH2o1iZfh0jrC%2F-MirBsnmjWIxMsN8l0Ms%2Finstance.png?alt=media\&token=dff77e9a-7d55-4c1e-9ef7-ac9092f4f565)Value

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns or sets the value to plot on the [TimeSeries](https://docs.wisej.com/extensions/extensions/smoothiechart/api/wisej.web.ext.smoothiechart.timeseries) line.
