Home Forums Chart Support Rendering Data to Chart

Rendering Data to Chart

Viewing 2 posts - 1 through 2 (of 2 total)
  • #28217

    Hey Can anyone help me with below code .

    below is my index.chtml code and i would like to render this to a chart.

    @model IEnumerable<DashBoardApp.Models.GetCategory_Result>

    @{
    ViewBag.Title = “Index”;
    }

    <table>
    <tr>
    <th>
    @Html.DisplayNameFor(model => model.First().Branch)
    </th>
    </tr>
    @foreach (var item in Model)
    {
    <tr>
    <td>
    @Html.DisplayFor(model => item.Category)
    </td>

    <td>
    @Html.DisplayFor(model => item.Sales)

    </td>

    </tr>
    }
    </table>

    #28239

    @prathyushchefmiddleeast-com,

    Can you kindly create a sample project with sample data reproducing the issue and share it with us over Google-Drive or Onedrive, so that we can look into your code, understand your scenario better and help you out?

    ___________
    Indranil Deo
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.