Using visifire charts, I'm displaying 6 separate charts vertically (all with the same properties & settings). I need all the charts to look as if it is one big chart, with one X Axis for all charts.
Therefore only the bottom chart displays the X axis (AxisX[0].Enabled = true)
The problem is that once I display the X axis for the bottom chart, it becomes smaller than all other charts, and the X axis of all charts is not synchronized any more.
Also, I'm displaying a red line at a specific point on all charts () and it is displayed in an offset for all charts which do not show the X axis, I assume it is caused by the same problem, but the offset is smaller then the difference in size between charts.
Note , that this bugs fixed if i set zooming enabled = true, how do it for all states? (Attached is a screen shot).
I using by 4.5.2.0(SLVisifire.Charts.dll) - enterprise version visifire charts,
(Attached is a screen shot) ,sorry for my question , what is a purpose of SL.Visifire.Charts.xap & Visifire.js ?
Here the code of assigning XValue for DataPoints for all charts (in Loop):
chart.Series.Clear();
int numPoints = waveform.NumCycles * waveform.PointsPerCycle;
DataSeries ds = new DataSeries() { RenderAs = RenderAs.QuickLine, MarkerEnabled = false };
chart.Series.Add(ds);
chart.AxesX[0].Interval = numPoints / 10; //waveform.PointsPerCycle * 2;
chart.AxesY[0].AxisLabels = new AxisLabels();
chart.AxesY[0].AxisLabels.MinWidth = 40;
for (int i = 0; i < numPoints; i++)
{
DataPoint dp = new DataPoint();
DateTime xDate = waveform.RecordedTime.AddMilliseconds(i * waveform.SampleRate);
dp.AxisXLabel = xDate.ToString("HH:mm:ss.fff");
dp.YValue = Channel.ValuesArray[i];
ds.DataPoints.Add(dp);
}
Can you please send me a solution for how to synchronize the X axis of all charts,
that it very important project for energy consumption.
Regards ,
Evgeny












