- Chart Style
- Chart Type
- 3d Appearance
- Data Source
- Select Statement
- Use Portable SQL
- Argument Bindings
- Filter records
- Custom Source
- Custom Watch
- Chart Series
- Series Type
- Series Expression
- Series Label Expression
- Plot Series on Axis
- Chart Data
- Data Columns
- Sample unique
- Sample at
- Sample Over
- Data Label
- Explode slice
- Chart Category
- Category Label
- Chart Settings
- Chart Title
- X Axis Title
- Y Axis Title
- Data Label Placement
- Include Zero
- Show Breaks
- Chart Style
- Chart Style
- Event Handler
- Layout Editors - Embedded Charts
- Charts - Xdialog Examples
- Forms - Embedded Charts - Charting Summary Data
The Chart Control is used by several other components and subsystems: the Web Chart Component, Reports, the Chart Alternate View, and desktop Forms. This article explains the common functionality provided by the Chart Control Genie. Charting is built into the Dialog Component (called the UX component in V12 and above) and into Reports.
The screen shot above shows the default chart setup dialog; this particular one was brought up from the desktop Form Designer. The table below lists all the controls that can appear on the Chart property sheet, and describes each one's usage.
Bar Vertical Grouped, Bar Vertical Stacked, Bar Vertical Overlaid, Bar Horizontal Grouped, Bar Horizontal Stacked, Line, Area, Spline, SplineArea, StackedArea, Radar, Pie, Doughnut, Funnel, Pyramid, Stock, Candlestick, Bubble.
Use three-dimension effects?
Other chart effects; what is offered depends on the chart type and 3d setting. Possible options are None, Concave, SoftEdge, Circle, Polygon, Line, Marker, Area, Circular Base, Square Base, Cylinder, Emboss, Light To Dark, Wedge
Table, SQL, Custom, or (in the context of a report) Report
Table or Set name, only offered if Source is Table
SQL connection, only offered if Source is SQL
SQL select statement, only offered if Source is SQL
Portable or native SQL syntax, only offered if Source is SQL
Not offered if Source is Report
Not offered if Source is Report
Filter the data being graphed (optional additional global filter). Only offered if Source is Table
Populate chart from Xbasic. Only shown if Source is Custom
Trigger re-populate of chart when value changes. Only shown if Source is Custom
How series is populated. Single means plot one series only, multiple record means same column, but separate records, multiple column means multiple values are plotted from a single record. Only offered if chart type supports multiple series
Data series group key (used to define the key to use for each series). Only offered if chart type supports multiple series and this is in a report context
Expression to generate the series break/order. Used as label if Series Label Expression is not defined. Only shown for Multiple Record series
Expression to generate the label for each series entry. Only shown for Multiple Record series
Instead of plotting category along the x axis, plot the Series. Category used for the legend. If this option is left off, Category gets plotted on the axis, Series is used for the legend. Only shown when there are multiple series
Select sample data versus summarize data. Options are Value, Summary, Count, Average, Standard Deviation, First, Last, Min, Max
Data points to sample. Only shown when the series type is not Multiple Column
Opens an editor for Series names and expressions
Pick expression on which to group summarization unique values. Only shown if Summarization is Value and source type is not Report
Select the report group at which to sample each value. Only shown if source type is Report. The Sample at group must be within the Sample Over group.
Select the report group to sample each value over. Only shown if source type is Report
Optional data label expression for chart. Used to label the data points.
Optional data point pie chart exploded setting. Only shown for Pie charts.
Expression for title to display on chart.
Expression for x-axis title to display on chart.
Expression for y-axis title to display on chart.
Auto, None, Legend, or Chart
Include zero in the y axis
Show breaks in sparse graph data
Edit stylesheet (colors, line styles and fonts)
Code to handle chart mouse events. Prototype is as shown below.
' Handle a click on graph data function OnClickData as c( e as p ) ' e contains ' e.obj(P) - pointer to objects ' e.series(N) - series # ' e.index(N) - data # ' e.data(N) - data value end function ' Handle a flyover event on graph data function OnFlyoverData as c( e as p ) end function ' Handle a click on graph series function OnClickLegend as c( e as p ) end function ' Handle a flyover event on graph series function OnFlyoverLegend as c( e as p ) end function
Video Number DT2. Alpha Anywhere introduces a powerful charting engine. Charts can be used in Form, Reports, Labels, Letters, Xdialogs, and Web Components. This video shows how a chart can be embedded into a form.
Video Number DT3. The charting features in Alpha Anywhere can be used in Xdialogs. The following video show how you can embed custom charts in your own Xdialogs.
Video Number DT3. The Xdialogs shown in the above video are all in the sample 'Learning Xdialog' database that shipped with V11. Since there are many example scripts in 'Learning Xdialog' that would be useful to have quick access to, regardless of which database you are working in, we show in this video how you can easily create a Code Library from the examples in 'Learning Xdialog'.
Video Number DT4. The charts that you embed on a Form or Report can plot summary data. The charts can either be defined declaratively, or you can use custom Xbasic. These videos show how a chart that summarizes attendees at a seminar by state can be defined using the built-in Chart Genie, or using Xbasic. The sample database used in the videos can be downloaded here.