Search in sources :

Example 6 with CategoryStems

use of com.twosigma.beakerx.chart.categoryplot.plotitem.CategoryStems 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

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