Posts published on April 2017

Price as Area with Gradient Fill

Features

Starting from version 5.3.x it is possible to enable gradient fill for Area price-type.
It requires editing the relevant “chart.css.json.js for” file,  and adding a “fill2” and “fillOpacity” attributes with the required color and opacity.

You can locate the entry via price->area.

Solid fill:

 

Gradient fill version 5.3.x:

Gradient fill version 5.4.x:

stroke is the line color.
fill and fill2 are the gradient’s starting and ending colors.
fillOpacity is the gradient opacity.
fillOpacity2 is the gradient opacity for fill 2 (supported from version 5.4.0 and above).

 

Switch Expiration Mode

API

Expiry Mode

The “Expiration Mode” enables the Chart to stop data updates, based on a specified “expire” date. Any new data afterwards will not update the Chart.
In regular mode the Chart shifts the data to the left. In “Expiration Mode” the Chart fills from left to right, showing all the data including the future dates area.
The following API enables switching this mode ON or OFF on the fly.

 

StopExpiration
Disable expiration mode and reset buffers accordingly.

UpdateExpirationField
Update the expiration date and enable expiration mode if not already enabled.