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
Yes, I uploaded the controller file where I take the data from the database and I save it in ViewBags and the page where I insert the data in the graphics, I hope that my problem is clearer now, thanks.
the link: https://drive.google.com/open?id=1gwEqTsEc9UYmbowO7QcTvyheZ84-ECqh
Tanks Vishwas R, “clear the browser cache and try again” is the solution.