Contact Sales

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

Case Studies

Morpheus

Morpheus Software selected Xtreme Toolkit Professional with Visual C++ over...

Rotated Bars Chart

A bar chart can be rotated about its axis.

// Sample Code
'Bar series sample

    ChartControl.Content.Titles.Add "Total Hours Worked"
    ChartControl.Content.Legend.Visible = True
    ChartControl.Content.Legend.HorizontalAlignment = xtpChartLegendFarOutside
    
    Dim Series As ChartSeries
    Set Series = ChartControl.Content.Series.Add("Quoted")
        
    Series.Points.Add "Sam", 11
    Series.Points.Add "Jesse", 12
    Series.Points.Add "Dave", 4.5
    Series.Points.Add "Max", 6
    Series.Points.Add "Brian", 5
       
    Set Series = ChartControl.Content.Series.Add("Hourly")
    Series.Points.Add "Sam", 12
    Series.Points.Add "Jesse", 9.5
    Series.Points.Add "Dave", 5
    Series.Points.Add "Max", 12
    Series.Points.Add "Brian", 11

    Set Series = ChartControl.Content.Series.Add("Unbillable")
    Series.Points.Add "Sam", 7
    Series.Points.Add "Jesse", 2
    Series.Points.Add "Dave", 5
    Series.Points.Add "Max", 1
    Series.Points.Add "Brian", 4

    Set ChartControl.Content.Series(0).Style = New ChartBarSeriesStyle
    Set ChartControl.Content.Series(1).Style = New ChartBarSeriesStyle
    Set ChartControl.Content.Series(2).Style = New ChartBarSeriesStyle
    
    Dim Diagram As ChartDiagram2D
    Set Diagram = ChartControl.Content.Diagrams(0)
    
    Diagram.Rotated = True
   
    Diagram.AxisY.Title.Visible = True
    Diagram.AxisY.Title.Text = "Hours"
    Diagram.AxisX.Title.Visible = True
    Diagram.AxisX.Title.Text = "Employee"
    
    Diagram.AxisX.Label.Angle = 360
Diagram.AxisX.Label.Angle = 360
// Sample C# Code