Contact Sales

Call center available M-F 9:00 - 4:00 US Eastern Time.

Case Studies

eziparts

eziparts selected Xtreme Toolkit Professional with Visual C++ over many...

Standard Area Chart

An area chart is very similar to a line chart. Data is displayed using different colors in the "area" below the line. Each series of points is represented with a different color. Area charts are commonly used to display accumulated values over a period of time.

// Sample Code
'Area series style chart

    ChartControl.Content.Legend.Visible = True
    ChartControl.Content.Legend.HorizontalAlignment = xtpChartLegendNearOutside
    
    Dim Series As ChartSeries
            
    Set Series = ChartControl.Content.Series.Add("New York")

    Series.Points.Add 1900, 7268
    Series.Points.Add 1950, 14830
    Series.Points.Add 1990, 17990
    Series.Points.Add 2000, 18976
    Series.Points.Add 2008, 20323
    
    Set Series = ChartControl.Content.Series.Add("California")

    Series.Points.Add 1900, 1485
    Series.Points.Add 1950, 10586
    Series.Points.Add 1990, 29760
    Series.Points.Add 2000, 33871
    Series.Points.Add 2008, 36756
    
    Set Series = ChartControl.Content.Series.Add("Florida")

    Series.Points.Add 1900, 528
    Series.Points.Add 1950, 2771
    Series.Points.Add 1990, 12937
    Series.Points.Add 2000, 15982
    Series.Points.Add 2008, 18328
        
    Set Series = ChartControl.Content.Series.Add("Texas")

    Series.Points.Add 1900, 3048
    Series.Points.Add 1950, 7711
    Series.Points.Add 1990, 14986
    Series.Points.Add 2000, 20851
    Series.Points.Add 2008, 24326

 

    ChartControl.Content.Titles.Add "Population by U.S. State"
    ChartControl.Content.Legend.Visible = True
    
    Set ChartControl.Content.Series(3).Style = New ChartAreaSeriesStyle
    Set ChartControl.Content.Series(2).Style = New ChartAreaSeriesStyle
    Set ChartControl.Content.Series(1).Style = New ChartAreaSeriesStyle
    Set ChartControl.Content.Series(0).Style = New ChartAreaSeriesStyle
    
    Dim Diagram As ChartDiagram2D
    Set Diagram = ChartControl.Content.Series(0).Diagram
    Diagram.AxisY.Title = "Population Growth (Millions)"
    Diagram.AxisY.Title.Visible = True
    Diagram.AxisX.Title = "Decade / Year"
    Diagram.AxisX.Title.Visible = True
// Sample C# Code