Fixing barsize in barchart view.

3 posts, 1 answers
  1. Ganesh
    Ganesh avatar
    2 posts
    Member since:
    Mar 2015

    Posted 09 Mar 2015 Link to this post

    Is it possible to set the size for Bars in the bar chart view for win forms.

    Regards,
    Ganesh. K
  2. Answer
    Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 11 Mar 2015 Link to this post

    Hi Ganesh,

    Thank you for contacting us. 

    The size of the bars in a bar series chart is defined by the number of data points and the available plot area. You can control how much space the bars take for each individual tick though the GapLenght property. Here is the code snippet: 
    (barSeries.HorizontalAxis as CategoricalAxis).GapLength = 0.75;

    More information about the GapLenght property can be found here: BarSeries

    I hope this will help. Do not hesitate to write back with further questions. 

    Regards,
    Ralitsa
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Ganesh
    Ganesh avatar
    2 posts
    Member since:
    Mar 2015

    Posted 11 Mar 2015 in reply to Ralitsa Link to this post

    Thank you Ralitsa :)
Back to Top