Skip to content

Add RangeBarSeries demo to InventoryManagement reports chart#6

Draft
Copilot wants to merge 3 commits into
masterfrom
copilot/add-demo-for-range-bar-series
Draft

Add RangeBarSeries demo to InventoryManagement reports chart#6
Copilot wants to merge 3 commits into
masterfrom
copilot/add-demo-for-range-bar-series

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 21, 2026

This update adds a WinForms sample demonstrating the new RangeBarSeries by adapting an existing chart in InventoryManagement. The sample now shows per-month value ranges (low/high) instead of separate weekly columns, aligned with the new series’ expected axis orientation and data shape.

  • Scope: extend existing demo path

    • Updated the third chart setup in InventoryManagementForm.OnLoad (datachartReportsSales) rather than introducing a new form/sample surface.
  • Range Bar data shaping

    • Added a local rangeBarData table with Month, Low, and High.
    • Derived Low/High from the existing monthly week values (Week 1..Week 4) so the demo reuses current sample data.
  • Series + axis migration

    • Replaced ColumnSeries configuration with RangeBarSeries.
    • Switched axes to NumericXAxis + CategoryYAxis and bound:
      • HighMemberPath = "High"
      • LowMemberPath = "Low"
var xAxis3 = new NumericXAxis();
var yAxis3 = new CategoryYAxis()
{
    DataSource = rangeBarData,
    Label = "Month"
};

var series3 = new RangeBarSeries()
{
    DataSource = rangeBarData,
    HighMemberPath = "High",
    LowMemberPath = "Low",
    XAxis = xAxis3,
    YAxis = yAxis3
};

Copilot AI linked an issue May 21, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add a demo for the new range bar series Add RangeBarSeries demo to InventoryManagement reports chart May 21, 2026
Copilot AI requested a review from gedinakova May 21, 2026 17:04
@gedinakova gedinakova requested a review from agoldenbaum May 26, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a demo for the new Range Bar series

2 participants