Tornado API Library - V12.30.08

z.dbPieChart Property

Define Pie chart for GridChart or standalone mode.

Product Version

Gold
[VisualBasic]
PublicPropertydbPieChartAsString
[C#]
publicstringdbPieChart{set;}

Property Value

Mydb.dbPieChart="Value | Label"

KeywordDescription
ValueFieldNameOrNumber or Raw data providing the Pie values.
LabelFieldNameOrNumber or Raw data providing the Pie labels.

QuickProp Keyword Abbreviation

pch

Remarks

Check HTML dump for defaults.

Overide the values with dbChartParams.

Example

<script language="VB" runat="server">
Sub Page_Load(Src As Object, E As EventArgs)
  Dim Pie As New Tornado.z
  With Pie
    .dbQP = "U=6| S=Moon| D=nwind| ni=none|th=Ti=Grid Chart Mode"
    .dbMode = "GridChart"
    .dbSQL = "SELECT TOP 5 OrderID, CustomerID, Freight From Orders"
    .dbPieChart = "Value=#2#| Label=#CustomerID#
    .dbChartParams = "width=400| PercentLabelsOff=true|Titlestring=My title"
    .ASPdbNET()
  End With
End Sub
</script>

See Also

z Class | Tornado Namespace | dbBarChart | dbColumnChart | dbLineChart | dbDateLineChart | dbAreaChart | dbBubbleChart | Special Topic - Charting