The values on the scale do not represent the actual values for that position.
Example using the demo application:
Scroll to amplitude 0 to 5 and mark a section from 1 to 2.
Place the mouse cursor on the amplitude axis and use the mouse wheel. The selection will move accordingly, but the displayed axis scale will stay still and become invalid:
Also, due to rounding errors, the intervals can vary, e.g. showing 0,1,2,2,3,4
The screenshots are made with SDK 6.5.1, the issues are reproduceable in 6.5.4.
ViewPolar: amplitude axis scale
Moderator: Queue Moderators
Re: ViewPolar: amplitude axis scale
Almost forgot... Labels can overlap:
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ViewPolar: amplitude axis scale
This is not actually a bug, rather limitation of design.
The count of divisions can be controlled by MajorDivCount. That means the number of ticks is MajorDivCount +1.
The first tick is at MinAmplitude. Last tick is at MaxAmplitude. Between this range the ticks are evenly spaced.
The Labels don't have support for overlapping check. The labels formatting can be changed by setting AutoFormatLabels = false, and by subscribing SupplyCustomAngleString and SupplyCustomAmplitudeString (note, both are needed).
Like this, you will see decimal numbers instead of integers.
The count of divisions can be controlled by MajorDivCount. That means the number of ticks is MajorDivCount +1.
The first tick is at MinAmplitude. Last tick is at MaxAmplitude. Between this range the ticks are evenly spaced.
The Labels don't have support for overlapping check. The labels formatting can be changed by setting AutoFormatLabels = false, and by subscribing SupplyCustomAngleString and SupplyCustomAmplitudeString (note, both are needed).
Code: Select all
axis.SupplyCustomAngleString += axis_SupplyCustomAngleString;
axis.SupplyCustomAmplitudeString += axis_SupplyCustomAmplitudeString;
void axis_SupplyCustomAmplitudeString(object sender, AxisPolarBase.AxisAmplitudeEventArguments args)
{
args.ValueAsString = args.Value.ToString("0.00");
}
void axis_SupplyCustomAngleString(object sender, AxisPolarBase.AxisAngleEventArguments args)
{
args.AngleAsString = args.Angle.ToString("0.00");
}
LightningChart Support Team, PT
Re: ViewPolar: amplitude axis scale
CustomAxisLabels in combination with adjusting the values on axis_RangeChanged (rounding to the next "nice" value) seems to result in acceptable behaviour.
Still, I would prefer the amplitude axis to work like the ViewXY axis...
Still, I would prefer the amplitude axis to work like the ViewXY axis...