Search in sources :

Example 11 with BarModel

use of org.eazegraph.lib.models.BarModel in project EazeGraph by blackfizz.

the class BarChartFragment method loadData.

private void loadData() {
    mBarChart.addBar(new BarModel(2.3f, 0xFF123456));
    mBarChart.addBar(new BarModel(2.f, 0xFF343456));
    mBarChart.addBar(new BarModel(3.3f, 0xFF563456));
    mBarChart.addBar(new BarModel(1.1f, 0xFF873F56));
    mBarChart.addBar(new BarModel(2.7f, 0xFF56B7F1));
    mBarChart.addBar(new BarModel(2.f, 0xFF343456));
    mBarChart.addBar(new BarModel(0.4f, 0xFF1FF4AC));
    mBarChart.addBar(new BarModel(4.f, 0xFF1BA4E6));
    mBarChart.addBar(new BarModel(2.3f, 0xFF123456));
    mBarChart.addBar(new BarModel(2.f, 0xFF343456));
    mBarChart.addBar(new BarModel(3.3f, 0xFF563456));
    mBarChart.addBar(new BarModel(1.1f, 0xFF873F56));
    mBarChart.addBar(new BarModel(2.7f, 0xFF56B7F1));
    mBarChart.addBar(new BarModel(2.f, 0xFF343456));
    mBarChart.addBar(new BarModel(0.4f, 0xFF1FF4AC));
    mBarChart.addBar(new BarModel(4.f, 0xFF1BA4E6));
}
Also used : BarModel(org.eazegraph.lib.models.BarModel)

Example 12 with BarModel

use of org.eazegraph.lib.models.BarModel in project EazeGraph by blackfizz.

the class VerticalBarChartFragment method loadData.

private void loadData() {
    mBarChart.addBar(new BarModel(2.3f, 0xFF123456));
    mBarChart.addBar(new BarModel(2.f, 0xFF343456));
    mBarChart.addBar(new BarModel(3.3f, 0xFF563456));
    mBarChart.addBar(new BarModel(1.1f, 0xFF873F56));
    mBarChart.addBar(new BarModel(2.7f, 0xFF56B7F1));
    mBarChart.addBar(new BarModel(2.f, 0xFF343456));
    mBarChart.addBar(new BarModel(0.4f, 0xFF1FF4AC));
    mBarChart.addBar(new BarModel(4.f, 0xFF1BA4E6));
//        mBarChart.addBar(new BarModel(2.3f, 0xFF123456));
//        mBarChart.addBar(new BarModel(2.f,  0xFF343456));
//        mBarChart.addBar(new BarModel(3.3f, 0xFF563456));
//        mBarChart.addBar(new BarModel(1.1f, 0xFF873F56));
//        mBarChart.addBar(new BarModel(2.7f, 0xFF56B7F1));
//        mBarChart.addBar(new BarModel(2.f,  0xFF343456));
//        mBarChart.addBar(new BarModel(0.4f, 0xFF1FF4AC));
//        mBarChart.addBar(new BarModel(4.f,  0xFF1BA4E6));
}
Also used : BarModel(org.eazegraph.lib.models.BarModel)

Aggregations

BarModel (org.eazegraph.lib.models.BarModel)12 Paint (android.graphics.Paint)7 StackedBarModel (org.eazegraph.lib.models.StackedBarModel)7 RectF (android.graphics.RectF)6 Rect (android.graphics.Rect)1