x-axis values are not displayed in the chart using asp.net MVC razer. but y axis are displayed properly.
with the below code the chart is dispalying properly with X-axis and Y-axis values too.
public ActionResult Index()
{
var key = new Chart(width: 600, height: 400)
.AddSeries(
chartType: "bar",
legend: "Rainfall",
xValue: new[] { "Jan", "Feb", "Mar", "Apr", "May" },
yValues: new[] { "20", "20", "40", "10", "10"}
).Write();
return null;
}
but when i tried with the below code the chart is displaying but the X-axis values are not displayed properly
public ActionResult Index()
{
Chart chart = new Chart(width: 1080, height: 1280);
chart.AddSeries(
chartType: "stackedbar",
xValue: new[] { "a", "b", "c", "d", "e", "f", "g", "h", "i" , "j", "k", "l", "m", "n", "o" , "p", "q", "r", "s", "t", "u" },
yValues: new[] { "200", "400", "600", "200", "400", "600", "200", "400", "600" , "200", "400", "600", "200", "400", "600" , "200", "400", "600", "200", "400", "600" }
).Write();
return null;
}
any help will be appreciated..