Skip to content

Alfa feedback #1

@TorbenLL

Description

@TorbenLL

Hi,
I have been using your alfa version for Blazor (5.2.32-alpha.13), and thanks for working on Blazor.
What I need is 3D chart, but to get started I have been using the 2D FastLineRenderableSeries.

It works but I do have two items that makes me wonder.
I am sure there is good reason behind your design, but this is just my input.

#1 Use of type string for "Stroke"
The property set the color of the line, so way is it not the C# type color?
Using a string seems odd to me since you loose all type safty.
As a workaround I use the code below, but it does seem to cross the bridge to get water in a unsafe way
Stroke="@ColorTranslator.ToHtml(Color.FromArgb(Color.Black.ToArgb()))"

#2 X, Y and meta data are seperate arrays
I am struggeling to understand the advantage of entering XValues, YValues and Metadata as 3 seperate arrays.
It seems to me like something that very easy can get out of sync., plus it does make debugging much harder.
A simpler method seems to be adding data using one array of a pointtype where X, Y and meta was properties on this type.
Then they cannot get out of sync and if I wanted to inspect the values at lets say point number 57 I do not have to look up in 3 arrays

Regards Torben

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions