public class

ChartHiLoType

extends ChartType
java.lang.Object
   ↳ com.artfulbits.aiCharts.Base.ChartType
     ↳ com.artfulbits.aiCharts.Types.ChartHiLoType

Class Overview

Represents HiLo chart type. A HiLo chart combines two independent values to supply high and low data for each point in a series. HiLo charts are used primarily in financial applications to show the high and low price for a given stock. The elements of the Y values array in each series' point of a HiLo chart represent the "high" value, and the "low" value.

 ChartSeries series = new ChartSeries("Series 1", ChartTypes.HiLo);
 // Filling series with 10 data points.
 for(int i = 0; i < 10; i++)
 {
 	//Supplying Hi and Low values.
 	series.getPoints().addXY(i, Math.cos(i) - 1, Math.cos(i) + 1);
 }
 
* Similar output should be expected:

HiLo type uses LowValue and HighValue types to determine index of corresponding Y values among chart point's Y values.

Summary

[Expand]
Inherited Fields
From class com.artfulbits.aiCharts.Base.ChartType
Public Constructors
ChartHiLoType()
Sole constructor.
Public Methods
void draw(ChartRenderArgs args)
Draws this chart type on surface specified along.
Usage[] getRequiredUsages()
Gets value indicating usages that this chart type requires to be shown.
DoubleRange getYRange(ChartSeries series)
Gets range that this chart type will consume having specified series.
boolean isSideBySide()
Indicated whether this chart type is placed side by side.
[Expand]
Inherited Methods
From class com.artfulbits.aiCharts.Base.ChartType
From class java.lang.Object

Public Constructors

public ChartHiLoType ()

Sole constructor. (For invocation by subclass constructors, typically implicit.)

Public Methods

public void draw (ChartRenderArgs args)

Draws this chart type on surface specified along.

Parameters
args instance of ChartRenderArgs that provides facilities to draw this type.

public Usage[] getRequiredUsages ()

Gets value indicating usages that this chart type requires to be shown.

Returns

public DoubleRange getYRange (ChartSeries series)

Gets range that this chart type will consume having specified series.

Parameters
series instance of ChartSeries class.
Returns
  • instance of DoubleRange class that represents required Y range.

public boolean isSideBySide ()

Indicated whether this chart type is placed side by side.

Returns
  • true if chart type is side by side, otherwise false.