XPlot


GoogleChart Type

Namespace: XPlot.GoogleCharts

Assembly: XPlot.GoogleCharts.dll

Base Type: obj

Record fields

Record Field Description

dataTable

Full Usage: dataTable

Modifiers: mutable

options

Full Usage: options

Modifiers: mutable

type

Full Usage: type

Modifiers: mutable

Constructors

Constructor Description

GoogleChart()

Full Usage: GoogleChart()

Returns: GoogleChart

Returns: GoogleChart

Instance members

Instance member Description

this.ApiKey

Full Usage: this.ApiKey

The Google Maps API Key, used with Goe and Map charts.

this.GetHtml()

Full Usage: this.GetHtml()

Returns: string

Returns the chart's full HTML source.

Returns: string

this.GetInlineHtml()

Full Usage: this.GetInlineHtml()

Returns: string

Inline markup that can be embedded in a HTML document (provided that it has a reference to Google APIs and loads the required Google Charts packages).

Returns: string

this.GetInlineJS()

Full Usage: this.GetInlineJS()

Returns: string

The chart's inline JavaScript code.

Returns: string

this.Height

Full Usage: this.Height

The height of the chart container element.

this.Id

Full Usage: this.Id

The chart's container div id.

this.Show()

Full Usage: this.Show()

Displays a chart in the default browser.

this.Width

Full Usage: this.Width

The width of the chart container element.

this.WithApiKey(newApiKey)

Full Usage: this.WithApiKey(newApiKey)

Parameters:
    newApiKey : string

Sets the Google Maps API Key, used by Goe and Map charts.

newApiKey : string

this.WithHeight(height)

Full Usage: this.WithHeight(height)

Parameters:
    height : int

Sets the chart's height.

height : int

this.WithId(newId)

Full Usage: this.WithId(newId)

Parameters:
    newId : string

Sets the chart's container div id.

newId : string

this.WithLabel(label)

Full Usage: this.WithLabel(label)

Parameters:
    label : string

Sets the data series label. Use this method if the chart's data is a single series.

label : string

this.WithLabels(labels)

Full Usage: this.WithLabels(labels)

Parameters:
    labels : seq<string>

Sets the data series labels. Use this method if the chart's data is a series collection.

labels : seq<string>

this.WithLegend(enabled)

Full Usage: this.WithLegend(enabled)

Parameters:
    enabled : bool

Display/hide the legend.

enabled : bool

this.WithOptions(options)

Full Usage: this.WithOptions(options)

Parameters:

Sets the chart's configuration options.

options : Options

this.WithSize(width, height)

Full Usage: this.WithSize(width, height)

Parameters:
    width : int
    height : int

Sets the chart's width and height.

width : int
height : int

this.WithTitle(title)

Full Usage: this.WithTitle(title)

Parameters:
    title : string

Sets the chart's title.

title : string

this.WithWidth(width)

Full Usage: this.WithWidth(width)

Parameters:
    width : int

Sets the chart's width.

width : int

this.WithXTitle(xTitle)

Full Usage: this.WithXTitle(xTitle)

Parameters:
    xTitle : string

Sets the chart's X-axis title.

xTitle : string

this.WithYTitle(yTitle)

Full Usage: this.WithYTitle(yTitle)

Parameters:
    yTitle : string

Sets the chart's Y-axis title.

yTitle : string

Static members

Static member Description

GoogleChart.Create(data) (labels) (options) (type)

Full Usage: GoogleChart.Create(data) (labels) (options) (type)

Parameters:
Returns: GoogleChart

data : seq<Series>
labels : seq<string> option
options : Options
type : ChartGallery
Returns: GoogleChart

GoogleChart.CreateFromDataTable(dataTable) (options) (type)

Full Usage: GoogleChart.CreateFromDataTable(dataTable) (options) (type)

Parameters:
Returns: GoogleChart

dataTable : DataTable
options : Options
type : ChartGallery
Returns: GoogleChart