ZedGraphV515 is a .NET class library written in C# that provides user controls and web controls. It can create 2D linear graphs, bar graphs and pie charts.
It is fully functional and has detailed function customization.
Open source based on the LGPL license, .NET 2.0 C# source code) Its ideas are clear, so it is very easy to get started.
A few points to note:
Picture saving path setting: Set in the RenderedImagePath property. The program should have write and modify permissions for the folder. Picture output format: Set in the OutputFormat property. Png is recommended, which is relatively clear.
Chart
ChartBorder border settings for the chart area
ChartFill background fill of chart area
The annotation label of the Legend chart displays the setting items, and a set of data corresponds to a color of annotation.
IsHStack sets whether the Y-axis data is stacked or separated when there are multiple display items.
Xaxis X-axis related information settings in the chart area
AxisColor axis color
The origin of Cross coordinates, you can set the offset degree of the coordinates
CrossAuto origin automatic setting: If True, the Cross setting will be invalid.
FontSpec X-axis title font related information
Angle The angle when the X-axis title font is displayed, 0 is horizontal, 90 is vertical
Fill X-axis title font fill information
ColorOpacity transparency
IsScaled sets whether the X-axis title font display size is enlarged or reduced according to the proportion of the graph
RangeMax: the maximum slope when filling (with transition color, haven’t tried it)
RangeMin Minimum slope when filling (with transition color, haven’t tried it)
StringAlignment X-axis title font arrangement (not sure, haven’t tried it)
IsOmitMag Whether to display exponential powers (10th power, haven’t tried it, seems to be related to IsUseTenPower)
IsPreventLabelOverlap Whether the coordinate value display is allowed to overlap. If False, the control will automatically eliminate the display state of some coordinate values based on the length of the coordinate value.
IsShowTitle Whether the X-axis title is displayed
IsTicsBetweenLabels Whether to automatically display a separation mark between two coordinate values
IsUseTenPower Whether to use 10th power exponent
IsVisible whether to display the X axis
Source is the source code of ZedGraphV515 control
Expand