Posts published on March 2017

API-Events

API
Events demo

Loader

LoaderInitComplete
Complete load the Chart’s library files

Chart (Layout)

readyComplete
Complete read all files for the layout

initComplete
Complete init all properties and objects for the layout

onFullPage
Event when the chart opens to full screen or not

onPreloadStart
Event when the “preload” (wait animation) start

onPreloadFinished
Event when the “preload” (wait animation) finished

Chart object

createComplete
The chart object is successfully created and ready to work

onChangeMajorsFavorites
Change majors favorites in the chart

onChangeComparesFavorites
Change compares favorites in the chart

onChangeIndicatorsFavorites
Change indicators favorites in the chart

onChangeSymbol
Change current symbol in the chart

onChangeTimeframe
Change current timeframe in the chart

onTimeZoneChanged
Change current time zone in the chart

onPriceTypeChange
Change current price type in the chart

onLastUpdateChange
The event occurs when the data is updated

Chart (Shape)

onStartDrawing
The event happens when we start drawing a shape

onStopDrawing
The event occurs when we have finished drawing a shape

onDeleted
The event occurs when we delete a shape

onSelectChange
An event occurs when we select another shape

onEndDrag
The event occurs when we finish moving the shape

onEndSize
The event occurs when we finish moving the resizing of the shape

onDeleted
The event occurs when we have already deleted the figure

Chart (Study|Indicators)

onUpdated
The event occurs when we change the parameters in the indicator

onAdded
The event occurs when the indicator is added

onDeleted
The event occurs when we delete the indicator

Loclization

onChange
The event occurs when the language changes

Version 5.3.3

Features, Versions

Updates:

  • Added more events callback for Shape and Indicators to notify on adding, modifying, dragging and resizing.
    Can be used to collect BI or persist user state after each change.

Change Size

API

 

Version 5.3.2

Features, Versions

New Features:

  • Responsive Mode.
    A new property objChartMain3.apiinit.parentRelativeObjectID enables referencing a relative parent for automatic resizing.
    This feature is mainly for responsive web platforms, which embed the Chart inside an internal container.
    The Chart will resize to accommodate new real-estate size among the rest of the page containers.

 

  • Light Mode.
    This feature offers a solution for reducing loading file size signature, by marking the none required modules.

     

Custom timeframes

API, Features

How-to create custom timeframe?

Toolbar

1st step

Add to layout file ( until version 5.3.1 ) property “timeframeview”

2 step:
Change time scale properties in html

Menu

Layout file , object menu

Drop-down toolbar

Layout file , object toolbar

Version 5.3.1 (Build 4)

Features, Versions

New Features:

  • Load time property TextDblDraw, which reduces text anti-aliasing.
    Accessed via:

     

Bugs Fix:

  • Prevent cases where two date labels have no spacing in between.

Version 5.3.1 (Build 3)

Features, Versions

New Features:

  • API SetNumFuturesBars to change the future bars buffer’s size and zoom length after switching off expiration mode.
  • Two new properties for vAxis to limit drawing range away from top and bottom.
    vMarginPixelsBottom and vMarginPixelsTop.
  • API doc has new hAxis and vAxis sections.
  • ZoomOnDateRange API to zoom on a specific time-range.
  • API AddImage / DeleteImage to add / delete an image shape.

Bugs Fix:

  • Only first text shape is loaded if more than one.
  • MFI indicator, when negative flow is zero showed 99.01 instead of 100.
  • The Chart doesn’t show the right number of dates when the number of candles is small.