User (Legacy) Posted November 5, 2003 Report Share Posted November 5, 2003 I am having trouble creating a multi-pane Chart. Given the following sample data, I want to line chart Price, MovAvg and VolAvg on the main pane and Momenu and AvgMom on a second pane. Date Price MovAvg VolAvg Momenu AvgMom ========= ===== ====== ====== ====== ====== 12-Feb-99 5.25 19-Feb-99 5.29 26-Feb-99 5.49 5-Mar-99 5.58 5.08 4.85 12-Mar-99 5.52 5.10 4.86 0.41 19-Mar-99 5.44 5.12 4.86 0.36 26-Mar-99 5.42 5.14 4.87 0.28 2-Apr-99 5.37 5.15 4.88 0.28 0.33 9-Apr-99 5.17 5.18 4.93 0.47 0.34 16-Apr-99 5.33 5.21 4.99 0.61 0.41 23-Apr-99 5.34 5.24 5.05 0.56 0.48 30-Apr-99 5.43 5.27 5.09 0.48 0.53 7-May-99 5.8 5.32 5.11 0.82 0.61 14-May-99 5.66 5.35 5.14 0.57 0.60 21-May-99 5.86 5.39 5.16 0.80 0.66 28-May-99 5.97 5.45 5.20 0.95 0.78 4-Jun-99 6.12 5.51 5.25 1.14 0.86 How do I assign series to a given chart? Link to comment Share on other sites More sharing options...
Software FX Posted November 6, 2003 Report Share Posted November 6, 2003 If this is coming from a database, it will be automatic. The dates will be used as X-Values and all the other columns will be used as series. The only thing you need to do is separate them into different axis/panes. Here is how you do it: BEFORE setting your data, do the following: Axis axis2 = chart1.AxisY2; axis2.Position = AxisPosition.Near; // Move it to the left axis2.Pane = 1; // Move secondary Y-Axis to a new Pane chart1.Series[3].YAxis = YAxis.Secondary; // Momenu chart1.Series[4].YAxis = YAxis.Secondary; // AvgMom This is all you need to do. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.