On a bootstrap based web page I'm displaying the following table

This was generated with the following code:
- class="row">class="col-lg-12">class="table-responsive">
class="table table-bordered table-hover table-striped">
)class="text-right success">Count class="text-right success">Lower class="text-right success">Upper class="text-right success">Price class="text-right success">Cost - @foreach (var dataRow in staffelData)
- {
- var differenceWithUpper = 0;
- if (dataRow.Upper.HasValue)
- {
- differenceWithUpper = countValue - dataRow.Upper.Value;
- }
- else
- {
- differenceWithUpper = -1;
- }
- var cost = 0.0;
- var inScope = 0;
- if (differenceWithUpper >= 0)
- {
- inScope = dataRow.Upper.Value;
- }
- else
- {
- if (countValue >= dataRow.Lower.Value)
- {
- inScope = countValue - dataRow.Lower.Value;
- }
- }
- cost = inScope * Decimal.ToDouble(@dataRow.PnrFee);
class="text-right fit">@pnrsInScope - @if (@dataRow.Lower.HasValue)
- {
class="text-right fit">@dataRow.Lower.Value - }
- else
- {
class="text-right fit">N/A - }
- @if (@dataRow.Upper.HasValue)
- {
class="text-right fit">@dataRow.Upper.Value - }
- else
- {
class="text-right fit">N/A - }
class="text-right fit">@dataRow.Fee @dataRow.Currency class="text-right fit">@cost @dataRow.Currency - }
I still need 2 add 1 feature though: I have to display an average value in the same table. I was thinking to draw a line @ the level in the table the average can be found.
Could anyone here explain me how to best get this done
Vinay SinghPosted Jul 6, 2016, 4:25 AM
Olivier MuhringPosted Jul 6, 2016, 4:09 AM
The idea is not to display the average value, but an estimated, expected value based on the average.
Say we have on average 25 orders per day then at day 10 I would expect 250 orders. This is the value I want to display as a thin red line on the table.
Pradeep ShetPosted Jul 6, 2016, 12:55 AM
tag for a line