I have included an image of the problem I'm getting. When I run it from visual studio it works. but when I put it into production the above image is what I get. Does anyone have any ideas as to why this is happening?
<div class="col-6 p-4">
<RadzenArcGauge Style="margin-bottom: -250px; width: 100%; height: 500px;">
<RadzenArcGaugeScale Step="10000" Min="0" Max="@target" MinorStep="1000" TickPosition="@tickPosition">
<RadzenArcGaugeScaleValue Value="@value" ShowValue="@showValue">
<Template Context="pointer">
<h4>
@pointer.Value.ToString("C0")
</h4>
</Template>
</RadzenArcGaugeScaleValue>
</RadzenArcGaugeScale>
</RadzenArcGauge>
<div class="mx-auto" style="width: 200px;">
<h3>Current Sales (Target: @target.ToString("C0"))</h3>
</div>
</div>
@code {
[Parameter]
public string init { get; set; }
private ISalesReport Report { get; set; }
private int workingDays { get; set; }
private double AmountLeftToTarget { get; set; }
private double avgDailySales { get; set; }
private double avgDailySalesRemianing { get; set; }
private double avgDailySalesLimit => avgDailySales * 2;
bool showValue = true;
double value = 0;
double target = 0;
IEnumerable<GaugeTickPosition> tickPositions = Enum.GetValues(typeof(GaugeTickPosition)).Cast<GaugeTickPosition>();
GaugeTickPosition tickPosition = GaugeTickPosition.Outside;
protected override async Task OnInitializedAsync()
{
Report = new SalesReportV2(dbOptions);
Report.Run(init);
target = Report.Rep.Target;
value = Report.TotalSales[0].Amount;
AmountLeftToTarget = target - value;
DateTime date = DateTime.Now;
var firstDayOfMonth = new DateTime(date.Year, date.Month, 1);
var lastDayOfMonth = firstDayOfMonth.AddMonths(1).AddDays(-1);
workingDays = firstDayOfMonth.BusinessDaysUntil(lastDayOfMonth);
avgDailySales = target / workingDays;
avgDailySalesRemianing = AmountLeftToTarget / DateTime.Today.BusinessDaysUntil(lastDayOfMonth);
}
class DataItem
{
public string Quarter { get; set; }
public double Revenue { get; set; }
}
string FormatAsUSD(object value)
{
return ((double)value).ToString("C0", CultureInfo.CreateSpecificCulture("en-US"));
}
}
I'm publishing with a self-contained kestrel app.
If you need more information that would help please let me know I'm new to this. and couldn't find a topic that helped.