Pie Chart

Coordinator
Oct 2, 2013 at 7:52 AM
Sub DhtmlxCharts9()
        Dim dhtmlxChart2 As New dhtmlxChart2
        dhtmlxChart2.Title = "dhtmlxChart: Pie Chart"
        dhtmlxChart2.Heading = dhtmlxChart2.Title
        dhtmlxChart2.ChartType = dhtmlxChart2.ChartTypeEnum.pie
        dhtmlxChart2.Width = "500px"
        dhtmlxChart2.Height = "500px"
        dhtmlxChart2.border = "border:1px solid #A4BED4"
        dhtmlxChart2.value = "sales"
        dhtmlxChart2.PieChart.pieInnerText = "<b>#sales#</b>"
        ' the first column name should alwways be the x axis column name
        dhtmlxChart2.AddColumns("year", "sales")
        dhtmlxChart2.AddXY("2000", "5.0")
        dhtmlxChart2.AddXY("2001", "2.8")
        dhtmlxChart2.AddXY("2002", "1.1")
        dhtmlxChart2.AddXY("2003", "4.4")
        dhtmlxChart2.AddXY("2004", "2.6")
        dhtmlxChart2.AddXY("2005", "4.1")
        dhtmlxChart2.PieChart.shadow = True
        dhtmlxChart2.PieChart.gradient = True
        dhtmlxChart2.PieChart.legend.width = 65
        dhtmlxChart2.PieChart.legend.valign = dhtmlxChart2.AlignEnum.top
        dhtmlxChart2.PieChart.legend.align = dhtmlxChart2.AlignEnum.right
        dhtmlxChart2.PieChart.legend.marker.type = dhtmlxChart2.MarkerTypeEnum.round
        dhtmlxChart2.PieChart.legend.marker.width = 15
        dhtmlxChart2.PieChart.legend.template = "year"
        dhtmlxChart2.PieChart.legend.marker.visible = True
        dhtmlxChart2.PieChart.legend.visible = True
        WebSite.File_Write("~/dhtmlxChart.html", dhtmlxChart2.Render)
        regLeft.IFrameUrl = "dhtmlxChart.html"
    End Sub