public override NSAttributedString FormatLabel(SCIGenericType dataValue) { var i = dataValue.intData; var result = ""; if (i >= 0 && i < 4) { result = _xLabels[i]; } return(new NSAttributedString(result)); }
public override NSAttributedString FormatCursorLabel(SCIGenericType dataValue) { var i = dataValue.intData; string result; if (i >= 0 && i < 4) { result = _xLabels[i]; } else if (i < 0) { result = _xLabels[0]; } else { result = _xLabels[3]; } return(new NSAttributedString(result)); }
public override NSAttributedString FormatLabel(SCIGenericType dataValue) { var formattedString = base.FormatLabel(new SCIGenericType(dataValue.doubleData / 1000d)).Value + "k"; return(new NSAttributedString(formattedString)); }
public override string FormatLabel(SCIGenericType dataValue) { return(base.FormatLabel(new SCIGenericType(dataValue.doubleData / Math.Pow(10, 9))) + "B"); }
public override string FormatLabel(SCIGenericType dataValue) { return(base.FormatLabel(new SCIGenericType(dataValue.doubleData / 1000d)) + "k"); }