Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2715
igDataChart with Viewbag datasource
posted

How do I use ViewBag as a datasource for an igDataChart

I need to make a line chart with 3 series

I already use model on the page

Parents
  • 3595
    posted

     

    Hello Sandoy,

     

    Thank you for posting in our community!

     

    Before proceeding with preparing a sample regarding your question I have the following note: it is recommended to pass complex data structures by using the model and not by viewbag since the code is easier to maintain and more flexible to change further.

     

    Extending the existing model with properties containing information for the chart is a possible implementation.

     

    If you have already considered that option and view bag usage fits better the specificity of your case please let me know.

     

    Looking forwards to hearing from you.

Reply Children