I use a UltraChart but the text on the Axis.Y is being trim-ed,
How can I set the Width for this text?
And how can I change the Values of the column?
Be patient while the image is loading...
I wanna change the font of the botton text
and set the Width for the text of the left
------------------------------------------------- ------------------------------------------------- ------------------------------------------------- -------------------------------------------------
Edit:
Width for the text of the left Ultrachart.Axis.Y.Extend = 1;
You should increase the value of the Extent property to see your labels:Ultrachart.Axis.Y.Extent = 50;The font can be set on the x axis labels:Ultrachart.Axis.X.Labels.Font = new Font(FontFamily.GenericSerif, 14);
The text in the botton is not a Axis.X
the code to add this text is this:-------------------------------------------------------------------------------------------------------------------
chart.DataSource = data; chart.DataBind(); chart.Data.IncludeColumn(3, false); chart.Data.IncludeColumn(4, false); chart.Data.IncludeColumn(5, true); chart.Data.SetColumnLabels(new string[ { "Scrap Pct." });
-------------------------------------------------------------------------------------------------------------------
this.Axis.X.Labels.SeriesLabels.Font = new System.Drawing.Font("Verdana", Utils.SMALLFONTSIZE, System.Drawing.FontStyle.Regular);
Thanks!
That solve the problem...
You need to use X axis instead of Y. Your code above uses chart.Axis.Y instead of X.
If somewhere in your code, you're setting SwapRowsAndColumns to true, your point label becomes a series label and you should usechart.Axis.X.Labels.SeriesLabel.Font. I have tried this on my machine and appears to be working correctly. What version of the chart are you using?
I have tried this:-------------------------------------------------------------------------------------------------------------------
chart.DataSource = data; chart.Data.IncludeColumn(3, false); chart.Data.IncludeColumn(4, false); chart.Data.IncludeColumn(5, true); chart.Data.SetColumnLabels(new string[ { "Scrap Pct." });
chart.DataBind();
chart.Axis.Y.Labels.Font = new System.Drawing.Font("Verdana", 16, System.Drawing.FontStyle.Regular);
but the results are the same I am getting the same graph that I show in the picture above.
Data point labels displayed along the x axis use the axis font properties. In order to change the font for "Scrap Pct." you need to usechart.Axis.X.Labels.Font = new Font( ... )