c# Chart Label font / Position

349 Views Asked by At

I made a chart in an .aspx page in Visual Studio using C#. I have been unable to costumize the Axis Labels, They are way too small to be seen. here's how they look like in the "final" product

https://i.stack.imgur.com/rk7UO.jpg

As you can see the labels describing what the columns are and the Y and X axis text are really small. I can't seem to find a way to make these look bigger.

I don't really have any code to show, since the Chart info comes from SQL and is binded to a DataTable.

This is all I have

Chart1.Series["vendas liquidas"].XValueMember = "ANO";
        Chart1.Series["resultado liquido"].XValueMember = "ANO";
        Chart1.Series["capital proprio"].XValueMember = "ANO";

        Chart1.Series["vendas liquidas"].YValueMembers = "VALORES";
        Chart1.Series["resultado liquido"].YValueMembers = "VALORES2";
        Chart1.Series["capital proprio"].YValueMembers = "VALORES3";


        Chart1.DataSource = transposedTable;
        Chart1.DataBind();

        Response.ContentType = "image/Png";
        Response.BinaryWrite(CreateChartImage(Chart1).ToArray());
        Response.End();

Thanks in advance .

0

There are 0 best solutions below