Home Forums WinForms controls Xceed Chart for WinForms chart with series bar

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #18799 |

    Hi, I am italian and I’m not speak english very well, but I try to understand me.
    My problem is that in every points of primary x axes I must have 12 bar (12 moths of year). How can I do this?
    And how can I do to set the primary x labels in center?
    Please help me.
    Thanks a lot
    Eleonora

    Imported from legacy forums. Posted by elepag (had 2237 views)

    User (Old forums)
    Member
    Post count: 23064

    You will need to create a BarSeries for every month, and either stack or cluster them.

    e.g.:

    BarSeries barJan = ( BarSeries )chart.Series.Add( SeriesType.Bar );
    barJan.MultiBarMode = MultiBarMode.Series;

    BarSeries barFeb = ( BarSeries )chart.Series.Add( SeriesType.Bar);
    barFeb.MultiBarMode = MultiBarMode.Stacked;

    BarSeries barMar = ( BarSeries )chart.Series.Add( SeriesType.Bar);
    barMar.MultiBarMode = MultiBarMode.Stacked;

    //…

    As for the labels in the center, I’m not sure what is the problem you are facing, the labels should display at the center of axis ticks by default.

    Imported from legacy forums. Posted by André (had 3117 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.