-
Hi there, I want to set minimum and maximum y-values on a linechart, independent of the given data. How can this be accomplished? Best regards, Alexander |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi, sorry for not answering your question before. I have looked at some examples on stackoverflow. You can see in the example below that I only converted JSON to C# <LineChart TItem="double" OptionsObject="@chartOptions" />
@code{
object chartOptions = new
{
Scales = new
{
YAxes = new[] {
new {
Ticks = new
{
BeginAtZero = true,
Min = 0,
Max = 500,
}
}
}
}
};
} |
Beta Was this translation helpful? Give feedback.
-
I was finally able to get it running correctly by calling asynchronously: Task.Run(() => |
Beta Was this translation helpful? Give feedback.
Hi, sorry for not answering your question before.
I have looked at some examples on stackoverflow. You can see in the example below that I only converted JSON to C#
object
and apply it to OptionsObject. With this you can create any object structure and it will be properly serialized.