Profile Picture

How to Show Overlap Bar graph

Posted By shweta jain Last Year
Author
Message
shweta jain
Question Posted Last Year
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 14, Visits: 185
Hello,

I want to create overlap bar chart like in this attached snapshot. How can I achieve this?



Nevron Support
This post has been flagged as an answer
Posted Last Year
View Quick Profile
Supreme Being

Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)Supreme Being (4,063 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 2,945, Visits: 3,303
Hi Sweta,
You can achieve this using a second bar series with different bar width percent (the percentage it occupies from the category). For example:

   NBarSeries bar1 = new NBarSeries();
    bar1.FillStyle = new NColorFillStyle(Color.Red);

    bar1.Values.Add(10);
    bar1.Values.Add(20);
    bar1.Values.Add(30);

    chart.Series.Add(bar1);

    NBarSeries bar2 = new NBarSeries();
    bar2.WidthPercent = 50;
    bar2.FillStyle = new NColorFillStyle(Color.Blue);
    bar2.Values.Add(40);
    chart.Series.Add(bar2);

Let us know if you have any questions.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic