Jump to content
Software FX Community

monofilm

Members
  • Posts

    3
  • Joined

  • Last visited

monofilm's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. As you can see at the image below X-Axis labels occupy more than 50% of image space. I'm wondering is it possible to limit X-Axis labels height by 50 pixels for example? Source: DataTable table = new DataTable(); table.Columns.Add("x", typeof(int)); table.Columns.Add("y", typeof(string)); DataRow row = table.NewRow(); row["x"] = 0; row["y"] = "verylongstringverylongstringverylongstring"; table.Rows.Add(row); row = table.NewRow(); row["x"] = 1; row["y"] = "verylongstringverylongstringverylongstring"; table.Rows.Add(row); row = table.NewRow(); row["x"] = 4; row["y"] = "verylongstringverylongstringverylongstring"; table.Rows.Add(row); Chart1.DataSourceSettings.Fields.Add(new ChartFX.WebForms.FieldMap("x", ChartFX.WebForms.FieldUsage.Value)); Chart1.DataSourceSettings.Fields.Add(new ChartFX.WebForms.FieldMap("y", ChartFX.WebForms.FieldUsage.Label)); Chart1.DataSource = table; Chart1.DataBind(); Chart1.PlotAreaMargin.Bottom = 20; Chart1.PlotAreaMargin.Left = 20; Chart1.PlotAreaMargin.Right = 20; Chart1.PlotAreaMargin.Top = 20;
×
×
  • Create New...