private void generateLineData(int color, float range) {
            // Cancel last animation if not finished.
            chartTop.cancelDataAnimation();

            // Modify data targets
            Line line = lineData.getLines().get(0);// For this example there is always only one line.
            line.setColor(color);
            for (PointValue value : line.getValues()) {
                // Change target only for Y value.
                value.setTarget(value.getX(), (float) Math.random() * range);
            }

            // Start new data animation with 300ms duration;
            chartTop.startDataAnimation(300);
        }
Generates initial data for line chart. At the begining all Y values are equals 0. That will change when user
will select value on column chart.
hellocharts-samples/src/lecho/lib/hellocharts/samples/LineColumnDependencyActivity.java