public void CreateChartFastMoving()
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["InvoiceApp"].ToString());
con.Open();
DataTable dsbox = new DataTable();
SqlCommand cmd = new SqlCommand("DisplayTopSellingProductUserSide", con);
cmd.CommandType = CommandType.StoredProcedure;
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(dsbox);
Chart1.DataSource = dsbox;
Chart1.ChartAreas[0].AxisX.LabelStyle.Font = new System.Drawing.Font("Arial", 12f, FontStyle.Bold);
Chart1.DataBind();
}
Hello,
I am getting trouble to apply font style in asp.net chart control.
I want to change the font style of pie chart which shows productname using asp chart control.
I apply following for that.
"Chart1.ChartAreas[0].AxisX.LabelStyle.Font = new System.Drawing.Font("Arial", 12f, FontStyle.Bold);"
But it do not aafect it shows default font.
What can i do?Please suggest.
Thanks in advance.