Search in sources :

Example 6 with CategoryLines

use of com.twosigma.beakerx.chart.categoryplot.plotitem.CategoryLines in project beakerx by twosigma.

the class CategoryPlotTest method initStubData.

@Before
public void initStubData() {
    array1 = new Integer[] { new Integer(1), new Integer(2) };
    array2 = new Integer[] { new Integer(3), new Integer(4) };
    categoryBars = new CategoryBars();
    categoryBars.setValue(new List[] { Arrays.asList(array1), Arrays.asList(array2) });
    categoryLines = new CategoryLines();
    categoryLines.setValue(new List[] { Arrays.asList(array1), Arrays.asList(array2) });
    categoryPoints = new CategoryPoints();
    categoryPoints.setValue(new List[] { Arrays.asList(array1), Arrays.asList(array2) });
    categoryStems = new CategoryStems();
    categoryStems.setValue(new List[] { Arrays.asList(array1), Arrays.asList(array2) });
}
Also used : CategoryLines(com.twosigma.beakerx.chart.categoryplot.plotitem.CategoryLines) CategoryBars(com.twosigma.beakerx.chart.categoryplot.plotitem.CategoryBars) CategoryStems(com.twosigma.beakerx.chart.categoryplot.plotitem.CategoryStems) CategoryPoints(com.twosigma.beakerx.chart.categoryplot.plotitem.CategoryPoints) Before(org.junit.Before)

Aggregations

CategoryLines (com.twosigma.beakerx.chart.categoryplot.plotitem.CategoryLines)6 Test (org.junit.Test)5 JsonNode (com.fasterxml.jackson.databind.JsonNode)4 DefaultSerializerProvider (com.fasterxml.jackson.databind.ser.DefaultSerializerProvider)4 ArrayNode (com.fasterxml.jackson.databind.node.ArrayNode)1 KernelTest (com.twosigma.beakerx.KernelTest)1 CategoryBars (com.twosigma.beakerx.chart.categoryplot.plotitem.CategoryBars)1 CategoryPoints (com.twosigma.beakerx.chart.categoryplot.plotitem.CategoryPoints)1 CategoryStems (com.twosigma.beakerx.chart.categoryplot.plotitem.CategoryStems)1 Before (org.junit.Before)1