public void TestLineChart_Histogram() { const string fileName = @"d:\temp\ScottPlott_LineChart_Histogram.png"; if (File.Exists(fileName)) { File.Delete(fileName); } var data = new ChartData { Title = "Histogram", Copyright = "Testfirma", XLabelText = "Klasse", YLabelText = "Anzahl", FileName = fileName, ChartType = ChartType.Histogram }; TestHelper.LoadDefaultChartStyle(data, HighResolution); TestDataHelper.ChartSampleHistogram(UseDatabase, data); data.ChartStyle.XAxisNumberformat = "0.0000%"; data.ChartStyle.YAxisNumberformat = "0.0000%"; data.PropertiesToUseForChart.Add("XValue"); data.PropertiesToUseForChart.Add("YValue1"); //data.LabelsForSeries.Add("Kumulierter Anteil"); var x = new ChartHandler { ChartData = data }; x.Export(); TestHelper.StartFile(fileName); }