Hi all,
I need to show an FFT graph in a way similar to the "Audio L+R,area,spectrograms" demo, but in an horizontal way.
I have already rotated the AreaSpectrumMonitor, but I need to show the Spectrogram2D chart in horizontal orientation. Rotating the whole graph is not a good choice because all labels are also rotated and are not readable.
Is there a way to swap X and Y axes ?
Swap X and Y axes
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Swap X and Y axes
Hello!
set View3D.Camera.RotationZ = 0, and set the View3D.Dimensions in the other way. See also 3D examples / Advanced / Spectrogram example.
set View3D.Camera.RotationZ = 0, and set the View3D.Dimensions in the other way. See also 3D examples / Advanced / Spectrogram example.
LightningChart Support Team, PT
Re: Swap X and Y axes
I am sorry, but I made a mistake in my first post.
I have already rotated the Spectrogram2D using the camera rotation, but how I can swap axes for AreaSpectrumMonitor that is a 2D chart?
I have already rotated the Spectrogram2D using the camera rotation, but how I can swap axes for AreaSpectrumMonitor that is a 2D chart?
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Swap X and Y axes
Ok... If you are using WPF, apply RotationTransform of 90 degrees to chart's RenderTransform or LayoutTransform property.
If using WinForms, you'll need to replace AreaSeries with PolygonSeries, and set the series Y values as PolygonSeries X values and X valus as PolygonSeries Y values. Then add points to the base level X = 0 and connect last series point with the first.
If using WinForms, you'll need to replace AreaSeries with PolygonSeries, and set the series Y values as PolygonSeries X values and X valus as PolygonSeries Y values. Then add points to the base level X = 0 and connect last series point with the first.
LightningChart Support Team, PT