Xbasic

a5_chart_data_url_generate Function

Syntax

C Result = a5_chart_data_url_generate(P objSettings ,P customChart ,N width ,N height )

Arguments

C Result =

Generated REST URI string to pass to the chart provider, typically the Charting::Chart Class

objSettings

A Reporting::ReportChart object

customChart

A Charting::ChartDataDefinition object or, often, a function that returns a Charting::ChartDataDefinition

width

The desired width of the chart in pixels

height

The desired height of the chart in pixels. Numeric

Description

Generates the google URL for a chart for embedded chart object

Discussion

Generates the URI string that describes a chart for an embedded chart object. This string can be used by the .NET Framework System.Web.UI.DataVisualization.Charting.Chart class via the Alpha Anywhere Charting::Chart Class discussed as part of the Chart API V11..

Example

dim objSettings as Reporting::ReportChart
objSettings.chartType = "Pie"
dim uri as c = a5_chart_data_url_generate(objSettings,PieChart((,500,300(

See Also