1.0.1 • Published 3 years ago

lotivis-datatext v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

lotivis-datatext

The lotivis.js datatext chart.

Installing

If you use npm, npm install lotivis-datatext. You can also download the latest realease on GitHub. For using in browsers, you can load the UMD bundle from an npm-based CDN such as jsDelivr.

<script src="https://cdn.jsdelivr.net/..."></script>
<script>

let datatextChart = lotivis.datatext();

</script>

API Reference

Content formats

datatext.text(lotivis.datatextCSV);

lotivis.datatextJSON

Formats a JSON the data view object of the datatext.

lotivis.datatextJSONData

Formats a JSON of the data.

lotivis.datatextCSV

Formats the data as CSV.

Datatext

datatext.id()

Returns the datatext's id.

datatext.height(_)

Gets or sets the maximum height of the datatext.

datatext.marginLeft(_)

Gets or sets the left margin of the datatext.

datatext.marginTop(_)

Gets or sets the top margin of the datatext.

datatext.marginRight(_)

Gets or sets the right margin of the datatext.

datatext.marginBottom(_)

Gets or sets the bottom margin of the datatext.

datatext.backgroundColor(_)

Gets or sets the background color of the datatext.

datatext.enabled(_)

Gets or sets whether the datatext is enabled.

datatext.title(_)

Gets or sets the title of the datatext.

datatext.text(_)

datatext.dataController(_)

Gets or sets the data controller of the data text.

Development

# build module
yarn build

# develop module
yarn build:watch