Replies: 1 comment
-
Is it possible to put your code in https://try.mudblazor.com/ ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
No matter what I set in Height and Width the chart is always the same size.. What am I doing wrong?
Edit: I update the code section with more details:
`
@if (logrows == null)
{
Loading...
}
else
{
<MudSelect T="string" Label="Select span" Variant="Variant.Outlined" @bind-Value="BoundID" AnchorOrigin="Origin.BottomCenter">
<MudSelectItem Value="@("Week")" />
<MudSelectItem Value="@("Day")" />
<MudSelectItem Value="@("Hour")" />
<MudChart ChartType="ChartType.Line" ChartSeries="@Series" @bind-SelectedIndex="idx" XAxisLabels="@XAxisLabels" Width="1000px" Height="350px" ChartOptions="options" >
@code {
//arrays is of diffrent lengths depending on the time span to display
options.MaxNumYAxisTicks = 10;
StateHasChanged();
}
}
`
Beta Was this translation helpful? Give feedback.
All reactions