This is a migrated thread and some comments may be shown as answers.

3d Graphs using Asp.net MVC3 razor

4 Answers 103 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Swapnil
Top achievements
Rank 1
Swapnil asked on 04 Oct 2012, 10:43 AM
Is it possible to add 3d graphs on reports(Without using WPF)?

Thanks in advance
Swpanil Trambake
Sr. Developer

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 04 Oct 2012, 02:45 PM
Hi Swapnil,

The report Chart uses the engine of RadChart for ASP.NET AJAX and does not support 3d charts. However if you're using another control that supports 3d charts and has an API to save the chart as an image, you can display the generated chart in a Telerik Report via the PictureBox item. You can see such an example in the Use asp:chart in Telerik Reports code library.

Kind regards,
Steve
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
Swapnil
Top achievements
Rank 1
answered on 05 Oct 2012, 05:53 AM
Thanks for quick response.

As i am going through reporting, i noticed that tooltip on bar items on reporting charts is not supported. is it true? or now supported?

--
Swapnil
Sr. Developer
0
Steve
Telerik team
answered on 05 Oct 2012, 07:03 AM
Hi Swapnil,

Tooltips, zoom/scroll interactive features are not available for the chart item at this time.

Regards,
Steve
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
Subramanya
Top achievements
Rank 1
answered on 11 Oct 2012, 06:21 AM
Hello This is Subramanya,,,
I'm working on mvc3 razor ,  in my application i've a report on Date Based  report on Speed ,
need to do Graph on Speed Versus Time ?

Pasting my Code here

Speed Controller.cs:
 public ActionResult VehicleSpeed()
        {
           
            //string uid = Session["USER_ID"].ToString();
            var SpeedVehicle = from g in vtsmodel.HISTORY_LIVE_VEHICLE select g;
            Usertype();
            ViewData["SpeedReport"] = SpeedVehicle;
            return View();
        }

        [HttpPost]
        public ActionResult VehicleSpeed(string History, SearchHistoryModel model)
        {
          
            Usertype();
            Session["SpeedVehicleReport"] = "SpeedReport";
            TempData["SpeedVehicleReport"] = "SpeedVehicleReport";
            Session["FromDate"] = model.FromDate;
            TempData["fmdate"] = model.FromDate;
            Session["ToDate"] = model.ToDate;
            Session["Starttime"] = model.starttime;
            Session["Endtime"] = model.endtime;
            Session["REGISTRATION_NO"] = model.REGISTRATION_NO;
            DateTime DT1 = DateTime.Parse(model.FromDate);
            model.FromDate = DT1.ToString("MM/dd/yyyy");
            DateTime stime = DateTime.Parse(model.starttime);
            model.starttime = stime.ToString("HH:mm:ss");
            DateTime DTS = Convert.ToDateTime(model.FromDate + " " + model.starttime);

            DateTime DT2 = DateTime.Parse(model.ToDate);
            model.ToDate = DT2.ToString("MM/dd/yyyy");
            DateTime etime = DateTime.Parse(model.endtime); ;
            model.endtime = etime.ToString("HH:mm:ss");
            DateTime DTE = Convert.ToDateTime(model.ToDate + " " + model.endtime);

            Session["startdatetime"] = DTS;
            Session["enddatetime"] = DTE;

            return View();
        }
View:
@using VTS.Models
@{
    ViewBag.Title = "VehicleSpeed";
   
}
@{
    @Html.Partial("SpeedDateRange")
}
@Html.ValidationSummary(true)
@if (Session["SpeedVehicleReport"] == "SpeedReport")
{
    <div class="download">
        <div class="excel">
        </div>
        @Html.ActionLink("Download excel", "Download")
    </div>
    <div class="download">
        <div class="pdf">
        </div>
        @Html.ActionLink("Download pdf", "Download")
    </div>
    <br />
    
    VTSEntities4 vtsmodel = new VTSEntities4();

    Session["options1"] = "User";
    DateTime dts = Convert.ToDateTime(Session["startdatetime"].ToString());
    DateTime dte = Convert.ToDateTime(Session["enddatetime"].ToString());

    var SpeedVehReport = vtsmodel.SP_SpeedVehicleReport(dts, dte, Session["REGISTRATION_NO"].ToString());

    var vehicleReportGrid = new WebGrid(source: SpeedVehReport.ToList(), rowsPerPage: 10);
    <div class="table">
        @vehicleReportGrid.GetHtml(tableStyle: "table", headerStyle: "gridhead",
                    footerStyle: "paging", rowStyle: "td-dark", alternatingRowStyle: "td-light",
                    columns: vehicleReportGrid.Columns(

                     vehicleReportGrid.Column("VEHICLE_NAME"),
                     vehicleReportGrid.Column("Time"),
                     vehicleReportGrid.Column("LOCATION"),
                     vehicleReportGrid.Column("SPEED")

        )
    )
    </div>
}



Tags
General Discussions
Asked by
Swapnil
Top achievements
Rank 1
Answers by
Steve
Telerik team
Swapnil
Top achievements
Rank 1
Subramanya
Top achievements
Rank 1
Share this question
or