Reference Source
import Theia from 'd-theia'
public class | source

Theia

Theia is the main API for dTheia - a reusable charting library built using d3 v.4 and ES6

Static Method Summary

Static Public Methods
public static

chart(sContainer: String, sType: String, oParams: Object): Object

Create a chart and return object

public static

Create a bar chart and return object

public static

Create a line chart and return object

public static

Create a line chart and return object

public static

getDataOps(): *

Return a public DataOps module

public static

Return a public Utilities module

Static Public Methods

public static chart(sContainer: String, sType: String, oParams: Object): Object source

Create a chart and return object

Params:

NameTypeAttributeDescription
sContainer String

ID to select container DOM object

sType String

string denoting the type of chart

oParams Object

includes target DOM object, JSON config and array of data

Return:

Object

oChart returns a chart object of the requested type

public static createBarChart(oParams: Object): Object source

Create a bar chart and return object

Params:

NameTypeAttributeDescription
oParams Object

contains the configuration for the chart

Return:

Object

returns a bar chart object

public static createBubbleChart(oParams: Object): Object source

Create a line chart and return object

Params:

NameTypeAttributeDescription
oParams Object

contains the configuration for the chart

Return:

Object

returns a bubble chart object

public static createLineChart(oParams: Object): Object source

Create a line chart and return object

Params:

NameTypeAttributeDescription
oParams Object

contains the configuration for the chart

Return:

Object

returns a line chart object

public static getDataOps(): * source

Return a public DataOps module

Return:

*

public static getUtilities(): * source

Return a public Utilities module

Return:

*