Visavail Timeline
This library visualizes the availability of time-dependent data with a chart on a website.
Official documentation
For more detailed information and examples, see the official documentation: Visavail Timeline documentation.
How to use?
Copy-paste the stylesheet <link>
into your <head>
to load the CSS.
Copy-paste the following <script>
near the end of your pages under JS Implementing Plugins to enable it.
Copy-paste the following <script>
near the end of your pages under JS Nova to enable it.
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
Config
Parameter | Description |
---|---|
margin.top |
indent at the top of the graph from the edge of the area in which the graph is located. |
margin.right |
indent on the right of the graph from the edge of the area in which the graph is located. |
margin.bottom |
indent at the bottom of the graph from the edge of the area in which the graph is located. |
margin.left |
indent on the left of the graph from the edge of the area in which the graph is located. |
dataHeight |
Height of the columns |
lineSpacing |
sets the amount of space between the lines for the label set to value . It is recommended to give the same value as in the dataHeight , otherwise the row will be located either below or above the centre of the column. |
width |
width of the chart. |
maxDisplayDatasets |
limits the maximum number of columns shown. |
axisOrientation |
determines in which part of the chart the labels will be displayed along the X axis. Possible values:
|
valueMargin.top |
Indent from the top of the label specified in value from the edge of the column. |
valueMargin.left |
Indent to the left of the label specified in value from the edge of the column. |
valueColor |
color of the label specified in value . |
valueFontSize |
font size of the label specified in value . |
axisFontSize |
The font size of labels along the X axis. |
axisColor |
color labels on the axis X. |
axisFontFamily |
X-line label font family. |
labelsFontSize |
label font size on the Y axis. |
labelsColor |
color labels on the Y axis. |
labelsFontFamily |
label font family Y. |
Methods
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-
, as in data-data-set=""
.
Attribute | Description |
---|---|
data-data-set |
array of data for the graph. Where:
|
data-margins |
the indents of the graph from the edges of the area in which the graph is located. |
data-height |
Height of the columns. |
data-width |
Width of the chart. |
data-line-spacing |
sets the amount of space between the lines for the label set to value . It is recommended to give the same value as in data-height , otherwise the line will be located either below or above the center of the column. |
data-max-display-datasets |
limits the maximum number of columns shown. |
data-axis-orientation |
determines in which part of the chart the labels will be displayed along the X axis. Possible values:
|
data-value-margin |
The indents of the label specified by value at the top and left of the column edges. |
data-value-color |
color of the label specified in value . |
data-value-font-size |
font size of the label specified in value . |
data-axis-font-size |
The font size of labels along the X axis. |
data-axis-color |
color labels on the axis X. |
data-axis-font-family |
X-line label font family. |
data-labels-font-size |
label font size on the Y axis. |
data-labels-color |
color labels on the Y axis. |
data-labels-font-family |
Label font family on the Y axis. |
data-is-responsive |
determines whether the graph is adaptive. |