Skip to content

Commit

Permalink
example to verify tracker line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
belucha committed Jan 24, 2024
1 parent 4429ee5 commit 2622131
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions MudBlazorOxyPlot/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@

<MudText Typo="Typo.h3" GutterBottom="true">Hello, world!</MudText>
<MudText Class="mb-8">Welcome to your new app, powered by MudBlazor!</MudText>
<MudAlert Severity="Severity.Normal">You can find documentation and examples on our website here: <MudLink Href="https://mudblazor.com" Typo="Typo.body2" Color="Color.Inherit"><b>www.mudblazor.com</b></MudLink></MudAlert>
<MudButton OnClick="ShowDiagram">Show Diagram</MudButton>

<MudAlert Severity="Severity.Normal">
You can find documentation and examples on our website here:
<MudLink Href="https://mudblazor.com" Typo="Typo.body2" Color="Color.Inherit">
<b>www.mudblazor.com</b>
</MudLink>
</MudAlert>


<MudDivider Class="py-3" />

<MudButton Color="Color.Primary" Variant="Variant.Filled" OnClick="ShowDiagram">Show Diagram</MudButton>

@code {
private Task ShowDiagram() => DialogService.ShowAsync<PlotDialog>("Dialog Example", new DialogOptions
Expand Down
4 changes: 2 additions & 2 deletions MudBlazorOxyPlot/Pages/PlotDialog.razor
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@implements IDisposable
<MudDialog>
<DialogContent>
<BlazorPlotView Width="80vw" Height="60vh" Model="_model" ReverseMouseWheel=true />
<BlazorPlotView Width="80vw" Height="60vh" Model="_model" ReverseMouseWheel="true" />
</DialogContent>
</MudDialog>
@code {
Expand Down Expand Up @@ -41,7 +41,7 @@
ItemsSource = _bars,
LabelPlacement = LabelPlacement.Inside,
LabelFormatString = "{0:.00}%",
TrackerFormatString = "Hello {0} {1}",
TrackerFormatString = "Hello\n0={0}\r{1}\r\n{2}",
//TrackerKey = "x",
};
_model.Series.Add(barSeries);
Expand Down

0 comments on commit 2622131

Please sign in to comment.