Home Reference Source
import Gauge from 'proteic/src/charts/gauge.js'
public class | source

Gauge

Extends:

Chart → Gauge

Gauge implementation. This charts belongs to 'Basic' family. It is inherited on 'Basic'.

Constructor Summary

Public Constructor
public

constructor(data: *, config: *)

Gauge constructor.

Member Summary

Public Members
public

data: *

Method Summary

Public Methods
public

draw(data: Object)

Renders a data object on the chart.

public

Add new data to the current graph.

Inherited Summary

From class Chart
public

config: *

public

data: *

public
public
public

events: *

public

change(property: any, value: any): *

Change a configuration property.

public

Make and download an image of the current state of the chart.

public

draw(data: any)

Paint data into the chart.

public

keepDrawing(datum: any, method: any)

This method add a data record / array of data into the current data.

Public Constructors

public constructor(data: *, config: *) source

Gauge constructor. It needs (at least) one argument to start: data. Optionally, you can indicate a second argument that includes all the chart options. If you do not specify this, '_default' object is used by default.

Override:

Chart#constructor

Params:

NameTypeAttributeDescription
data *
config *

Public Members

public data: * source

Override:

Chart#data

Public Methods

public draw(data: Object) source

Renders a data object on the chart.

Override:

Chart#draw

Params:

NameTypeAttributeDescription
data Object

This object contains the data that will be rendered on chart. If you do not specify this param, this.data will be used instead.

public keepDrawing(datum: Object) source

Add new data to the current graph. If it is empty, this creates a new one.

Override:

Chart#keepDrawing

Params:

NameTypeAttributeDescription
datum Object

data to be rendered