Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
Gradient in WinForms BarChart
posted

I am using WinForms BarChart.I want to use Gradient as well as rounded effrect in the bars of the barChart.But my condition is that,i have to also use ModelStyle CustomLinear.Is these possible with these combination? Please help.......!!!

Parents
No Data
Reply
  • 28496
    Offline posted

    I think you can do this, actually. 

    Just add a GradientEffect to the Effects collection of the chart.  That should give you a gradient on all your bars.

    Then for the roundness, handle the ChartDrawItem event, and when e.Primitive is a Box primitive, set its Roundness property to a value > 0.

Children
No Data