Chart Constructor

Initializes a new instance of the Chart class.

Namespace:  System.Web.Helpers
Assembly:  System.Web.Helpers (in System.Web.Helpers.dll)

Syntax

'Declaration
Public Sub New ( _
    width As Integer, _
    height As Integer, _
    theme As String, _
    themePath As String _
)
'Usage
Dim width As Integer 
Dim height As Integer 
Dim theme As String 
Dim themePath As String 

Dim instance As New Chart(width, height, _
    theme, themePath)
public Chart(
    int width,
    int height,
    string theme,
    string themePath
)
public:
Chart(
    int width, 
    int height, 
    String^ theme, 
    String^ themePath
)
new : 
        width:int * 
        height:int * 
        theme:string * 
        themePath:string -> Chart
public function Chart(
    width : int, 
    height : int, 
    theme : String, 
    themePath : String
)

Parameters

  • width
    Type: System.Int32
    The width, in pixels, of the complete chart image.
  • height
    Type: System.Int32
    The height, in pixels, of the complete chart image.
  • theme
    Type: System.String
    (Optional) The template (theme) to apply to the chart.
  • themePath
    Type: System.String
    (Optional) The template (theme) path and file name to apply to the chart.

Remarks

A chart can be created using either the optional theme parameter or the optional themePath parameter. If you specify both of these parameters, only the theme parameter will be applied.

See Also

Reference

Chart Class

System.Web.Helpers Namespace