Tornado API Library - V12.30.08

z.dbBarChart Property

Define Bar chart for GridChart or standalone mode.

Product Version

Gold
[VisualBasic]
PublicPropertydbBarChartAsString
[C#]
publicstringdbBarChart{set;}

Property Value

Mydb.dbBarChart="Legend| Label | DataSet0 | DataSet1...| DataSet39"

KeywordDescription
LegendTrue|false(Def) - Display Legends.
LabelFieldNameOrNumber providing the Bar labels.
DataSetFieldNameOrNumber providing the bar dataset (0-39) values.

QuickProp Keyword Abbreviation

bch

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 Bar As New Tornado.z
  With Bar
    .dbQP = "U=15| D=nwind| S=13| PS=10| M=Gc"
    .dbSQL = "SELECT OrderID, sum(UnitPrice) as UnitPrice, sum(Quantity) as " & _
      "Qty from [Order details] Group by OrderId"
    .dbBarChart = "Label=#0#| DataSet0=#1#| DataSet1=#2#| " & _
      "DataSet2=43,89,21,65,52,157,10,47,76,111"
    .dbTextHolder = "Title=Bar Chart"
    .ASPdbNET()
  End With
End Sub
</script>

See Also

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