
<div flex>
    <md-tabs md-dynamic-height md-border-bottom>
        <md-tab label="graph">
            <md-content class="md-padding">
                <nvd3 options="options" data="data" ng-if="data"></nvd3>
                <div layout="row" layout-sm="column" layout-align="space-around" ng-hide="data">
                    <md-progress-circular md-mode="indeterminate"></md-progress-circular>
                </div>
            </md-content>
        </md-tab>

        <md-tab label="table" ng-if="data">
            <md-content class="md-padding">

                <md-data-table-container>
                    <table md-data-table>
                        <thead>
                        <tr>
                            <th name="Date"></th>
                            <th name="{{::dataset.key}}" ng-repeat="dataset in data track by $index"></th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr ng-repeat="firstDataSet in data[0].values track by $index" ng-init="i = $index">
                            <td>{{::firstDataSet.date * 1000 | date}}</td>
                            <td ng-repeat="dataSet in data track by $index">{{::dataSet.values[i].value | currency}}</td>
                        </tr>
                        </tbody>
                    </table>
                </md-data-table-container>

            </md-content>
        </md-tab>

    </md-tabs>
</div>

<div flex>
    <md-tabs md-dynamic-height md-border-bottom>
        <md-tab label="graph">
            <md-content class="md-padding">
                <nvd3 options="options" data="data" ng-if="data"></nvd3>
                <div layout="row" layout-sm="column" layout-align="space-around" ng-hide="data">
                    <md-progress-circular md-mode="indeterminate"></md-progress-circular>
                </div>
            </md-content>
        </md-tab>

        <md-tab label="table" ng-if="data">
            <md-content class="md-padding">

                <md-data-table-container>
                    <table md-data-table>
                        <thead>
                        <tr>
                            <th name="Date"></th>
                            <th name="{{::dataset.key}}" ng-repeat="dataset in data track by $index"></th>
                            <th name="Net"></th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr ng-repeat="firstDataSet in data[0].values track by $index" ng-init="i = $index">
                            <td>{{::firstDataSet.date * 1000 | date}}</td>
                            <td ng-repeat="dataSet in data track by $index">{{::dataSet.values[i].value | currency}}</td>
                            <td>
                                <currency-format value="data[0].values[i].value + data[1].values[i].value"></currency-format>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </md-data-table-container>

            </md-content>
        </md-tab>

    </md-tabs>
</div>
Add net value to cash flow table.
Add net value to cash flow table.
