Documentation / Tutorials

Chart Measures

What is chart measure ?

Example

Simple lined plotting

ChartSeries1DMeasure m = new ChartSeries1DMeasure("my first measure");
Random r = new Random();

for (int i = 0; i < 100; i++)
	m.addValue(r.nextDouble() * 10);

m.plot();

Simple Plot

Plotting two measures

ChartSeries1DMeasure m1 = new ChartSeries1DMeasure("my first measure");
ChartSeries1DMeasure m2 = new ChartSeries1DMeasure("my second measure");
Random r = new Random();

for (int i = 0; i < 100; i++) {
	m1.addValue(r.nextDouble() * 10);
	m2.addValue(r.nextDouble() * 10);
}

PlotParameters params = new PlotParameters();
params.title = "Hello World";
plot(params, m1, m2);

Two Measures

Scatter plot with 2D series

ChartSeries2DMeasure m1 = new ChartSeries2DMeasure("my measure");
Random r = new Random();

for (int i = 0; i < 100; i++)
	m1.addValue(r.nextDouble() * 10, r.nextDouble() * 10);

PlotParameters params = new PlotParameters();
params.title = "Hello Scattered World";
params.type = PlotType.SCATTER;
plot(params, m1);

Scatter Plot