Home Forums Chart Support Don’t see any data on graphic (MVC) Reply To: Don’t see any data on graphic (MVC)

#28694

I want to have give a date and hours and minutes to the graphic. Example. 18/03/2020 18:07

———
DataPoint Class:

public DataPoint(string label, decimal y)
{
this.label = label;
this.y = y;
}

//Explicitly setting the name to be used while serializing to JSON.
[DataMember(Name = “label”)]
public string label = “”;

//[DataMember(Name = “x”)]
//public Nullable<double> x = null;

//Explicitly setting the name to be used while serializing to JSON.
[DataMember(Name = “y”)]
public Nullable<decimal> y = null;

——-

Is that correct with the label I found it somewhere on the Internet but It doesn’t Work. Maybe you can help me. The thing you said works so thank you for helping me already.

I want that my x-axis is a string and not a double. Thanks in advance