@Vishwas R
my code:
——————————————–
type: “line”,
showInLegend: true,
lineThickness: 1,
name: @ViewData [“nameExample”],
color: “# FFC371”,
——————————————–
in the parameter “name:” I put ViewData [“nameExample”] or @ViewData [“nameExample”] and it did not work. in the controller I put the value to the ViewData and if I inspect it I see that it maintains the value but I can not use it in the graph. If you see the code that I have, I have more than one line in the same graphic, but I have to define one by one its name and its values, therefore I can not dynamically show “X” lines without having to repeat the code as many times as lines want to show