OWC. aspx. vb:
Imports System
Imports OWC
Imports System. Web. UI
Public Class OWC
Inherits System. Web. UI. Page
Protected WithEvents ChartHolder As System. Web. UI. WebControls. PlaceHolder
# Region "code generated by Web forms designer"
'The call is required by the Web form designer.
<System. Diagnostics. DebuggerStepThrough ()> Private Sub InitializeComponent ()
End Sub
Private Sub Page_Init (ByVal sender As System. Object, ByVal e As System. EventArgs) Handles MyBase. Init
'Codegen: This method call is required by the Web forms designer
'Do not use the code editor to modify it.
InitializeComponent ()
End Sub
# End Region
Private Sub Page_Load (ByVal sender As System. Object, ByVal e As System. EventArgs) Handles MyBase. Load
'User code to place the initialization page here
'Create a ChartSpace object to place the chart
Dim objCSpace As ChartSpace = New ChartSpaceClass ()
'Add a chart to the ChartSpace object. The Add method returns the chart object.
Dim objChart As WCChart = objCSpace. Charts. Add (0)
'Specifies the chart type. The type is from OWC. ChartChartTypeEnum
ObjChart. Type = ChartChartTypeEnum. chChartTypeColumnClustered
'Specifies whether a legend is required for a chart.