Not able to change axis scale as well as time.
Posted: Thu Nov 19, 2015 10:00 am
Hi all,
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)
At starting it was working perfect but while i try to change when running and i can see update values in MinimumScaleValue and MaximumScaleValue variables but it is not updating in the cart.
Even i tried to set like
2) I am trying to assign time as x-axis(bottom) values for series. I am getting diffrent time format like 15.01.19989.....
Can anyone suggest me what i am doing wrong? how can i update these two?
Thanks,
Regards.
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.