dotnetcharting

FSharpChart.SaveAs () saves blank image if called before chart rendering is complete

强颜欢笑 提交于 2020-01-14 08:44:11
问题 When run in F# Interactive, I expect the following code to create a simple pie chart and save it to disk: let pie = FSharpChart.Pie([("Apples",1);("Oranges",2);("Bananas",3)]) FSharpChart.SaveAs "test.png" ChartImageFormat.Png pie However, what actually gets saved in "test.png" is a blank image. The same happens if I pipe the chart into the FShartChart.SaveAs function. But if I first execute only the chart creation code and give the chart time to render before manually executing SaveAs, the

How to stop showing decimal points in Y Axis in WPF DataVisualization charts

前提是你 提交于 2019-12-23 21:01:11
问题 I am using WPF DataVisualization chart control to show some sample data. My problem is Y axis is showing decimal values. How can I make it show only integer values. This is my XAML code for the <chartingToolkit:Chart Margin="0,30,0,30" Name="columnChart" Title="" Foreground="Black" > <chartingToolkit:ColumnSeries DependentValuePath="Value" Background="Red" IndependentValuePath="Key" ItemsSource="{Binding}" > <chartingToolkit:ColumnSeries.DataPointStyle> <Style TargetType="Control"> <Setter

How to align labels properly using System.Web.UI.DataVisualization.Charting

喜夏-厌秋 提交于 2019-12-13 19:09:53
问题 I have a chart which generated through System.Web.UI.DataVisualization.Charting. Below is the code public ActionResult MBRRChart() { //Area for generating chart type Range bar List<dummyGraph> objGraphList = new List<dummyGraph>(); dummyGraph objDummyGraph = new dummyGraph(); objDummyGraph.TKFEType = "Underwriter"; objDummyGraph.min = 1; objDummyGraph.max = 8; objDummyGraph.Median = "1"; objGraphList.Add(objDummyGraph); objDummyGraph = new dummyGraph(); objDummyGraph.TKFEType = "Construction"