I am trying to update chart with live data, I have drwan four series, each series have its own custum vertical axis. I have to assign time values as x-axis(bottom) for all series.
I was able to draw all series. I have two issues.
1) I was not able to change custum vertical axis scale values(min or max), once i start the chart updating. I have default setting in .xml file and i was able to assign those scales by at start but i need change while updating as well. i am trying like this (just for one series)
Code: Select all
_chart.Series[0].CustomVertAxis.Automatic = false;
_chart.Series[0].CustomVertAxis.Minimum = SystemNames.GetSignalInfo("Density").MinimumScaleValue;
_chart.Series[0].CustomVertAxis.Maximum = SystemNames.GetSignalInfo("Density").MaximumScaleValue;
Even i tried to set like
Code: Select all
_chart.Axes.Custom[0].SetMinMax(Convert.ToDouble(DMin.Text), Convert.ToDouble(DMax.Text));
Code: Select all
// _chart.Series[0].XValues.DataMember = DateTime.Now.ToShortDateString();
_chart.Series[0].XValues.DateTime = true;
_chart.Series[0].XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
//_chart.Walls.Back.Visible = true;
_chart.Axes.Bottom.Title.Text = "Time";
_chart.Axes.Bottom.AutomaticMaximum = true;
_chart.Axes.Bottom.AutomaticMinimum = true;
Thanks,
Regards.