public class

ChartBarType

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

Class Overview

Represents Bar chart type. A bar chart, also known as a bar graph, is a chart with rectangular bars of lengths proportional to that value that they represent. Bar charts are used for comparing two or more values.

 // Creating series.
 ChartSeries series = new ChartSeries("Series 1", ChartTypes.Bar);
 // Filling series with 10 data points.
 for(int i = 0; i < 10; i++)
 {
 	series.getPoints().addXY(i, Math.cos(i));
 }
 
Similar output should be expected:

Bar type uses YValue type to determine index of corresponding Y value among chart point's Y values.

Summary

[Expand]
Inherited Fields
From class com.artfulbits.aiCharts.Types.ChartColumnType
From class com.artfulbits.aiCharts.Base.ChartType
Public Constructors
ChartBarType()
Sole constructor.
Public Methods
boolean isRotated()
Indicates whether this type requires X and Y axes swapping.
[Expand]
Inherited Methods
From class com.artfulbits.aiCharts.Types.ChartColumnType
From class com.artfulbits.aiCharts.Base.ChartType
From class java.lang.Object

Public Constructors

public ChartBarType ()

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

Public Methods

public boolean isRotated ()

Indicates whether this type requires X and Y axes swapping.

Returns
  • true if this chart type is rotated, otherwise false.