TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sachin Singh
7
55.8k
81.7k
how to show to y values in MVC chart helper.
Dec 5 2020 7:39 AM
MVC also provides a chart helper , and MS documentation shows all types of chart images, but i am unable to use two y values , i tried a lot and now i think there is no way or it just doesn't support column chart with multiple y values.
what i want is , to show each department's performance each month like shown in below figure
suppose x axis (1,2,3,4,5,6,7) are department , y axis (performance in jan,feb and march)
i have tried below code, there is no way to use two y values ,
if i add two series then it generates multiple x's.
@{
var chart = new Chart(
width
:
500
,
height
:
500
, theme: ChartTheme.Yellow)
.AddTitle(
"......"
)
.AddSeries(
"Default"
, chartType:
"column"
,
xValue: Model, xField:
"Department"
,
yValues: Model, yFields:
"Month"
// no option to include multiple y
)
.Write();
}
Reply
Answers (
0
)
how to publish winforms app?
Return CSV from Web API.