May 15, 2012, 3:20 PM
[RAZOR] How to add tips to chart
Hello everyone!
I'm trying to add a tips to my line chart. I use Razor View and I don't understand how I can make it.
This is my code:
Thanks.
I'm trying to add a tips to my line chart. I use Razor View and I don't understand how I can make it.
This is my code:
...
.Series(sr => sr.Add(Html.X().LineSeries()
.Axis(Position.Left)
.ShowMarkers(false)
.Highlight(false)
.Tips(tp => tp.Add(Html.X().ChartTip(new ChartTip(){ TrackMouse=true, Width=100, Height=25}
)))
.Fill(false)
.Style(new SpriteAttributes() { StrokeWidth = 1, Width = 1, Stroke = "blue", StrokeOpacity = 1 })
.XField(new string[] { "day_id" })
.YField(new string[] { "day_value" })
))
...
My code is wrong, I know it. Please help me to fix it and to add a tip correctly. Thanks.