Super 2d/3d Graph Library

Enhance your .NET application adding nice charts within minutes! Save time and money!


Example 42: Using Hatch Styles in Pie charts


Hatch styles are very useful when you don't/can't want use colors (eg. monochrome printers):

Steps to run this sample:

1. Create a new Windows application project (VB.NET)

2. Add Super 2d/3d Graph Library to the toolbox pallete and drag a chart to Form1.

3. Copy and paste de following code:

 
 
Form Code


Imports
System.Drawing.Drawing2D
Imports
Super2d3dGraphLibrary

Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

  Dim sf As New SeriesFactory
  sf.AddValue(35)
  sf.AddValue(15)
  sf.AddValue(20)
  sf.AddValue(25)
  sf.AddValue(40)
  sf.AddValue(7)

  With Super2d3dGraph1
    .LicenseeIdentifier = "PROF"
    .Style = STYLE2D3D.STYLE2D_PIE
    .Series = sf.Series
    Dim hb1 As HatchBrush = New HatchBrush(HatchStyle.LightUpwardDiagonal, Color.White)
    Dim hb2 As HatchBrush = New HatchBrush(HatchStyle.LargeGrid, Color.White)
    Dim hb3 As HatchBrush = New HatchBrush(HatchStyle.Cross, Color.White)
    Dim hb4 As HatchBrush = New HatchBrush(HatchStyle.DarkVertical, Color.White)
    Dim hb5 As HatchBrush = New HatchBrush(HatchStyle.DiagonalBrick, Color.White)
    Dim hb6 As HatchBrush = New HatchBrush(HatchStyle.DottedGrid, Color.White)
    .CastShadows = False
    .SeriesFillStyle = New HatchBrush() {hb1, hb2, hb3, hb4, hb5, hb6}
    .ShowLegendInDataTable = False
    .ShowItemsLegend = True
    .ItemsLegend = New String() {"Source 1", "Source 2", "Source 3", "Source 4", "Source 5", "Source 6"}
    .RefreshChart()
  End With

End Sub

End Class


 

Result:


 

 

License & Purchase Info


Current version: 14

Super 2d/3d Graph Library is available as:
-Standard License (99€)
-Premium License (149€)
-Enterprise License (299€)

Click here for more details & purchase

Contact Info


Feel free to contact us
for questions related to any of our products or custom .Net development. We usually respond in the same labor day.

Software Siglo XXI

Main support service: support@softwaresigloxxi.com

Sales and other enquiries: contact@softwaresigloxxi.com