XY Chart NET 3 Control Reference > Properties > Plot Property |
Use this property to return/set values that determines the background color and border characteristics for the plot area. Plot uses the Plot Class set of properties for its characteristics.
[Visual Basic] Property Plot() As C_Plot |
[C#] XYChartNet.XYChartNETCtl.C_Plot XYChartNETCtl.Plot |
[C++] property XYChartNet::XYChartNETCtl::C_Plot ^ XYChartNet::XYChartNETCtl::Plot |
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. Dim tmpColor As Color Dim iWidth As Integer Dim iStyle As Integer With XYChartNETCtl1.Plot tmpColor = .BackColor 'Return the plot area's background color .BackColor = Color.Blue 'Set the plot area's background color to Blue If .Transparent Then .Transparent = False End If End With With XYChartNETCtl1.Plot.Border If .LineOption = loCustom Then iStyle = .LineStyle 'Return the plot area's border style iWidth =.LineWidth 'Return the plot area's border width tmpColor = .LineColor 'Return the plot area's border color End If End With With XYChartNETCtl1.Plot.Border .LineOption = loCustom 'Display plot border .LineStyle = soDash 'Set the plot area's border style to use Dashes .LineWidth = woOnePoint 'Set the plot area's border width .LineColor = Color.Red 'Set the plot area's border color to Red End With XYChartNETCtl1.Refresh 'Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. //Set the plot area's background color XYChartNETCtl1.Plot.BackColor = Color.Lavender; //Set the plot's border properties XYChartNETCtl1.Plot.Border.LineOption = XYChartNet.XYChartNETCtl.LineOptions.loCustom; XYChartNETCtl1.Plot.Border.LineWidth = XYChartNet.XYChartNETCtl.WidthOptions.woOnePoint; XYChartNETCtl1.Plot.Border.LineColor = Color.Green; XYChartNETCtl1.Refresh(); //Refresh required to update chart with changes made
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. //Set the plot area's background color XYChartNETCtl1->Plot->BackColor = Color::Lavender; //Set the plot's border properties XYChartNETCtl1->Plot->Border->LineOption = XYChartNETCtl::LineOptions::loCustom; XYChartNETCtl1->Plot->Border->LineWidth = XYChartNETCtl::WidthOptions::woOnePoint; XYChartNETCtl1->Plot->Border->LineColor = Color::Green; XYChartNETCtl1->Refresh(); //Refresh required to update chart with changes made