You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

By default, graphs are created in a very basic form: the series have no title, a default color and thickness (maybe not the one you prefer) is used for all of them, the axes have no title either, no legend is shown, etc. 

 

 

Customizing charts
lineResults.Title = "Model results"
dataSeries.Title = "Measurements"
dataSeries.Color = Color.Red
dataSeries.Size = 4
dataSeries.LineVisible = True
dataSeries.LineColor = Color.Black
chart.BottomAxis.Title = "Time"
chart.LeftAxis.Title = "Waterlevel [m]"
chart.LeftAxis.Automatic = False
chart.LeftAxis.Maximum = 2
chart.LeftAxis.Minimum = 0
chart.Legend.Visible = True
chart.Legend.Alignment = LegendAlignment.Bottom
chart.Title = "Comparison measurements vs results"
chart.TitleVisible = True

  • No labels