I am using a CNiGraph in an MFC project. I am creating the control and settings all properties programmatically.
I have a single stripchart, with four plots, 2 yaxis on left and 2 yaxis on right. The xaxis is real-time. When data is plotted to the chart, the plots appear with correct values, however, the only yAxis that gets scaled (autoscale is on for each) is the original YAxis that is created by default.
For example, the yaxis-1/plot-1 that is created by default when the control is created I set to Temperature. I then add 3 more yaxis/plots for salinity, conductivity and density. When I plot the data on the chart the plots appear, but the only axis that gets scaled is Temperatur
e. the temp yaxis is scaled to encompass the four datasets, and the other 3 yaxis do not get scaled at all.
It appears that the 3 yaxis/plots that I add after do not get attached to the plots and do not get scaled. Correct me if I'm wrong but the four axis should be independent and should autoscale according to their individual data values??
Anyone have any ideas here???
Thanks