private static int GetBarLength(BarChartDataPoint dataPoint, double unitLength) { return (int) Math.Round(unitLength * dataPoint.Value); }
private static int GetBarLength(BarChartDataPoint dataPoint, double unitLength) { return((int)Math.Round(unitLength * dataPoint.Value)); }