JavaScript code to create OHLC and line chart combo chart template
The example below illustrates a sample of the 2016 Lockheed Martin stock price chart with the number of shares by combining the OHLC and line graphs.
You can also combine line charts with OHLC. Line charts/graphs in OHLC are used to show various parameters in financial analysis. You can also combine OHLC graphs with spline or area charts.
The example below illustrates a sample of the 2016 Lockheed Martin stock price chart with the number of shares by combining the OHLC and line graphs. It is made with JavaScript and you will see the source code below the screenshot.
Source : CanvasJS
Chart customization
Like other chart templates created with JavaScript, you can also change properties in the source code to get the results you want. For example:
visible
: Show/hide data serieslineColor
: Customize the color of the linelineThickness
: Line thicknesscolor
: ColormarkerType
: Marking style- …
5 ★ | 1 Vote
You should read it
- JavaScript code to generate dynamic line graphs/charts
- JavaScript code to generate error charts & graphs
- JavaScript code to generate error line graph/graph
- Code of chart/bar graph with error combination
- JavaScript code to generate box and whisker charts/graphs
- JavaScript code to create bubble chart with custom marker
- JavaScript code that generates box and whisker charts containing outliers
- JavaScript code to create dynamic charts/graphs
- JavaScript code to create box & whisker chart/graph templates with custom colors
- Summary of JavaScript exercises with sample code
- JavaScript code to create multi-series graphs that update live data
- JavaScript code that generates Pareto chart template with Index/Data . label