Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. @model IEnumerable<VR_FE.Models.MovieRentalCountReport>
  2.  
  3. @{
  4. Layout = null;
  5. }
  6.  
  7. <!DOCTYPE html>
  8.  
  9. <html>
  10. <head>
  11. <meta name="viewport" content="width =device-width" />
  12. <title>Movie Rental Chart</title>
  13. </head>
  14.  
  15. <body>
  16. @{
  17. var chartTheme = @"
  18. <Chart BorderlineDashStyle=""Solid"" BorderlineWidth=""1""
  19. BorderlineColor=""Black"" BackSecondaryColor=""Green""
  20. BackGradientStyle=""TopBottom"" Palette=""Light""
  21. AntiAliasing=""All"">
  22.  
  23. <ChartAreas>
  24. <ChartArea Name=""Default"" _Template_=""All""
  25. BackGradientStyle=""None""
  26. BackColor=""Transparent""
  27. BackSecondaryColor=""White""
  28. BorderColor=""64, 64, 64, 64""
  29. BorderDashStyle=""Solid""
  30. ShadowColor=""Transparent"">
  31.  
  32.  
  33. <AxisX Title=""Movies"" IsLabelAutoFit=""False"">
  34. <LabelStyle Angle=""0"" Interval=""1""
  35. ForeColor=""White""
  36. Font=""Trebuchet Ms, 10pt, style=Bold""/>
  37. </AxisX>
  38.  
  39. <AxisY Title=""Number Of Times Rented""
  40. IsLabelAutoFit=""False"">
  41. <LabelStyle Angle=""0"" Interval=""1""
  42. ForeColor=""White""
  43. Font=""Trebuchet Ms, 10pt, style=Bold""/>
  44. </AxisY>
  45.  
  46. <Area3DStyle Enable3D=""false"" Inclination=""60""
  47. Rotation=""30""/>
  48. </ChartArea>
  49. </ChartAreas>
  50. </Chart>
  51.  
  52.  
  53. ";
  54. var chart = new Chart(width: 600, height: 600, theme: "")
  55. .AddTitle("Movie Rental Chart")
  56. .AddSeries("Default", chartType: "Bar",
  57. xValue: Model, xField: "Name",
  58. yValues: Model, yFields: "RC")
  59. .Write();
  60. }
  61.  
  62.  
  63. </body>
  64.  
  65. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement