Possible rendering/layout issue with BarSeries chart

Charts for WPF Forum

The latest build of this product (v25.1.4) was released 5 months ago, which was before this thread was created.
Posted 1 month ago by bcs99
Version: 25.1.4
Platform: .NET 9
Environment: Windows 11 (64-bit)
Avatar

Hi Actipro Support,

I've found a rendering issue with the WPF Charts control when using a BarSeries.

Scenario

Six charts arranged in a 3×2 grid.

  • Left column uses a data source containing 12 monthly data points.
  • Right column uses the same data extended to 18 monthly data points.
  • Both columns use identical chart configuration (same axes, labels, margins, styles, etc.). The only difference is the number of data points.

The chart types are:

  • Row 1: LineSeries
  • Row 2: BarSeries
  • Row 3: AreaSeries
Expected behavior

All charts should render correctly regardless of whether the data source contains 12 or 18 points.

Actual behavior

Only the BarSeries with 18 data points renders incorrectly.

The issues include:

  • The X-axis title is rendered inside the tick labels instead of below them.
  • The chart appears to extend beyond its allocated layout area and overlaps the AreaSeries below it.
  • The X-axis labels appear to consume more vertical space than expected.
  • The LineSeries and AreaSeries render correctly using the same data and axis configuration.
Additional observations
  • The BarSeries using the 12-point data source renders correctly.
  • The only change between the working and non-working charts is the number of data points (12 vs. 18).
  • Both charts use the same XAxis and YAxis settings.
  • The issue appears to be specific to the BarSeries layout/rendering.

Could you let me know if this is a known issue or if there is a recommended workaround?

I can provide a sample project that reproduces the problem.

Thanks!

Bob

Comments (7)

Posted 1 month ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Bob,

We appreciate you for providing the detail.  We aren't aware of problems so it would be best if you can send the sample project to our support address, link to this thread in the email, and we'll have a look.  Please exclude the bin/obj folders from the .zip you send so it doesn't get spam blocked.  Thanks!


Actipro Software Support

Answer - Posted 1 month ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Bob,

Thank you for sending the sample.  We used it and were able to identify the logic issue that caused the problem.  We have fixed this for the upcoming v26.1 release.


Actipro Software Support

Posted 1 month ago by bcs99
Avatar

Thank you for the quick response. Sorry, for not responding sooner (got sick).  When are you expecting to release 26.1?

Posted 1 month ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

We have a pre-release build up on NuGet.org right now actually if you would like to test it out.  Oh and we hope you're feeling better!


Actipro Software Support

Posted 1 month ago by bcs99
Avatar

I tested the fix using version 26.1.0-rc.1 from NuGet, but I am still seeing the same behaviour as before.

Could you confirm whether that is the pre-release build containing the fix, or whether I should be testing a newer package?

Posted 1 month ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

I'm sorry but it appears rc.1 was built right before the Charts fix went in.  We just pushed rc.2 to nuget.org and that one should have the fix in it.


Actipro Software Support

Posted 1 month ago by bcs99
Avatar

Charts are all behaving as expected now. Thanks. 

Add Comment

Please log in to a validated account to post comments.