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...

Combination Chart

A combination chart uses two or more chart types to emphasis that the chart contains different types of data.

// Sample Code
    ChartControl.Content.Legend.Visible = True
    ChartControl.Content.Legend.HorizontalAlignment = xtpChartLegendFar
    ChartControl.Content.EnableMarkup = True
        
    ChartControl.Content.Titles.Add "Population by U.S. State"
       
    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
    
    Set ChartControl.Content.Series(3).Style = New ChartAreaSeriesStyle
    Set ChartControl.Content.Series(2).Style = New ChartPointSeriesStyle
    Set ChartControl.Content.Series(1).Style = New ChartBarSeriesStyle
    Set ChartControl.Content.Series(0).Style = New ChartSplineSeriesStyle
    
    Dim Series As ChartSeries
    For Each Series In ChartControl.Content.Series
        Series.Style.Label.Format.Category = xtpChartNumber
        Series.Style.Label.Format.DecimalPlaces = 0
    Next
    
    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
    
    Diagram.AxisY.Label.Format.Category = xtpChartNumber
    Diagram.AxisY.Label.Format.DecimalPlaces = 0
// Sample C# Code