Nachem ich sehr ausführlich und umfangreich gestern im Netz nach vernünftigen Beispielen für die axMSChart - AkiveX Komponente gesucht habe, leider nur Beispiele in VB gefunden habe, würde ich gerne meine Erkenntnisse hier posten --> hoffentlich das korrekte Forum 😉
Vorab noch ein Link, der garnicht so schlecht ist und mir auch etwas geholfen hat:
http://spaces.msn.com/pjsson/Blog/cns!1p76K4WF1ADMWttSKAc6E-Sg!166.entry
X/Y - Punktdiagramm
axMSChart1.ChartData = new Object[5, 4] {{"X-Werte Serie1 + Legende", null, "X-Werte Serie2 + Legende", null },
{10, 1, 10, 1},
{20, 4, 20, 2},
{30, 7, 30, 3},
{40, 1, 40, 4}};
// Add a title and legend on the right side of the chart.
axMSChart1.Title.Text = "Titel";
axMSChart1.Legend.Location.LocationType = MSChart20Lib.VtChLocationType.VtChLocationTypeRight;
axMSChart1.Legend.Location.Visible = true;
// Add titles to the axes.
axMSChart1.Plot.get_Axis(MSChart20Lib.VtChAxisId.VtChAxisIdX, null).AxisTitle.Text = "X-Achse";
axMSChart1.Plot.get_Axis(MSChart20Lib.VtChAxisId.VtChAxisIdY, null).AxisTitle.Text = "Y-Achse";
// Set chart type.
axMSChart1.chartType = MSChart20Lib.VtChChartType.VtChChartType2dXY;
// Set whether all the series in the chart are stacked or not.
axMSChart1.Stacking = true;
Säulendiagramm
axMSChart1.ChartData = new Object[5, 2] {{"Säule1", 3},
{"Säule2", 1},
{"Säule3", 4},
{"Säule4", 7},
{"Säule5", 1}};
// Add a title and legend on the right side of the chart.
axMSChart1.Title.Text = "Titel";
axMSChart1.Legend.Location.LocationType = MSChart20Lib.VtChLocationType.VtChLocationTypeRight;
axMSChart1.Legend.Location.Visible = true;
// Add titles to the axes.
axMSChart1.Plot.get_Axis(MSChart20Lib.VtChAxisId.VtChAxisIdX, null).AxisTitle.Text = "X-Achse";
axMSChart1.Plot.get_Axis(MSChart20Lib.VtChAxisId.VtChAxisIdY, null).AxisTitle.Text = "Y-Achse";
// Set chart type.
axMSChart1.chartType = MSChart20Lib.VtChChartType.VtChChartType2dBar;
// Set whether all the series in the chart are stacked or not.
axMSChart1.Stacking = true;
Wenn ihr Anregungen, weitere Ideen habt, könnt ihr die ja gerne posten.
Viel Spass damit
Stefan