private void dashboardDesigner1_DashboardItemControlCreated(object sender, DevExpress.DashboardWin.DashboardItemControlEventArgs e) { if (e.DashboardItemName == "chartDashboardItem1") { e.ChartControl.AxisScaleChanged += ChartControl_AxisScaleChanged; } }
private void dashboardDesigner1_DashboardItemControlCreated(object sender, DevExpress.DashboardWin.DashboardItemControlEventArgs e) { switch (e.DashboardItemName) { //1. Chart with the Currency Format (Y Axis) case "chartDashboardItem1": e.ChartControl.CustomDrawAxisLabel += ChartControl_CustomDrawAxisLabel1; break; //2. Chart with the Number Format and the Ones Unit (Y Axis) case "chartDashboardItem2": e.ChartControl.CustomDrawAxisLabel += ChartControl_CustomDrawAxisLabel2; break; //3. Chart with Whole Number Format (X Axis) case "chartDashboardItem3": e.ChartControl.CustomDrawAxisLabel += ChartControl_CustomDrawAxisLabel3; break; } }