|
55 | 55 | .Name("tabstrip") |
56 | 56 | .Items(tabstrip => |
57 | 57 | { |
58 | | - tabstrip.Add().Text("<span class='km-icon revenue'></span><span class='hidden-xs'>Revenue</span>") |
| 58 | + tabstrip.Add().Text("<span class='km-icon revenue-icon'></span><span class='hidden-xs'>Revenue</span>") |
59 | 59 | .Encoded(false) |
60 | 60 | .Selected(true) |
61 | 61 | .Content(@<text> |
62 | 62 | @(Html.Kendo().Chart<Kendo_UI_Bootstrap_Integration.Models.RevenueViewModel>() |
63 | 63 | .Name("revenue") |
64 | 64 | .DataSource(ds => ds.Read(read => read.Action("Revenue", "Home"))) |
65 | 65 | .Transitions(false) |
66 | | - .Theme("bootstrap") |
| 66 | + .Theme("sass") |
67 | 67 | .ChartArea(chart => chart.Margin(m => m.Top(15)) |
68 | 68 | .Background("transparent")) |
69 | 69 | .Legend(l => l.Visible(false)) |
|
92 | 92 | .Tooltip(t=>t.Visible(true).Template("#= series.name # <br /> #= category #: $#= value #")) |
93 | 93 | ) |
94 | 94 | </text>); |
95 | | - tabstrip.Add().Text("<span class='km-icon spd'></span><span class='hidden-xs'>Sales / day</span>") |
| 95 | + tabstrip.Add().Text("<span class='km-icon spd-icon'></span><span class='hidden-xs'>Sales / day</span>") |
96 | 96 | .Encoded(false) |
97 | 97 | .Content(@<text> |
98 | 98 | @(Html.Kendo().Chart<Kendo_UI_Bootstrap_Integration.Models.SalesPerDayViewModel>() |
99 | 99 | .Name("sales-per-day") |
100 | 100 | .DataSource(ds => ds.Read(read => read.Action("SalesPerDay", "Home"))) |
101 | 101 | .Transitions(false) |
102 | | - .Theme("bootstrap") |
| 102 | + .Theme("sass") |
103 | 103 | .ChartArea(chart => chart.Margin(m => m.Top(15)) |
104 | 104 | .Background("transparent")) |
105 | 105 | .Legend(l => l.Visible(false)) |
106 | | - .SeriesDefaults(s => s.VerticalBullet()) |
| 106 | + .SeriesDefaults(s => s.VerticalBullet().Target(t=>t.Color("#ff0000"))) |
107 | 107 | .CategoryAxis(a => a.Categories(m => m.Date) |
108 | 108 | .Labels(l => l.Visible(false)) |
109 | 109 | .MajorGridLines(m => m.Visible(false))) |
|
115 | 115 | })) |
116 | 116 | ) |
117 | 117 | </text>); |
118 | | - tabstrip.Add().Text("<span class='km-icon spr'></span><span class='hidden-xs'>Sales / region</span>") |
| 118 | + tabstrip.Add().Text("<span class='km-icon spr-icon'></span><span class='hidden-xs'>Sales / region</span>") |
119 | 119 | .Encoded(false) |
120 | 120 | .Content(@<text> |
121 | 121 | @(Html.Kendo().Chart<Kendo_UI_Bootstrap_Integration.Models.SalesPerRegionViewModel>() |
122 | 122 | .Name("sales-per-region") |
123 | 123 | .DataSource(ds => ds.Read(read => read.Action("SalesPerRegion", "Home"))) |
124 | 124 | .Transitions(false) |
125 | | - .Theme("bootstrap") |
| 125 | + .Theme("sass") |
126 | 126 | .Legend(l=>l.Visible(false)) |
127 | 127 | .ChartArea(c=>c.Margin(m => m.Top(15)) |
128 | 128 | .Background("transparent")) |
|
136 | 136 | .Labels(l=>l.Visible(false)) |
137 | 137 | .MajorGridLines(l=>l.Visible(false)) |
138 | 138 | ) |
139 | | - .Tooltip(t=>t.Visible(false).Template("#= series.name # <br /> #= category #: #= value #")) |
| 139 | + .Tooltip(t=>t.Visible(true).Shared(true).Template("#= series.name # <br /> #= category #: #= value #")) |
140 | 140 | .Series(series => { |
141 | 141 | series.Area(model => model.Canterbury).Name("Canterbury"); |
142 | 142 | series.Area(model => model.Manchester).Name("Manchester"); |
|
145 | 145 | .ValueAxis(v=>v.Numeric().Labels(l=>l.Step(2))) |
146 | 146 | ) |
147 | 147 | </text>); |
148 | | - tabstrip.Add().Text("<span class='km-icon share'></span><span class='hidden-xs'>Market share</span>") |
| 148 | + tabstrip.Add().Text("<span class='km-icon share-icon'></span><span class='hidden-xs'>Market share</span>") |
149 | 149 | .Encoded(false) |
150 | 150 | .Content(@<text> |
151 | 151 | @(Html.Kendo().Chart<Kendo_UI_Bootstrap_Integration.Models.DonutChartViewModel>() |
152 | 152 | .HtmlAttributes(new { @class = "market-donut"}) |
153 | 153 | .Name("market-alice-mutton") |
154 | 154 | .DataSource(ds => ds.Read(read => read.Action("AliceMutton", "Home")).Group(g => g.Add(d=> d.Series))) |
155 | 155 | .Transitions(false) |
156 | | - .Theme("bootstrap") |
| 156 | + .Theme("sass") |
157 | 157 | .Title(t => t |
158 | 158 | .Text("Alice Mutton") |
159 | 159 | .Position(ChartTitlePosition.Bottom) |
|
176 | 176 | .Name("market-gravad") |
177 | 177 | .DataSource(ds => ds.Read(read => read.Action("Gravad", "Home")).Group(g => g.Add(d=> d.Series))) |
178 | 178 | .Transitions(false) |
179 | | - .Theme("bootstrap") |
| 179 | + .Theme("sass") |
180 | 180 | .Title(t => t |
181 | 181 | .Text("Gravad lax") |
182 | 182 | .Position(ChartTitlePosition.Bottom) |
|
199 | 199 | .Name("market-inlagd") |
200 | 200 | .DataSource(ds => ds.Read(read => read.Action("Inlagd", "Home")).Group(g => g.Add(d=> d.Series))) |
201 | 201 | .Transitions(false) |
202 | | - .Theme("bootstrap") |
| 202 | + .Theme("sass") |
203 | 203 | .Title(t => t |
204 | 204 | .Text("Inlagd Sill") |
205 | 205 | .Position(ChartTitlePosition.Bottom) |
|
222 | 222 | .Name("market-spageslid") |
223 | 223 | .DataSource(ds => ds.Read(read => read.Action("Spegesild", "Home")).Group(g => g.Add(d=> d.Series))) |
224 | 224 | .Transitions(false) |
225 | | - .Theme("bootstrap") |
| 225 | + .Theme("sass") |
226 | 226 | .Title(t => t |
227 | 227 | .Text("Spageslid") |
228 | 228 | .Position(ChartTitlePosition.Bottom) |
|
603 | 603 | </section> |
604 | 604 | <footer>Copyright © @DateTime.Now.Year Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.</footer> |
605 | 605 | </div> |
| 606 | + |
| 607 | +<script> |
| 608 | + $(document).ready(function () { |
| 609 | + kendo.ui.icon($(".revenue-icon"), { icon: 'dollar' }); |
| 610 | + kendo.ui.icon($(".spd-icon"), { icon: 'chart-column-clustered' }); |
| 611 | + kendo.ui.icon($(".spr-icon"), { icon: 'graph' }); |
| 612 | + kendo.ui.icon($(".share-icon"), { icon: 'chart-doughnut' }); |
| 613 | +
|
| 614 | + }); |
| 615 | +</script> |
0 commit comments