An OpenSearch Dashboards visulization plugin that provides the capability for creating Candlestick chart and is powered by plotly.js
. Candlestick chart can be used to visualize the price movement of security, derivative, or stock over a period of time. By analysing the price pattern in the past, it helps traders to forcast the price value in the future.
The installation command is given for version 2.6.0.0
:
bin/opensearch-dashboards-plugin install https://github.com/igsl-group/osd_candlestick_vis/releases/download/2.6.0.0/candlestickChart-2.6.0.zip
By running this command, a new visualization Candlestick Chart
will be available when using the Visualize module in OpenSearch Dashboards.
Below demonstrates the steps to create a Candlestick chart.
- In the visualizations menu, choose
Create visualization
andCandlestick Chart
. - Choose a source for the chart (e.g. an index pattern)
- Under
Metric
within theData
panel, select a document field that corresponds to theprice
which the Open, High, Low, Close value are computed by. - Under
Buckets
within theData
panel, configurate the following inputs. 1. Select a document field that corresponds to the time value 2. Select one of the interval options (i.e. Hour, Day, Week, Month, Year) - Under
Panel settings
, customize the chart with y-axis options like position, label and change the Up and down color if required. Rangeslider for chart can also be enabled. - Adjust the time filter on the top right section
- Click
Update
To perform integration test on this plugin, please follows the below steps.
- Update the Opensearch Dashboards context url in below configuration in
cypress.config.ts
e2e: {
baseUrl: 'http://192.168.56.1:5603/tjh',
}
- Run the below command in project root directory
yarn run cypress:open