This question is locked. New answers and comments are not allowed.
Hi,
I'd like to display a series of risks in a matrix (scatter chart), see sketched ui in the attached file riskmatrix.png.
The model would be something like this, where "x" would represent the "impact" and "y" the "probability":
In order to test this behavior, I'm using a very basic view:
As you can see in the file riskmatrix_output.png, the labels template is used (in some way, except for the "description" ) but the tooltip template is ignored totally.
How do I have to implement the view in order to produce the desired matrix?
Thank you for our help and regards,
Daniel
I'd like to display a series of risks in a matrix (scatter chart), see sketched ui in the attached file riskmatrix.png.
The model would be something like this, where "x" would represent the "impact" and "y" the "probability":
public class ScatterData { public int x { get; set; } public int y { get; set; } public string Description { get; set; } }In order to test this behavior, I'm using a very basic view:
<h2>Scatter</h2>@model List<TelerikMvcApplication1.Models.ScatterData>@(Html.Telerik().Chart(Model) .Name("chart") .Series(series => { series.Scatter(typeof(TelerikMvcApplication1.Models.ScatterData) , "x", "y") .Labels(l => l.Template("<#= dataItem.Description #> - <#=value.x#>, <#=value.y#> (<#=series.Description#>)")) .Labels(true); }) .Tooltip(tt => { tt .Template("<#= dataItem.Description #> - <#=value.x#>, <#=value.y#> (<#=series.Description#>)") .Visible(true); }))As you can see in the file riskmatrix_output.png, the labels template is used (in some way, except for the "description" ) but the tooltip template is ignored totally.
How do I have to implement the view in order to produce the desired matrix?
Thank you for our help and regards,
Daniel