Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 7 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
As per subject I started playing around with the chart control and facing an issue displaying all label names, the chart has 2 series which I manually populate without the helper function but while data visualization works fine intervals are not.
Googling for this I've found it's kind of a common "issue" which is solved with the following code
Here is a demo of how to correctly manually build a horizontal bar chart.
There is no issue with the interval. That is residue from many years ago that was likely a bug at the time. The interval is always set to1 by default.
Here are two methods of building horizontal bar series and how we usually label them. Also how they are matched.
The AddsXY wants a left reference and a right ordinal or value:
$series.points.AddXY(100, 1000)
The first number can be a label but you must match series correctly
This topic is 7 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.